-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathGruntfile.coffee
71 lines (60 loc) · 1.91 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
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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON 'package.json'
"build-atom-shell":
tag: 'v0.30.0'
buildDir: 'electron'
projectName: 'dms.webapp'
productName: 'DMS'
connect:
server:
options:
port: 8000
hostname: '*'
base: 'static'
livereload: yes
coffee:
compile:
expand: yes
cwd: "src"
src: ["**/*.coffee"]
dest: "static"
ext: ".js"
#sass:
# dev:
# options:
# style: "expanded"
# files:
# # 'destination': 'source'
# "static/classic/sass/**/*": "src/classic/sass/**/*"
copy:
sass_classic:
expand: yes
cwd: "src/classic/sass"
src: ["**"]
dest: "static/classic/sass"
sass_modern:
expand: yes
cwd: "src/modern/sass"
src: ["**"]
dest: "static/modern/sass"
watch:
src:
files: ["src/**/*.coffee"]
tasks: ["coffee"]
options:
livereload: yes
sass:
files: ["src/**/*.scss"]
tasks: ['copy:sass_classic', 'copy:sass_modern']
options:
livereload: yes
# dependencies
grunt.loadNpmTasks 'grunt-contrib-connect'
grunt.loadNpmTasks 'grunt-contrib-sass'
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-build-atom-shell'
# tasks
grunt.registerTask 'default', ["coffee", "copy", "watch"]