Skip to content

RomanVinichenko/forest

Repository files navigation

Task: Forest

To start project you must have installed Node JS on your local PC

  1. clone repository "git clone https://github.com/RomanVinichenko/forest.git"

  2. in terminal run "npm insatll"

  3. run "gulp" for start project

...

Для запуска проекта необходимо установить пакетный модуль Node JS, глобально на вашем ПК

  1. Склонируйте репозиторий с помощью команды "git clone https://github.com/RomanVinichenko/forest.git"

  2. Установите пакетные модули командой "npm install"

  3. Введите "gulp" для запуска проекта

To deploy app

  1. npm run deploy
  2. open url https://{login GitHub}.github.io/{repository name}/

For fix styles with Stylelint

.stylelintrc - Stylelint rules
.stylelintignore - Stylelint ignore

  1. npm run stylelint - for see errors
  2. npm run stylelint:fix - for fix errors

for auto fix in VsCode, added this line to settings.json:
"editor.codeActionsOnSave": {"source.fixAll.stylelint": true}

for see errors in file:

  1. VsCode: install stylelint in the app store
  2. IDE from JetBrains: Settings > Stylelint (in search) > tick enable

For fix another code with Prettier

.prettierrc.json - Prettier rules

for fix in VsCode:

  1. install prettier in the app store
  2. right-click on the document
  3. Format Document With
  4. Configure Default Formatter...
  5. Choose Prettier - Code formatter

for auto fix in VsCode, added this line to settings.json:
"editor.formatOnSave": true,

for fix in IDE from JetBrains:

  1. Settings > Plugins > Marketplace > search prettier and install
  2. Search in settings prettier and tick this points:
    On code reformat and On save
  3. Ctrl + Alt + Shift + P for format document