4 Star 1 Fork 0

ec_huyinghuan / slow-cli

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Gruntfile.coffee 971 Bytes
一键复制 编辑 原始数据 按行查看 历史
L.T 提交于 2014-10-16 23:15 . finish build min js css
_request = require 'request'
module.exports = (grunt)->
grunt.loadNpmTasks 'grunt-contrib-coffee'
grunt.loadNpmTasks 'grunt-contrib-watch'
grunt.registerTask('explore', 'visit localhost', ()->
this.async()
_request 'http://localhost:3000', (err, response, body)->
return console.log err if err
console.log body
)
_fs = require 'fs'
grunt.registerTask('fs-test', 'test fs', ()->
console.log _fs.existsSync('.slow')
console.log _fs.existsSync('sample/.slow')
)
grunt.initConfig(
pkg: grunt.file.readJSON 'package.json'
coffee:
dev:
expand: true
flatten: false
cwd: 'src'
src: ['*/*.coffee', '*/*/*.coffee',
'*/*/*/*.coffee', '*/*/*/*/*.coffee',
'sample/.slow/*.coffee']
dest: '.'
ext: '.js'
watch:
files: ['src/*.coffee', 'src/*/*.coffee', 'src/*/*/*.coffee', 'src/sample/.slow/*.coffee']
tasks: ['coffee:dev']
)
CoffeeScript
1
https://gitee.com/huyinghuan/slow-cli.git
git@gitee.com:huyinghuan/slow-cli.git
huyinghuan
slow-cli
slow-cli
master

搜索帮助