A ultimate starter template for Node.js with TypeScript + Jest + ESLint + Parcel + TypeDoc (+ Gitpod)! 😄
There's also automated testing, linting, and documentation generation using GitHub Actions! ⚡
Let's get started development at the fastest speed! 🏎️
field in ./package.json |
value |
|---|---|
source |
src/index.ts |
main |
dist/index.js |
types |
dist/index.d.ts |
$ tree src
src
├── index.ts
├── main.test.ts
└── main.ts
0 directories, 3 files
Requires:
tmux (used by npm run dev and npm run docs:serve)npx degit sakkke/nodejs-ultimate-template [project-name]
cd [project-name]
npm i
npm run dev
npm run dev<C-b>:killw<CR>npm run devnpm run watch
npm run test:watch
npm run lint:watch
npm run docs:watch
_docsnpx serve _docs
./LICENSEname, version, description, author in ./package.jsonenv.PUBLISH_*_SCOPE fields in ./.github/workflows/main.yml (see #Scope)gh-pages branch./README.mdThis template supports publishing to GitHub Package Registry and npm Registry with GitHub Actions.
To publish, you push the commit that starts with :bookmark:.
Also, you can use the commit that starts with :bug:, :sparkles: or :boom:.
They are incrementing version field in ./package.json and publishing at the same time.
| Start with | What kind of increment |
|---|---|
:bug: |
It increments patch version (like npm version patch) |
:sparkles: |
It increments minor version (like npm version minor) |
:boom: |
It increments major version (like npm version major) |
You must need secrets.PAT.
This is GitHub Personal Access Token.
| Registry | Default scope |
|---|---|
| GitHub Package Registry | @sakkke |
| npm Registry | @0wv |
To change, you must edit env.PUBLISH_*_SCOPE fields in ./.github/workflows/main.yml.
$ git commit --allow-empty -m ':bookmark: v0.1.0'
$ git tag v0.1.0
$ git push --follow-tags
$ git commit --allow-empty -m ':bookmark: v0.42.0'
$ git tag v0.42.0
$ git push --follow-tags
$ git commit --allow-empty -m ':sparkles: release'
$ git push
Unlicense
Generated using TypeDoc