代码拉取完成,页面将自动刷新
module.exports = (grunt) ->
# Project configuration.
grunt.initConfig
pkg: grunt.file.readJSON('package.json')
coffee:
src:
options:
bare: true
files: [
expand: true
src: 'src/**/*.coffee'
ext: '.js'
dest: 'build'
,
expand: true
src: 'spec/**/*.coffee'
ext: '.js'
dest: 'build'
]
clean:
build:
src: [
'build/*'
]
release:
src: [
'dist/*'
]
copy:
release:
files: [
expand: true
cwd: 'build/src'
src: '**/*.*'
dest: 'dist'
]
watch:
options:
spawn: false
test:
files: [
'src/**/*.coffee'
'spec/**/*.coffee'
]
tasks: [
'clean'
'coffee'
]
nodemon:
# Start dev environment.
dev:
script: 'build/src'
options:
nodeArgs: ['--harmony'] # Support ES6 when node version < 4.0
# These plugins provide necessary tasks.
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-clean'
grunt.loadNpmTasks 'grunt-contrib-copy'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.loadNpmTasks 'grunt-nodemon'
grunt.registerTask 'build', [
'clean'
'coffee'
'watch'
]
grunt.registerTask 'release', [
'clean'
'coffee'
'copy'
]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。