/monorepo-mongodb-koa-typescript

Monorepo for MongoDB and Koa with Typescript.

Primary LanguageTypeScriptMIT LicenseMIT

monorepo-mongodb-koa-typescript

License

Monorepo for MongoDB and Koa with TypeScript.

Features

This workflow provides the following features:

  • src and __tests__ folder as a starter point to build your project.
  • TypeScript as a strongly typed programming language that builds on JavaScript.
  • tsx as a CLI command (alternative to node) for seamlessly running TypeScript & ESM, in both commonjs & module package types.
  • Jest a delightful JavaScript/TypeScript Testing Framework with a focus on simplicity.
  • webpack as a static module bundler for modern JavaScript applications.
  • EditorConfig to help you maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs.
  • ESLint to statically analyzes your code to quickly find problems.
  • Prettier as an opinionated code formatter.

Development

  • Clone the repo
$ git clone https://github.com/robertoachar/monorepo-mongodb-koa-typescript.git
  • Install dependencies
$ yarn
  • Run scripts
Action Usage (yarn) Usage (npm)
Start development mode yarn start npm start
Build yarn build npm run build
Run lint yarn lint npm run lint
Start lint in watch mode yarn lint:watch npm run lint:watch
Run tests yarn jest npm run jest
Start tests in watch mode yarn jest:watch npm run jest:watch
Run tests with code coverage yarn jest:coverage npm run jest:coverage
Run lint + tests yarn test npm test
Start lint + tests in watch mode yarn test:watch npm test:watch
Run lint + tests with code coverage yarn test:coverage npm test:coverage

Author

Roberto Achar

License

MIT