- created: 2020-06-19T13:48:17.539Z
- updated: 2020-06-19T14:46:29.596Z
Boiler Template for NodeJS project with TypeScript.
We can start a new project with this clean template with TypeScript that keep the code better.
-
Clone this repository. Please replace
YOUR_PROJECT_NAMEto the real name.git clone https://github.com/koheitakumi/node-template-with-typescript.git YOUR_PROJECT_NAME
-
Install packages.
npm install # or yarn install -
Rename the project name
- package.json
- name
- version
- repository
- author
- license
- remove src/index.ts
- change contents as you like
- .vscode/settings.json
- .editorconfig
- .gitignore
- .prettierrc.js
- tsconfig.json
- README.md
- package.json
-
Make your new repository on your Git service like GitHub.
-
Commit these changes.
git add . git commit -m "first commit"
-
Push it into your Git repository. Please replace
YOUR_GIT_REPOSITORY_URLto your repository URL.git remote -v git push YOUR_GIT_REPOSITORY_URL master
or
git remote add origin YOUR_GIT_REPOSITORY_URL git push -u origin master
- Great! You can start your new Project now!🙌
Please check the package.json.
npm run dev
# or
yarn devIt's useful when you develop server side application
npm run dev:watch
# or
yarn dev:watchnpm run clean
# or
yarn cleannpm run tsc
# or
yarn tscnpm run build
# or
yarn buildnpm run start
# or
yarn startnpm run lint
# or
yarn lintnpm run format
# or
yarn formatnpm run precommit
# or
yarn precommit