-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgruntfile.js
29 lines (27 loc) · 965 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
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
emberTemplates: {
compile: {
options: {
templateCompilerPath: 'bower_components/ember/ember-template-compiler.js',
handlebarsPath: 'node_modules/handlebars/dist/handlebars.js',
templateNamespace: 'HTMLBars',
templateBasePath: /app\/templates\//
},
files: {
'app/scripts/templates.js': ['app/templates/**/*.hbs']
}
}
},
watch: {
emberTemplates: {
files: 'app/templates/**/*.hbs',
tasks: ['emberTemplates']
}
}
});
grunt.loadNpmTasks('grunt-ember-templates');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('default', ['emberTemplates', 'watch']);
}