-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathGruntfile.js
More file actions
34 lines (30 loc) · 796 Bytes
/
Gruntfile.js
File metadata and controls
34 lines (30 loc) · 796 Bytes
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
module.exports = function(grunt) {
var path = require('path');
require('load-grunt-tasks')(grunt);
require('load-grunt-config')(grunt, {
configPath: path.join(process.cwd(), 'grunt'),
init: true,
data: {
TEMP_DIR: 'tmp/'
},
loadGruntTasks: {
config: require('./package.json'),
scope: 'devDependencies'
}
});
grunt.registerTask('build', 'Builds local files', [
'clean',
'copy',
'markdown'
]);
grunt.registerTask('pages', 'Uploads content to gh-pages', [
'build',
'rename',
'gh-pages'
]);
grunt.registerTask('default', 'Watchs content and launches server.', [
'build',
'connect',
'watch'
]);
}