-
Notifications
You must be signed in to change notification settings - Fork 1
/
Gruntfile.js
57 lines (49 loc) · 993 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
connect: {
doc: {
options: {
port: 8020,
base: ['.', 'demo'],
hostname: '*'
}
}
},
copy: {
lib: {
expand: true,
flatten: true,
cwd: 'node_modules',
dest: 'demo/lib',
src: [
'webcomponents.js/webcomponents.js',
'bosonic/dist/bosonic-runtime.js'
]
},
elements: {
expand: true,
flatten: true,
cwd: 'src',
dest: 'demo/lib',
src: '*.html'
}
},
watch: {
lib: {
files: [
'node_modules/bosonic/dist/bosonic-runtime.js'
],
tasks: ['copy:lib']
},
elements: {
files: [
'src/*.html'
],
tasks: ['copy:elements']
}
}
});
grunt.registerTask('demo', ['copy', 'connect', 'watch']);
require('load-grunt-tasks')(grunt);
};