forked from smart-on-fhir/smart-on-fhir.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
35 lines (34 loc) · 896 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
module.exports = function (grunt) {
grunt.initConfig({
shell: {
jekyllBuild: {
command: 'jekyll build --config _config.yml,_config_dev.yml'
}
},
connect: {
server: {
options: {
port: 4000,
base: '_site'
}
}
},
watch: {
livereload: {
files: [
'**/**',
'!_site/**',
'!**/node_modules/**'
],
tasks: ['shell:jekyllBuild'],
options: {
livereload: true
},
},
}
});
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-shell');
grunt.registerTask('default', ['shell', 'connect', 'watch'])
}