-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.coffee
42 lines (40 loc) · 1.05 KB
/
Gruntfile.coffee
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
module.exports = (grunt) ->
grunt.initConfig
concat:
all:
src: ['node_modules/svgwm/test.css', 'test.css']
dest: 'build/all.css'
autoprefixer:
all:
src: 'build/all.css'
dest: 'dist/all.css'
coffee:
compile:
options:
join: true
bare: true
files:
'dist/all.js': ['node_modules/xpath-tools/*.coffee', 'node_modules/svgwm/main.coffee']
'dist/patch.js': 'patch.coffee'
'dist/main.js': 'main.coffee'
'dist/test.js': 'test.coffee'
'dist/loader.js': 'loader.coffee'
copy:
'lib-cgs':
expand: true
src: 'lib-cgs/**'
dest: 'dist/'
html:
src: 'test.html'
dest: 'dist/test.html'
grunt.loadNpmTasks 'grunt-contrib-concat'
grunt.loadNpmTasks 'grunt-autoprefixer'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.registerTask 'default', [
'concat:all'
'autoprefixer:all'
'coffee:compile'
'copy:lib-cgs'
'copy:html'
]