-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.js
42 lines (36 loc) · 945 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
30
31
32
33
34
35
36
37
38
39
40
41
42
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
// Remove built directory
clean: {
build: ['build/']
},
// Built stylesheets with less
less: {
build: {
src: 'assets/less/*',
dest: 'build/css/app.css'
}
},
// Build the site using grunt-includes
includes: {
build: {
cwd: 'site',
src: [ '*.html', 'pages/*.html' ],
dest: 'build/',
options: {
flatten: true,
includePath: 'include',
banner: '<!-- Site built using grunt includes! -->\n'
}
}
}
});
// Load plugins used by this task gruntfile
grunt.loadNpmTasks('grunt-includes');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-clean');
// Task definitions
grunt.registerTask('build', ['clean', 'less', 'includes']);
grunt.registerTask('default', ['build']);
};