Somewhere along the way the code to build the locales got removed

Adding it back again.
This commit is contained in:
JC Brand 2016-02-28 08:25:08 +00:00
parent d00f2d1c3d
commit 7eb453efa1
4 changed files with 33 additions and 11107 deletions

View File

@ -32,8 +32,22 @@ module.exports = function(grunt) {
dest: 'css/converse.min.css',
src: ['css/converse.css']
}
},
json: {
main: {
options: {
namespace: 'locales',
includePath: true,
processName: function(filename) {
return filename.toLowerCase().match(/^locale\/(.*)\/lc_messages/)[1];
}
},
src: ['locale/**/LC_MESSAGES/*.json'],
dest: 'builds/locales.js'
}
}
});
grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-jst');
grunt.loadNpmTasks('grunt-json');
};

View File

@ -170,6 +170,7 @@ converse:: stamp-npm
build:: stamp-npm
$(GRUNT) jst
$(GRUNT) cssmin
$(GRUNT) json
make jsmin
########################################################################

File diff suppressed because one or more lines are too long

View File

@ -37,6 +37,7 @@
"grunt-cli": "~0.1.13",
"grunt-contrib-cssmin": "~0.9.0",
"grunt-contrib-jst": "~0.6.0",
"grunt-json": "^0.1.3",
"http-server": "^0.7.4",
"jshint": "^2.8.0",
"less": "~1.7.0",