diff --git a/.gitignore b/.gitignore index 66be2e1..0823947 100644 --- a/.gitignore +++ b/.gitignore @@ -12,3 +12,4 @@ bower_components/ config/config.yml docs/ clover.xml +i18n/*/LC_MESSAGES/*.mo diff --git a/Gruntfile.js b/Gruntfile.js index 8f75c48..ad307cf 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -90,6 +90,16 @@ module.exports = function (grunt) { package: { src: 'package.json' } + }, + potomo: { + dist: { + options: { + poDel: false + }, + files: { + 'i18n/zh_CN/LC_MESSAGES/Alltube.mo': 'i18n/zh_CN/LC_MESSAGES/Alltube.po' + } + } } } ); @@ -105,8 +115,9 @@ module.exports = function (grunt) { grunt.loadNpmTasks('grunt-phpdocumentor'); grunt.loadNpmTasks('grunt-jsonlint'); grunt.loadNpmTasks('grunt-fixpack'); + grunt.loadNpmTasks('grunt-potomo'); - grunt.registerTask('default', ['uglify', 'cssmin']); + grunt.registerTask('default', ['uglify', 'cssmin', 'potomo']); grunt.registerTask('lint', ['jslint', 'fixpack', 'jsonlint', 'phpcs']); grunt.registerTask('test', ['phpunit']); grunt.registerTask('doc', ['phpdocumentor']); diff --git a/i18n/zh_CN/LC_MESSAGES/Alltube.mo b/i18n/zh_CN/LC_MESSAGES/Alltube.mo deleted file mode 100644 index bc85ce7..0000000 Binary files a/i18n/zh_CN/LC_MESSAGES/Alltube.mo and /dev/null differ diff --git a/package.json b/package.json index e62d84a..14ca609 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,8 @@ "bower": "~1.8.0", "grunt": "~1.0.1", "grunt-contrib-cssmin": "~2.2.0", - "grunt-contrib-uglify": "~3.0.0" + "grunt-contrib-uglify": "~3.0.0", + "grunt-potomo": "~3.5.0" }, "devDependencies": { "grunt-contrib-compress": "~1.4.1",