maj*_*mer 13 facebook flowtype
我想知道是否有人知道在给定的仓库中连续运行"流量检查"命令的好方法,以便在文件更新时它会重新运行?
谢谢!托马斯
fac*_*com 10
fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf "\033[3J" && flow'使用https://github.com/emcrisostomo/fswatch将获得一个很好的颜色编码体验,每次都能正确清除
如果你想把它放在你的NPM脚本中,这里是转义版本:
"flow-watch": "fswatch -o ./ | xargs -n1 -I{} sh -c 'clear; printf \"\\033[3J\" && flow'"
小智 7
我喜欢watch在开发Flpw代码库时使用该命令:watch -t npm run flow
它默认情况下可用于大多数Linux遇险,你可以brew install watch在Mac上使用.我确定还有Windows等价吗?
这个gulp任务gulp-flowtype应该使用:
var gulp = require('gulp')
var flow = require('gulp-flowtype')
gulp.task('手表', 函数() {
// 设置一个观察者
gulp.watch('*.js', 函数(文件) {
返回gulp.src(文件.路径)
.管道(流())
})
})
| 归档时间: |
|
| 查看次数: |
3209 次 |
| 最近记录: |