forked from embarklabs/embark
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.coffee
More file actions
29 lines (26 loc) · 766 Bytes
/
Gruntfile.coffee
File metadata and controls
29 lines (26 loc) · 766 Bytes
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
module.exports = (grunt) ->
grunt.initConfig
"embark-framework": {}
pkg: grunt.file.readJSON('package.json')
clean:
build: ["build/"]
coffee:
compile:
expand: true
src: 'src/**/*.coffee'
dest: 'build/'
ext: '.js'
uglify:
options: banner: '/*! <%= pkg.name %> <%= grunt.template.today("dd-mm-yyyy") %> */\n'
build:
files:
'build/<%= pkg.name %>.min.js': [
"build/<%= pkg.name %>.js"
]
mochaTest:
test:
src: ['test/**/*.js']
grunt.loadTasks "tasks"
require('matchdep').filterAll(['grunt-*','!grunt-cli']).forEach(grunt.loadNpmTasks)
grunt.registerTask 'default', ['clean']
grunt.registerTask 'build', ['clean', 'coffee']