generator-scriptist
Version:
Scaffold out a front-end web app
61 lines (37 loc) • 2.35 kB
Markdown
# Web app generator
> [Yeoman](http://yeoman.io) generator that scaffolds out a front-end web app using [gulp](http://gulpjs.com/) for the build process

## Features
Please see our [gulpfile.js](app/templates/gulpfile.js) for up to date information on what we support.
* CSS Autoprefixing
* Built-in preview server with BrowserSync
* Automagically compile Sass with [libsass](http://libsass.org)
* Automagically compile CoffeeScript
* Map compiled CSS to source stylesheets with source maps
* Awesome image optimization
* Automagically wire-up dependencies installed with [Bower](http://bower.io)
* [Swig](http://paularmstrong.github.io/swig/) templating
* Deploy to FTP server using [vinyl-ftp](https://www.npmjs.com/package/vinyl-ftp)
*For more information on what this generator can do for you, take a look at the [gulp plugins](app/templates/_package.json) used in our `package.json`.*
## libsass
Keep in mind that libsass is feature-wise not fully compatible with Ruby Sass. Check out [this](http://sass-compatibility.github.io) curated list of incompatibilities to find out which features are missing.
If your favorite feature is missing and you really need Ruby Sass, you can always switch to [gulp-ruby-sass](https://github.com/sindresorhus/gulp-ruby-sass) and update the `styles` task in `gulpfile.js` accordingly.
## Getting Started
- Install dependencies: `npm install --global yo bower`
- Install the generator: `npm install --global generator-scriptist`
- Run `yo gulp-webapp` to scaffold your webapp
- Run `gulp serve` to preview and watch for changes
- Run `bower install --save <package>` to install frontend dependencies
- Run `gulp` to build your webapp for production
- Run `gulp deploy` to deploy to an FTP server (if you enabled it in the initial set-up)
## Options
- `--skip-welcome-message`
Skips Yeoman's greeting before displaying options.
- `--skip-install-message`
Skips the the message displayed after scaffolding has finished and before the dependencies are being installed.
- `--skip-install`
Skips the automatic execution of `bower` and `npm` after scaffolding has finished.
## Contribute
See the [contributing docs](contributing.md).
## License
[BSD license](http://opensource.org/licenses/bsd-license.php)