README
Sayonara, config
A zero-config toolkit for JavaScript and TypeScript projects.
Currently this toolkit includes:
- Project initialization (
npm init,git init,.editorconfig, etc.) - Linting via ESLint+Prettier
- Auto formatting via Prettier
- Jest as a test runner
- TypeScript support
- JSDoc support
Usage
Sayonara, config has multiple sets of configuration suitable for different types of project.
node-app- Node.js appnode-app-ts- TypeScript Node.js appnode-library- Node.js librarybrowser-library- a library meant to be used on the clientuniversal-library- a library meant to be used on both the client and the servernpm-package- prepare project for publish on NPMts-ready- a typechecked JS library with index.d.ts builtpreact-app-ts- a TypeScript Preact App
Multiple sets are allowed.
Just run in the project directory:
npx @alex7kom/sayonara-config node-library npm-package
It will install all the needed dependencies and project boilerplate. It will also remember installed sets so the next time you upgrade Sayonara, config you'll just need to run:
sayonara-config
Usage
Commands exposed via NPM scripts:
lint- lint*.jsand*.tsfiles in/srcdirectorypretty- pretty*.jsand*.tsfiles in/srctest- run Jest on*.test.js(x)and*.test.ts(x)files in/srcbuild- run build tools where applicable
License
MIT