- Check you're in the project file by using the current working directory command
pwd
- Initialize your project
npm init
- Run npm install from the framework root folder. This will create the node_modules and install the dependancies found in the package.json file.
npm install
npm install -D http-server parcel
- Run development build using the parcel bundler.
npx parcel src/index.html
or
npm start
- Run production build using the parcel bundler.
npx parcel build src/index.html
or
npm run build
-
.gitignore ignores files and they will not be uploaded to your remote repository
-
Set up repo from VS Code
- user profile icon (Accounts)
- sign in to sync settings
- sign in with GitHub
- click green button to accept
- enter the Source Control tab on VS Code
- publish to GitHub public repository
- go to the GitHub repo's page
- select its Settings tab
- scroll to the bottom (Danger Zone)
- delete the repository
- search your local repository for hidden files
ls -lah (on mac)
? (on windows powershell)
- look for a file titled
.git
- remove the .git file by typing
rm -rf .git
- then re-init your repository
- create a Netlify account linked to GitHub
- select the Sites tab
- click the New Site From Git button
- click GitHub and choose which repo to build
- write the correct git command, in this case
npx parcel build src/index.html
- Netlify will deploy your repo automatically