crg
v0.0.1
Published
npm link
Downloads
6
Readme
先运行 install
在 filesystem 项目里
npm link
回到该项目
npm link filesystem
修改 package.json
添加
"bin": {
"command": "./index.js"
}
然后 在 index.js 头部添加
#!/usr/bin/env node
然后
npm link
其他注意事项
- 引用模版地址。
使用 path.join 配合 __dirname
var template = path.join(__dirname, "../resource/template/");
- 保持原样的文本插入。
使用ES6的模版字符串
console.log(`1
2`);
- 使用 类 进行开发。