Learning JS Promises/ async & await / API Calls
Includes ESLint
- npm init -y
- npm install
- npm run build
- builds and run the production config
- npm start
- "webpack serve --open" Opens webpack-dev-server
- npm watch
- "webpack --watch" Watches all files within dependency graph for changes and auto builds
Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).
Make sure git knows about your subtree (the subfolder with your site).
git add dist && git commit -m "Initial dist subtree commit"Use subtree push to send it to the gh-pages branch on GitHub.
git subtree push --prefix dist origin gh-pagesBoom. If your folder isn’t called dist, then you’ll need to change that in each of the commands above.
Each time you need to update your project’s live preview:
npm run gh-pagenpx eslint yourfile.js