Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 1.26 KB

README.md

File metadata and controls

55 lines (41 loc) · 1.26 KB

ZF2Skeleton

For start use frontend

  1. install nodejs
  2. npm install
  3. bower install

Bower - package manager for the web


Main file: bower.json

By default bower create folder with depend. /bower_components, if want change this directory create .bowerrc file in root directory and add next content:

{
"directory": "public/bower_components"
}


How to use


bower install package-name


By default to bower.json add bootstrup,lodash.

if need more js lib search in http://bower.io/search/

GULP - streaming build system (http://gulpjs.com)



Main file: gulpfile.js

by default have 2 task
1) compile public/js/vendor.js, public/js/vendor.min.js
2) compile public/css/vendor.css, public/css/vendor.min.css

How to use Gulp



In console

gulp default

Clear folders public/js and public/css, run added task (by default compile vendors files), start watch added tasks (one of the task)


>gulp build

Clear folders public/js and public/css, run added task (by default compile vendors files)


>gulp watch

Start watch added tasks