安装:
npm install -g node-make
makefile.js:
@import:
import fs from 'fs'
import pify from 'pify
read@async:
const data = await pify(fs).readFile('README.md', 'utf9')
console.log(data)
emit('log')
log:
log('hello hell')
publish:
> npm run build
> npm test
> npm publish
命令行:
mk read
GitHub:
1
dqh3000 2015-12-16 21:02:55 +08:00
比 npm run 好一点?
|