Every task:
- Includes
eslint
- Includes
stylelint
- Includes
htmllint
- Includes
pre-commit
hooks (eslint, stylelint, htmllint) - Includes
gulp
NodeJS
,npm
download or read installation guidegit
download or read installation guide
- Fork the task repository.
- Clone forked repository
git clone [email protected]:<user_name>>/<task_repository>.git
- Run
npm install
.
- Run
npm run start
to starthttp-server
onhttp://localhost:8080
When you run server the command line window will no longer be available for writing commands until you stop server (ctrl + c
). All other commands you need to run in new command line window. - Make sure the code is clean. Run linters (
npm run lint
) - Follow the simplified JS styleguide
- Follow HTML, CSS styleguide
- When your solution is complete
Deploy on gh-pages
- Execute
npm run deploy
. This command will build your project to the/dist
folder and push it to branchgh-pages
in your remote repository.
- Add links to your
gh-page
inreadme.md
. - Commit and push all recent changes
$ git add . $ git commit -m 'commit message' $ git push origin master
- Create
Pull Request
(going forwardPR
) from forked repo(<branch_name>)
to original repo (master
). - Add a link to
PR
to Google spreadsheet.PR
must include updatedreadme.md
withDemo
.
src/
- directory for html, css, sass, js, image, fonts filesdist/
- directory for built pages
You should be writing code in src/
directory.
Task $ npm run start
When task is executed, gulp starts local web server BrowserSync and opens index.html.
Server uses dist/
as a project root.