A library boilerplate with TypeScript.
- Node.js: Latest LTS version.
- npm: Should follow the version of Node.js.
- TypeScript: Latest LTS version.
- ESLint: Latest LTS version.
- Prettier: Latest LTS version.
-
Clone the repository:
git clone https://github.com/leehpham/lib-ts.git <project-folder-name>
-
Remove
.git:rm -rf .git
-
Remove
package-lock.json:rm package-lock.json
-
Rename
"name"field inpackage.jsonto your<project-folder-name>. -
Install packages
npm install
-
(Optional) Update packages and set their version in
package.json:npm update --save
-
Run tests to make sure everything is working:
npm run test -
Update the content of
README.mdand documentation indocsfolder to your liking.
npm run build: Build the application. The output.jsfiles will be in thedistfolder.npm run build:watch: Build in watch mode.npm run lint: Lint filessrcfolder. This needs to be updated to also lint test files in__tests__folder.npm run lint:fix: Fix linting issues for files insrcfolder.npm run test: Run all tests.npm run test:watch: Run all tests in watch mode.npm run test:learning: Run learning tests.npm run test:learning:watch: Run learning tests in watch mode.npm run test:unit: Run unit tests.npm run test:unit:watch: Run unit tests in watch mode.
- Architecture Overview
- Environment Configuration
- Node.js Configuration
- TypeScript Configuration
- Testing Guide
- Contribution Guidelines
- Dependencies
- Backlog
This project is licensed under the ISC License.