forked from alexwarth/ometa-js
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Gruntfile.coffee
44 lines (41 loc) · 1.18 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
module.exports = (grunt) ->
grunt.initConfig
pkg: grunt.file.readJSON("package.json")
coffee:
compile:
expand: true
cwd: "src"
src: ["**/*.coffee"]
dest: "lib"
ext: ".js"
metacoffee:
compile:
expand: true
cwd: "src"
src: ["**/*.mc"]
dest: "lib"
ext: ".js"
urequire:
metacoffee:
template: "combined"
main: "index"
path: "lib/metacoffee"
dstPath: "extras/metacoffee.js"
dependencies: exports: root: 'metacoffee'
errorhandler:
template: "combined"
main: "index"
path: "lib/errorhandler"
dstPath: "extras/errorhandler.js"
dependencies: exports: root: 'errorhandler'
prettyfier:
template: "combined"
main: "prettyfier"
path: "lib/metacoffee"
dstPath: "extras/prettyfier.js"
dependencies: exports: root: 'prettyfier'
grunt.loadNpmTasks "grunt-contrib-coffee"
grunt.loadNpmTasks "grunt-urequire"
require("./lib/metacoffee/grunt-contrib-metacoffee") grunt
grunt.registerTask "default", ["coffee", "metacoffee"]
grunt.registerTask "web", ["default", "urequire"]