crg

0.0.1 • Public • Published

先运行 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`);

- 使用 类 进行开发。

Readme

Keywords

none

Package Sidebar

Install

npm i crg

Weekly Downloads

1

Version

0.0.1

License

ISC

Last publish

Collaborators

  • qq89987112