embark/Gruntfile.coffee

41 lines
1.0 KiB
CoffeeScript
Raw Normal View History

2015-05-24 12:44:16 +00:00
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']
2017-03-08 14:56:00 +00:00
2016-10-22 21:22:58 +00:00
jshint:
all: ['bin/embark', 'lib/**/*.js']
options: grunt.file.readJSON('package.json').jshintConfig
with_overrides:
options:
undef: false
esversion: 5
files:
src: ['js/mine.js', 'js/embark.js']
2015-05-24 12:44:16 +00:00
grunt.loadTasks "tasks"
require('matchdep').filterAll(['grunt-*','!grunt-cli']).forEach(grunt.loadNpmTasks)
grunt.registerTask 'default', ['clean']
grunt.registerTask 'build', ['clean', 'coffee']
2015-05-24 12:44:16 +00:00