forked from orloffv/staffim-auth
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
49 lines (46 loc) · 1.67 KB
/
Gruntfile.js
File metadata and controls
49 lines (46 loc) · 1.67 KB
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
module.exports = function(grunt) {
"use strict";
grunt.initConfig({
concat: {
js: {
src: [
'src/scripts/staffimAuth.module.js',
'src/scripts/staffimAuth.constant.js',
'src/scripts/staffimAuth.controller.js',
'src/scripts/staffimAuth.listener.js',
'src/scripts/staffimAuth.route.js',
'src/scripts/staffimAuth.service.js',
'src/scripts/staffimAuth.tokenInterceptor.js',
'src/scripts/staffimAuth.interceptor.js',
'src/scripts/staffimAuth.stateEncoder.js',
'src/scripts/staffimAuth.jsonEncoder.js',
'src/scripts/staffimAuth.stateDirective.js',
'src/scripts/staffimAuth.permissionDirective.js',
'src/scripts/staffimAuth.autoFillFixDirective.js',
'.tmp/templates.js'
],
dest: './dist/staffim-auth.js'
}
},
ngtemplates: {
dist: {
cwd: 'src/',
src: ['staffim-auth/**/*.html'],
dest: '.tmp/templates.js',
options: {
prefix: '/',
module: 'staffimAuth'
}
}
},
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']);
};