造轮子混脸熟 :(
用 shell.js 造的 Node.js 版本 Makefile
举个 Runfile 栗子:
var task = module.exports = {}
task.clean = () => {
rm('-rf', 'testFolder')
rm('-rf', 'testSource')
}
// or run external tools
task.deploy = (argv) => {
var message = argv.m || 'update'
exec('git add -A')
exec(`git commit -m "${message}"`)
exec('git push origin master')
}
task.default = ['clean', 'deploy']
大更新,借鉴了 Gulp:
task.add('clean', () => {
rm('-rf', 'testFolder')
rm('-rf', 'testSource')
})
// or run external tools
task.add('deploy', () => {
var message = argv._[1] || 'update'
exec('git add -A')
exec(`git commit -m "${message}"`)
exec('git push origin master')
})
task.add('default', ['clean', 'deploy'])
2
sox OP 大概长这样
|
3
msg7086 2015-10-29 01:36:59 +08:00
stare
英[stɛə] 美[stɛr] n. 凝视;注视;瞪眼 v. 盯;凝视;注视 词形变化: starer stared stared staring stares |
5
msg7086 2015-10-29 13:28:41 +08:00
不是你自己写的 Staring 么
|
7
msg7086 2015-10-29 21:11:46 +08:00
盯着 'deploy' 看……
其实还挺萌的。(? |