forked from khachatur/ember-user-admin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
35 lines (31 loc) · 1.12 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
module.exports = function (grunt) {
grunt.initConfig({
concat: {
dist: {
src: ["Scripts/user-admin.js", "Scripts/user-admin/**/*.js"],
dest: 'Scripts/user-admin-app.js',
},
},
emberTemplates: {
compile: {
options: {
templateBasePath: "/Scripts/user-admin/templates/",
templateName: function (sourceFile) {
return sourceFile.replace("Scripts/user-admin/templates/", "");
}
},
files: {
"Scripts/user-admin-templates.js" : "Scripts/user-admin/templates/**/*.hbs"
}
}
},
watch: {
files: ["Scripts/user-admin/templates/**/*.hbs","Scripts/user-admin.js", "Scripts/user-admin/**/*.js"],
tasks : ["emberTemplates", "concat"]
}
});
grunt.loadNpmTasks('grunt-ember-templates');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', 'watch')
};