A command to create something.
Use this command whenever you want to start something new:
npm create something@latestAnd that's it! Now start coding!
For this proof of concept, something includes the following:
- New Git repo with basic
.gitignore - Basic
package.jsonwith commands - TypeScript with a basic and strict configuration
srcdirectory with anindex.tsfile waiting for you- Jest.js with basic configuration for testing and a
testsdirectory - Types for Jest.js and Node
@/*path that works also in the tests and dist
You can execute the following commands out-of-the-box:
npm run dev
npm run test
npm run test:watch
npm run test:watch-all
npm run build
npm run start
npm run format
In the future, something will let you specify what do you want to create and
prepare the basic folder structure and configurations (e.g. API, CLI, monorepo, ...).