forked from orloffv/staffim-form
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
53 lines (50 loc) · 1.66 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
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
concat: {
js: {
src: [
'src/scripts/staffimForm.module.js',
'src/scripts/staffimForm.material.js',
'src/scripts/staffimForm.fields.js',
'src/scripts/staffimForm.service.js',
'src/scripts/staffimForm.viewEdit.js',
'src/scripts/staffimForm.tableInlineEdit.js',
'src/scripts/staffimForm.tableHeaderFilter.js',
'src/scripts/staffimForm.wysiwyg.js',
'.tmp/templates.js',
'.tmp/number-input-templates.js'
],
dest: './dist/staffim-form.js'
}
},
ngtemplates: {
dist: {
cwd: 'src/',
src: ['staffim-form/**/*.html'],
dest: '.tmp/templates.js',
options: {
prefix: '/',
module: 'staffimForm'
}
},
number: {
cwd: 'src/number-input/',
src: ['src/**/*.html'],
dest: '.tmp/number-input-templates.js',
options: {
module: 'staffimForm'
}
}
},
clean: {
working: {
src: ['./.tmp/']
}
}
});
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.loadNpmTasks('grunt-angular-templates');
grunt.registerTask('dist', ['clean', 'ngtemplates', 'concat']);
};