Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/devcrossnet/cross-platform-cli-template

A template for building cross platform CLIs with node.js and Typescript
https://github.com/devcrossnet/cross-platform-cli-template

Last synced: 28 days ago
JSON representation

A template for building cross platform CLIs with node.js and Typescript

Awesome Lists containing this project

README

        

# cross-platform-cli-template

> A template for building cross platform CLIs with node.js and Typescript

# Development

1. Install Node.js 8.x or higher.
2. Install npm version 5.x or higher
3. Clone the repository `git clone https://github.com/devCrossNet/cross-platform-cli-template.git`
4. Change directory `cd cross-platform-cli-template`
5. Install dependencies: `npm link`
6. Run `npm run watch`

Now the binary is available to test with `myCLI -h`

## Build

run `npm run build` to create binaries for all platforms.

# Reference resources

- [chalk](https://github.com/chalk/chalk)
- [commander](https://github.com/tj/commander.js/)
- [inquirer](https://github.com/SBoudrias/Inquirer.js)
- [pkg](https://github.com/zeit/pkg)