1
0
Fork 0
mirror of https://github.com/openstf/stf synced 2025-10-05 10:39:25 +02:00
OpenSTF/Gruntfile.js
2014-02-19 16:52:26 +09:00

39 lines
770 B
JavaScript

module.exports = function (grunt) {
require('load-grunt-tasks')(grunt)
grunt.initConfig({
jade: {
translate: {
options: {
data: {
debug: false,
files: {
'tmp/html/all.html': ['res/app/**/*.jade']
}
}
}
}
},
nggettext_extract: {
pot: {
files: {
'res/lang/po/template.pot': ['tmp/html/all.html', 'res/app/**/*.js']
}
}
},
nggettext_compile: {
all: {
files: {
'res/lang/translations.js': ['res/lang/po/*.po']
}
}
}
})
grunt.registerTask('translate', ['jade:translate', 'nggettext_extract', 'nggettext_compile'])
grunt.registerTask('default', ['translate'])
}