Template for initialising a new website project with Webpack with a basic css reset. Also includes ESLint, Jest, Babel and GitHub Pages support.
Ensure you have Node.js with npm installed.
-
Install GitHub CLI: winget install --id GitHub.cli
-
Create a new project using the template with: gh repo create my-new-project --template https://github.com/bw-01/webpack-template.git --public --clone
- Change --public to --private if you want to create a private repo
-
Navigate to the project folder: cd my-new-project
-
Install dependencies by running setup-project.ps1 or executing the lines in that file if not using Windows.
-
Run a web server to view a project as you update it on http://localhost:8080/ with: npm run dev
-
Generate the distributables for a project with: npm run build