-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathgruntfile.js
More file actions
91 lines (83 loc) · 2.78 KB
/
gruntfile.js
File metadata and controls
91 lines (83 loc) · 2.78 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
clean: {
default: {
src: [
'../build'
]
}
},
copy: {
bowercss: {
src: [
'bower_components/bootstrap/dist/css/bootstrap.min.css',
'bower_components/cornerstone/dist/cornerstone.css',
],
dest: '../build/bower/css',
expand: true,
flatten: true
},
bowerjs: {
src: [
'bower_components/bootstrap/dist/js/bootstrap.min.js',
'bower_components/cornerstone/dist/cornerstone.js',
'bower_components/cornerstoneMath/dist/cornerstoneMath.js',
'bower_components/cornerstoneTools/dist/cornerstoneTools.js',
'bower_components/cornerstoneWADOImageLoader/dist/cornerstoneWADOImageLoader.js',
'bower_components/cornerstoneWebImageLoader/dist/cornerstoneWebImageLoader.js',
'bower_components/dicomParser/dist/dicomParser.js',
// hammerjs?
'bower_components/image-jpeg2000/dist/jpx.js',
'bower_components/jquery/dist/jquery.min.js',
'bower_components/jquery/dist/jquery.min.map',
],
dest: '../build/bower/js',
expand: true,
flatten: true
},
bowerfonts: {
src: [
'bower_components/bootstrap/dist/fonts/*',
],
dest: '../build/bower/fonts',
expand: true,
flatten: true
},
srchtml: {
src: [
'src/html/*',
],
dest: '../build/',
expand: true,
flatten: true
},
srcjs: {
src: [
'src/js/*',
],
dest: '../build/',
expand: true,
flatten: true
},
srccss: {
src: [
'src/css/*',
],
dest: '../build/',
expand: true,
flatten: true
}
},
watch: {
scripts: {
files: ['src/html/*', 'src/js/*', 'src/css/*', 'test/**/*.js'],
tasks: ['buildAll']
}
}
});
require('load-grunt-tasks')(grunt);
grunt.registerTask('buildAll', ['copy']);
grunt.registerTask('default', ['clean', 'buildAll']);
};