-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathGruntfile.js
32 lines (28 loc) · 943 Bytes
/
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
//
var _ = require("lodash"),
path = require('path'),
webapp = require('nullpointer-web-app');
//
module.exports = function(grunt) {
webapp.setBuildMeta({
APP_BUILD_TYPE: 'production',
cwd: __dirname,
name: 'nkb-app',
rootpath: '/autokad/'
});
//
var gruntConfig = webapp.getDefaultGruntConfig(),
buildMeta = webapp.getBuildMeta();
// extend i18n
_.set(gruntConfig, 'i18n.ui_keys.options', {
mode: 'simple',
pattern: '**/*.txt',
inputDir: path.resolve(__dirname, 'i18n/ui_keys/src'),
inputRootPath: path.resolve(__dirname, ''),
outputDir: path.resolve(__dirname, 'i18n/ui_keys'),
bundleDir: path.resolve(__dirname, 'src/l10n/ui_keys'),
baseLang: buildMeta.langs[0],
langs: buildMeta.langs
});
webapp.initGrunt(grunt, gruntConfig);
};