A swift Front-end starter
- gulp - build system automating tasks
- libsass - SCSS compilation (optional)
- jshint - code quality for JavaScript
- browserSync - preview web app with live reloading
- imagemin - optimize images
The generator requires NodeJS to be installed. Please visit the NodeJS website for installation instructions.
Upon ensuring NodeJS is properly installed, simply run the following commands on your terminal
or command prompt
.
npm install -g yo bower
- install yeoman and bowernpm install -g generator-upfront
- install the generator
NodeJS installs on %USERPROFILE%\AppData\Roaming\npm\
so you have to set your environment varialble NODE_PATH to point to this location.
- Click the
Start
Menu, and right-clickComputer
. - Click
Advanced system settings
>Advanced
tab >Environment Variables
. - Click
New
and enter the following values:- Varialble name:
NODE_PATH
- Varialble value:
%USERPROFILE%\AppData\Roaming\npm\
- Varialble name:
- Click
OK
to finish.
cd [PATH-TO-PROJECT]
- navigate to your project folder and make sure it's empty.
yo upfront
- starts the generator and gives you a selection of which modules you want to include (press Space to check/uncheck options).
gulp serve
- this will spawn a web server at
localhost:9000
and watch for your changes. - start developing!
- this will spawn a web server at
gulp build
- this command will generate a build for your app, minifying JS and CSS as well as inject necessary components. For more info, check out the
gulpfile.js
generated.
- this command will generate a build for your app, minifying JS and CSS as well as inject necessary components. For more info, check out the
Feel free to contribute to this generator by forking this repository. You can also email me [email protected]