-
Notifications
You must be signed in to change notification settings - Fork 34
/
Gruntfile.coffee
30 lines (28 loc) · 958 Bytes
/
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
module.exports = (grunt) ->
require("load-grunt-tasks")(grunt)
grunt.registerTask "default", "to watch & compile", ["cjsx:build", "watch"]
grunt.registerTask "build", "to compile", ["cjsx:build"]
pkg = grunt.file.readJSON "package.json"
grunt.initConfig
pkg: pkg
cjsx:
build:
options:
bare: true
files: [
expand: true
cwd: "source"
src: ["**/*.coffee"]
dest: "scripts"
ext: ".js"
,
expand: true
cwd: ""
src: ["*.coffee", "!Gruntfile.coffee"]
dest: "dist"
ext: ".js"
]
watch:
coffee:
files: ["**/*.coffee"]
tasks: ["newer:cjsx"]