forked from johncar/al_ui_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
33 lines (33 loc) · 1.04 KB
/
gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*global module: true */
module.exports = function (grunt) {
"use strict";
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['<%=pkg.folders.jsSource %>/**/*.html',
'<%=pkg.folders.jsSource %>/*.js' ]
}
},
},
nggettext_compile: {
all: {
options: {
module: 'app'
},
files: {
'src/main/translations.js': ['po/*.po']
}
},
}
});
grunt.registerTask("install", "Create a deployable artifact for production servers",
function (system) {
grunt.task.run("nggettext_extract");
grunt.task.run("nggettext_compile");
}
);
//call grunt.loadNpmTasks for all dependencies in package.json which names start with "grunt-"
require('load-grunt-tasks')(grunt);
};