Saving my learnings to a repo instead of random notes.
- Get git
- Create repo on github
- Clone repo locally
git clone ...
Why not Yarn or Parcel? (IDK) Why not do a mono-repo with Lerna? (IDK)
- Get npm
- Get nvm
npm init
to setup package.json- Don't forget to add
.gitignore
in order to ignore node_modules &dist
(bundle output)
npm install eslint --save-dev
./node_modules/.bin/eslint --init
- Don't forget to add the lint command to your package.json
- add
"lint": "./node_modules/.bin/eslint src/**"
- add
- Install editorConfig IDE/editor package
npm install editorconfig-cli --save-dev
OR you can just make your own.editorConfig
file- Create
./node_modules/.bin/ec init
such that it matches linter (sorry)
npm install --save-dev pre-commit
- babel instalation
npm install --save-dev babel-loader babel-core
npm install babel-preset-env --save-dev
- Compiles from ES6 to ES5.
- ES5
- ES6 === ECMAScripts 2015
- Webpack getting started
- Webpack core concepts
npm install --save-dev webpack webpack-cli
- Webpack hello world
npm install --save-dev webpack-dev-server
Why standard-version
and not conventional-commits-parser
?
- I don't know.
npm install --save-dev standard-version
npm run release