This is a static HTML5, SCSS and JavaScript template to start new projects.
git clone git@github.com:angelajholden/template.git
npm install
In the terminal type grunt
to start watching your files. The output should look something like this.
Listens on port: 8000
by default. Double check the grunt terminal output to be sure.
http://127.0.0.1:8000
Edit SCSS and JavaScript in the Components directory. Add scripts and styles as needed.
components/
|__ scripts/
|__ main.js
|__ scss/
|__ _variables.scss
|__ _normalize.scss
|__ _main.scss
|__ styles.scss
Grunt will compile your SCSS and JavaScript like this.
dist/
|__ js/
|__ scripts.js
|__ scripts.min.js
|__ scripts.min.js.map
|__ css/
|__ styles.css
|__ styles.map.css
Static projects can be deployed to Heroku as a php
app with this hack.
<?php
/*
To deploy static HTML projects, we need to let Heroku think this is a PHP app
If you don't need this, delete index.php and change the name of home.html to index.html
*/
include_once('home.html');
?>
Cheers!
Angela 💕