Skip to content

KostiantynO/goit-react-hw-01-components

Folders and files

NameName
Last commit message
Last commit date

Latest commit

de83e7e · Jan 13, 2022

History

26 Commits
Dec 27, 2021
Dec 29, 2021
Jan 6, 2022
Dec 28, 2021
Dec 28, 2021
Jan 13, 2022
Dec 29, 2021
Dec 31, 2021
Dec 31, 2021
Dec 28, 2021

Repository files navigation

steps:

cd ..
npx create-react-app goit-react-hw-01-components
cd !$

git init && git add . && git commit -m "initial project files"
git remote add origin https://github.com/KostiantynO/goit-react-hw-01-components.git
git remote -v && git status
git push -u origin HEAD

npm i -D prettier eslint prop-types gh-pages styled-components
npx mrm@2 lint-staged

curl --man | less +/-O
curl -O https://raw.githubusercontent.com/goitacademy/react-lint-staged-workshop/master/.prettierrc.json

package.json - add to package.json two scripts and homepage:

  "homepage": "https://KostiantynO.github.io/goit-react-hw-01-components",

  "scripts": {
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },

  "lint-staged": {
    "*.{js,jsx}": "eslint --cache --fix",
    "*.{js,jsx,css,scss,md}": "prettier --write"
  }
git add . && git commit -m "Updates"
git push
npm run deploy