Simple boilerplate to get a static HTML/CSS/JS project up and running.
Just a directory with some good starter bits:
source/
| + index.html
|__ css
| |__ base/
| |__ modules/
| |__ site/
| + style.scss
|__ images/
|__ js/
| + scripts.js
- A few SCSS variables (colors & fonts)
- A few handy mixins
- A bunch of empty sass partials for organization. Use 'em or don't.
All of the above are there for sanity, but feel free to trash 'em all.
This project uses Gulp for:
- SASS compilation
- Image compression
- Concat and minifying js
- Flatten html directory structure
- Move all directory and assets to
_build
Move into directory of your choice:
cd path/to/directory-of-your-choice
Create the project inside that directory:
git clone https://github.com/luclemo/static-starter.git
Assuming you already have gulp and npm installed globally
Install node packages from package.json
:
npm install
Launch local server:
gulp
Files are served at localhost:3000 from the _build
directory.
Your browser will automatically reload to show you your changes on save.