forked from BuggleInc/webPLM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
56 lines (52 loc) · 1.58 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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
module.exports = function(grunt) {
grunt.initConfig({
nggettext_extract: {
pot: {
files: {
'po/template.pot': ['public/app/**/*.html']
}
},
},
nggettext_compile: {
all: {
files: {
'public/javascripts/translations.js': ['po/*.po']
}
},
},
jasmine: {
components: {
src: [
'public/app/app.js',
'public/app/app.routes.js',
'public/app/app.auth.js',
'public/app/**/*.js'
],
options: {
vendor: [
'public/javascripts/sinon-1.12.2.js',
'public/javascripts/angular.js',
'public/javascripts/angular-animate.js',
'public/javascripts/angular-cookies.js',
'public/javascripts/angular-ui-router.js',
'public/javascripts/angular-ui-codemirror/ui-codemirror.js',
'public/javascripts/angular-locker.js',
'public/javascripts/angular-mocks.js',
'public/javascripts/angular-gettext/dist/angular-gettext.js',
'public/javascripts/satellizer.js'
],
helpers: 'public/javascripts/jasmine/spec/SpecHelper.js'
}
}
}
});
grunt.registerTask('build', 'Do build', function(arg) {
grunt.log.write("I'm building...");
grunt.log.ok();
});
grunt.registerTask('test', ['jasmine']);
grunt.registerTask('i18n-extract', ['nggettext_extract']);
grunt.registerTask('i18n-update', ['nggettext_compile']);
grunt.loadNpmTasks('grunt-angular-gettext');
grunt.loadNpmTasks('grunt-contrib-jasmine');
};