-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
47 lines (47 loc) · 1.65 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
module.exports = function(grunt) {
grunt.initConfig({
stylus: {
compile: {
files: {
'public/app/styles/style.css': 'public/app/styles/style.styl'
}
}
},
jade: {
options: {
pretty: true
},
compile: {
files: {
'public/app/index.html': 'public/app/index.jade'
}
}
},
requirejs: {
compile: {
options: {
baseUrl: "public/app/javascripts/",
mainConfigFile: "public/app/javascripts/build/index.js",
name: 'index',
out: "public/app/javascripts/build/index.js",
optimize: 'none',
paths: {
jquery: "../../../bower_components/jquery/dist/jquery",
underscore: "../../../bower_components/underscore/underscore",
backbone: "../../../bower_components/backbone/backbone",
requirejs: "../../../bower_components/requirejs/require"
},
exclude: ['jquery', 'underscore', 'backbone', 'requirejs']
}
}
},
jshint: {
all: ['public/app/javascripts/*.js']
}
});
grunt.loadNpmTasks('grunt-contrib-stylus');
grunt.loadNpmTasks('grunt-contrib-jade');
grunt.loadNpmTasks('grunt-contrib-requirejs');
grunt.loadNpmTasks('grunt-contrib-jshint')
grunt.registerTask('default', ['stylus', 'jade', 'requirejs', 'jshint']);
}