This is an Ezel project setup to be a static site deployed via gulp to S3. It serves as an example of a workflow for developing static sites that require rich interaction and unique asset packages per page.
To get started:
$ npm -g install gulp
$ npm install
- Run the server with
$ gulp server
- In a new tab, run
$ gulp watch
./dest contains assets for development
./public contains assets for production
To deploy, create an aws.json
file like so
{
"key": "key",
"secret": "secret",
"bucket": "www.url.com",
"region": "us-east-1"
}
Deploy by running gulp deploy
. Deploy will:
- freshly compile all assets and html files to ./dest
- generate asset hash for individual assets
- move assets to ./public and rename files to include asset hash
- move html files to ./public
- update references to assets in *.html
- compress assets using uglify
- upload assets, images and html to s3
- Gulp should run tests
- auto-deploy on commit via Travis