Yeoman generator for landing project powered by Gulp.
Make sure you have yeoman
, bower
and gulp
installed:
$ npm install -g yo bower gulp
Install the generator:
$ npm install -g generator-yeomify-landing
Then, create a folder for the generator and unfold it:
$ yo yeomify-landing
During installation you can install pug as template engine and less, sass or stylus as css preprocessor.
Then, run npm install
and bower install
to install the required dependencies.
After installation you'll have the following directory structure:
├── app
│ ├── css
│ ├── pug
│ ├── scripts
│ └── index.html
├── gulp
│ ├── build.js
│ ├── config.js
│ └── watch.js
├── bower.json
├── gulpfile.js
├── package.json
└── readme.md
Use the following commands for development:
gulp watch
run a watcher for theapp
folder;gulp build
build the project todist
folder;gulp build --abspaths
build the project todist
folder with the absolute paths (css and js files);gulp build:watch
run a watcher for thedist
folder;gulp build:clean
removedist
and.tmp
folders.
Also, you can change the gulp options in config.js
file.
Each template engine and preprocessor uses a linter. The documentation for linters rules: pug, css, less, sass and stylus. Javascript uses jshint and supports ECMAScript 6 syntax. By default, this functionality is disabled, but you can enable it by changing the es6syntax
flag into your config.js
file.
- 1.6.2 — Fixed minor bugs, updated descriptions.
- 1.6.1 — Updated version of
require-dir
package. - 1.6.0 — Added
babeljs
support, updated javascript linter. - 1.5.0 — Added ability to copy folders and contents of them (expanded
copyfiles
parameter inconfig.js
). - 1.4.2 — Updated gulp dependencies, replaced
gulp-minify-html
togulp-htmlmin
, fixed reset files. - 1.4.1 — Added
onLast
parameter forgulp-notify
config, updatedjslinter
config. - 1.4.0 — Replaced
jade
plugin topug
, addedpug
linter, updatedbody
styles. - 1.3.2 — Fixed issue #4, updated modernizr version.
- 1.3.1 — Fixed bug where the page was reloaded without insert styles in
jade
file, optimizedwatch
task. - 1.3.0 — Added
less
,sass
andstylus
linters, updated styles files structure, updated bower dependencies. - 1.2.2 — Renamed config option from
css
tocsstype
, renamed folder fromstyles
tocss
, updated names of tasks. - 1.2.1 — Fixed bug with incorrect paths in
app
folder after run thebuild
task, added default font file for css. - 1.2.0 — Replaced
gulp-ruby-sass
togulp-sass
. - 1.1.2 — Added
.idea
folder to.gitignore
. - 1.1.1 — Updated csslint validator options.
- 1.1.0 — Added
stylus
preprocessor, added--abspaths
parameter tobuild
task, updated less structure folder. - 1.0.6 — Validator options as external files, updated documentation.
- 1.0.5 — Bug fixed in
inject
task, updategulp-minify-html
config. - 1.0.4 — Added html5doctor reset stylesheet, bug fixed in
watch
tasks, addedpictures
folder to config. - 1.0.3 — Added sourcemaps, bug fixed with
.gitignore
. - 1.0.2 — Added yeoman generator support.
- 1.0.1 — Bugs fixed.
- 1.0.0 — Added npm support.
- 0.1.0 — Initial release.
MIT © Ilya Fedotov