-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
31 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,44 @@ | ||
# NodeJs CLI Starter template | ||
|
||
Starter template to get going ith NodeJs CLI development. | ||
Starter template to get going ith NodeJs CLI development withoutuch fuss. | ||
|
||
Tooling configured | ||
Configured tooling | ||
|
||
- [x] ES6 support with babel | ||
- [x] Nodemon | ||
- [x] Test script with Ava | ||
- [x] build and watch-build scripts | ||
- [x] Prettier and Eslint configs | ||
- [x] Watch scripts for run and tests | ||
- [x] Babel, Prettier and Eslint configs | ||
|
||
## Usage and Configuration | ||
|
||
Create a new repository using this template or copy the files as required. | ||
Using this template to initialise repository or copy the files as required. Or simply use it to get some inspiration. | ||
|
||
Scripts | ||
### Scripts | ||
|
||
- | ||
- **build** : `Build the project and copy the built files to dist folder` | ||
- **test** : `Run ava tests` | ||
- **watch-test** : `Watch code and run tests on code change` | ||
- **cli-run** : `Run the code without building` | ||
- **watch-run** : `Use nodemon to watch code and run on change` | ||
|
||
## ToDo | ||
### Packages | ||
|
||
We are using [Yarn](https://github.com/yarnpkg/yarn) as the default package manager. To use [npm](https://github.com/npm/cli) delete [yarn.lock](yarn.lock) and run `npm install` | ||
|
||
- [chalk](https://github.com/chalk/chalk) | ||
- [inquirer](https://github.com/SBoudrias/Inquirer.js) | ||
- [progress](https://github.com/visionmedia/node-progress) | ||
|
||
Dev dependencies | ||
|
||
- [ava](https://github.com/avajs/ava) | ||
- [babel](https://github.com/babel/babel) | ||
- [eslint](https://github.com/eslint/eslint) | ||
- [nodemon](https://github.com/remy/nodemon) | ||
|
||
|
||
## To Do | ||
|
||
- [ ] Being able to parameterise the setup | ||
- [ ] Options for Test framework | ||
- [ ] CLI setup without using the repository |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters