Basic HTML Project Scaffolding
Basic HTML project scaffolding with Composer, NPM, Webpack, & Bootstrap.
Overview
This project helps speed up the process of setting up a simple HTML project. It creates a maintainable directory structure in addition to configuring Composer, NPM, Webpack, and Bootstrap - and that's basically it. The project is intentionally bare so you can fit it to your needs. By default it uses SCSS but you can easily replace it with anything.
Project Tree
.
├── dist
| ├── assets
| | ├── css
| | └── js
| └── index.html
|
├── src
| ├── js
| | ├── application.js
| | └── scripts.js
| └── scss
| ├── application.scss
| ├── theme.scss
| └── variables.scss
|
├── package.json
└── webpack.mix.js
Getting Started
Prerequirements: You must have Composer and Node.js installed on your system. It's pretty easy to install them, just follow the instructions on their websites.
- Add NPM packages to
package.json
and runnpm install
to download and install them. - Run
npm run dev
,npm run production
, ornpm run watch
to compile your assets.