generator-fed
v2.3.2
Published
Yeoman generator for Frontend Development with Browserify and SASS Composer.
Maintainers
Readme
generator-fed
Yeoman generator for Frontend Development with Browserify and SASS Composer.
Installation
$ npm install -g yo generator-fedUsage
$ mkdir demo && cd demo
$ yo fed [--name <name>] [--es5|--es6|--react|--universal] [--install]--es5Creates a blank ES5 project with no frameworks or packages included.
--es6Creates a blank ES6 project with no frameworks or packages included.
--reactCreates a static React project. Uses React and is transpiled to ES5 from ES6+JSX.
--universalCreates a Universal JavaScript project. Uses React and Redux transpiled to ES5 from ES6+JSX.
--installInstalls the dependencies for your new project after it is created.
Features
- async builds with
gulp
Scripts
- dependencies from
npm - linted with
eslint - bundled with
browserify - transpiled with
babel - minified with
uglify - tested with
karma-mocha(just plainmochafor shallow rendering with React) - test coverage with
istanbul - watched with
watchify
Styles
- dependencies from
npm - bundled with
sass-composer - prefixed with
autoprefixer - minified with
clean-css - watched with
sass-composer
Images
- urls rewritten and copied to the build dir with
sass-composer - images optimised with
imagemin
Universal Javascript
- served with
express - rendered with
react - data flow managed with
redux - routed with
redux-simple-router - pre-fetching with
react-fetcher - debug with
redux-devtools
Static content
Note: Temporarily missing from v2
(optional)
- templates with
ejs - built with
metalsmith - minified with
html-minifier - watched with
gulp
TODO:
livereload/browsersync- make
karma-threshold-reporteractually break the build karma-browserifastmight bundle tests faster?testemmight be nicer for debugging tests?react-dom-streamfor faster rendering?- hot reloading
- update universal app readme
- ignore console.log in server code
License
The MIT License (MIT)
Copyright (c) 2015 James Newell
