- Node.js 16.13.0 (see
.node-version
)
$ npm ci
to install dependencies
$ npm start
then you can see the page on http://localhost:1234
eslint
will check your code is good or not and if it's easy to fix, eslint
will fix it automatically.
before commit, you MUST run this to clean up your change.
$ npm run lint
$ npm run build
will build your codes into one js file and minify it and then put it on dist
dir.
basically you don't need to do this because $ npm start
will build your code automatically and then start the server and you can browse it.
- create new feature branch and then checkout it there.
- modify code
$ npm run lint
and fix it- commit & push
- send new "Pull Request" to the
master
branch - someone will review your PR
- fix until reviewer approve your PR
- if the PR approved, you can merge it
- automatically deployed to github-pages
we use "GitHub flow". see the doc, and also this article might be so useful.