Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ebello/generator-wintersmith-perf
A set of packages and build scripts to enable a highly optimized and performant static site using wintersmith. Enables easy deployment to S3.
https://github.com/ebello/generator-wintersmith-perf
Last synced: 4 months ago
JSON representation
A set of packages and build scripts to enable a highly optimized and performant static site using wintersmith. Enables easy deployment to S3.
- Host: GitHub
- URL: https://github.com/ebello/generator-wintersmith-perf
- Owner: ebello
- License: mit
- Created: 2014-05-11T18:30:12.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2019-02-11T00:23:28.000Z (about 6 years ago)
- Last Synced: 2024-08-02T16:47:57.522Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# generator-wintersmith-perf [](https://david-dm.org/ebello/generator-wintersmith-perf#info=devDependencies)
[](https://greenkeeper.io/)
A set of packages and build scripts to enable a highly optimized and performant static site using wintersmith. Enables easy deployment to S3.
## Setup
Requires node and npm. `brew install node` gets you both.1. Download [latest zip](https://github.com/ebello/generator-wintersmith-perf/archive/master.zip).
2. Rename folder to project name.
3. `cd [PROJECT NAME]`
4. `npm install`
5. `gulp`
6. Point your browser to [http://localhost:8888](http://localhost:8888)## Build environment
Running `gulp` starts the development environment. All HTML, CSS, JS files are monitored and changes will automatically reload Chrome if you have the [extension](https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei?hl=en) installed.### CSS
Place Sass files in `./styles`. Write valid CSS and [autoprefixer](https://github.com/ai/autoprefixer) will take care of any vendor prefixes.### JavaScript
Place your scripts in `./scripts/client`. Use [browserify](http://browserify.org/articles.html) to bundle all client files together. Libraries can be placed under `./scripts/vendor`. Scripts will be minified with uglify. Any file ending with `.min.js` will not be minified again. ES6 is supported by babel.### Images
Create a `./assets` folder to place images, downloads, or other miscellaneous files. If you have images to use for retina screens, place them in a folder named `2x` under `./assets`. Retina images will automatically be sized down 50% and placed in the folder above the `2x` folder it is residing in. Run `gulp responsive_images:resize_2x_images` to resize them.### Deployment testing
Run `gulp deploy:test` to run through the entire build process and host the site locally.### Amazon S3 deployment
S3 configuration for staging and production is included. Find the appropriate config section in `gulp-utilities.js` and fill in the S3 buckets you're using. Run `gulp deploy --target=staging` or `gulp deploy --target=production`.### Wintersmith
The config file for Wintersmith is at `./config.json`. [Nunjucks](http://mozilla.github.io/nunjucks/) is included for the templating language.***
Heavily inspired from https://github.com/davidtucker/davidtucker-blog