forked from chartist-js/chartist
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwatch.js
More file actions
57 lines (55 loc) · 1.32 KB
/
Copy pathwatch.js
File metadata and controls
57 lines (55 loc) · 1.32 KB
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
48
49
50
51
52
53
54
55
56
57
/**
* watch
* =====
*
* Watches files for changes and runs tasks based on the changed files.
*
* Link: https://github.com/gruntjs/grunt-contrib-watch
*/
'use strict';
module.exports = function (grunt) {
return {
assemble: {
files: ['<%= pkg.config.site %>/**/*.{hbs,yml,json,js}'],
tasks: ['assemble']
},
doxication: {
files: ['<%= pkg.config.tmp %>/data/**/*.{yml,json}'],
tasks: ['assemble']
},
js: {
files: [
'<%= pkg.config.site %>/scripts/**/*.js',
'<%= pkg.config.src %>/scripts/**/*.js'
],
tasks: ['newer:jshint:all'],
options: {
livereload: true
}
},
jsTest: {
files: ['<%= pkg.config.test %>/spec/{,*/}*.js'],
tasks: ['newer:jshint:test', 'jasmine']
},
sass: {
files: [
'<%= pkg.config.site %>/styles/{,*/}*.{scss,sass}',
'<%= pkg.config.src %>/styles/{,*/}*.{scss,sass}'
],
tasks: ['sass:public']
},
gruntfile: {
files: ['Gruntfile.js']
},
livereload: {
options: {
livereload: '<%= connect.options.livereload %>'
},
files: [
'<%= pkg.config.tmp %>/{,*/}*.html',
'<%= pkg.config.tmp %>/styles/{,*/}*.css',
'<%= pkg.config.site %>/images/{,*/}*.{png,jpg,jpeg,gif,webp,svg}'
]
}
};
};