Yeoman generator that scaffolds out a new front-end web project that uses Gulp.
npm install generator-gulp-projectgenerator-gulp-project
===================
Yeoman generator that scaffolds out a new front-end web project that uses Gulp. This Yeoman generator will set up your directories and provide you with two Gulp tasks: $ gulp for development and $ gulp build to compile your project.
$ npm install -g gulp$ npm install -g yo$ npm install -g generator-gulp-project$ mkdir ~/Sites/my_new_project && cd $_$ yo gulp-project```
+ app
+ bower_components/
+ assets/images/
+ assets/javascripts/
+ assets/stylesheets/
.htaccess
index.html
+ dist
+ assets/javascripts/
+ assets/images/
+ assets/stylesheets/
.htaccess
index.html
+ gulp
+ tasks
index.js
.bowerrc
.gitignore
bower.json
Gemfile
gulpfile.js
package.json
#### Adding libraries to your project
If you need to add Fancybox to your project you can search the Bower library for it by running $ bower search fancybox. Once you find the one you are looking for, just run $ bower install fancybox -S and the Fancybox library will now be in app/bower_components. You can also remove a dependency by running $ bower uninstall fancybox -S.
Note: You must use -S in your bower command to add the dependency to your bower.json file.
#### Related files
.bowerrc: Configures the path to the bower_components directory (don't change this)bower.json: Specifies all of the dependencies used in the project.
will move your images to dist/images and compress them.#### Using CoffeeScript
CoffeeScript files must be referenced with a
.js extension. For example, if your CoffeeScript file is located at javascripts/form/myfile.coffee your HTML should be .$3
You are able to use .scss and .css files (though I'd recommend just using .scss). If you are running the $ gulp process, you may want to restart it when creating new files.#### Paths
If you want to reference a
.scss or .css file in your template you must use _tmp in your path. For example, if your .scss file is located at stylesheets/myfile.scss your HTML should be .$3
This is the compiled version of your web project. You deploy this, and only this, folder to the web server.$3
- .gitignore: A standard gitignore file to ignore compiled directories and other OS-based files and folders.
- .htaccess: A basic htaccess file provided by the HTML5 Boilerplate.
- gulpfile.js: A list of the tasks that run on $ gulp and $ gulp build
- package.json`: A list of dependencies for the Gulp tasks.