Skeleton of CLI Node.js app. Pre-packed with:
- typescript
- jest test framework
- winston logger
- commander CLI arguments parser
- dotenv settings loader
Clone the repository:
git clone --depth=1 https://github.com/onspli/node-cli-skeleton.git my-cli-app
cd my-cli-app
rm -rf .gitFind all occurences of node-cli-skeleton and replace them with my-cli-app.
Build the app and test it:
npm install
npm run build
npm testRun the app:
node dist/main.jsLink the app locally and execute it:
npm link
node-cli-skeleton