#How to use
Clone this repo and then in command line type:
npm install
oryarn
- install all dependenciesgulp
- run dev-server and let magic happen, orgulp build
- build project from sourcesgulp clean
- clean build foldergulp tophp
- build project to folder with wordpress
--
To run separate task type in command line gulp [task_name]
.
Almost all tasks also have watch mode - gulp [task_name]:watch
, but you don't need to use it directly.
Task name | Description |
---|---|
default |
will start all tasks required by project in dev mode: initial build, watch files, run server with livereload |
build:dev |
build dev version of project (without code optimizations) |
build |
build production-ready project (with code optimizations) |
##Other You can also use npm scripts:
npm run start
- same asgulp default
.npm run build
- same asgulp build
.npm run ghpages
to push only./build
folder to gh-pages branch on github (very useful for previews).npm run lint
- linting javascript with eslint.npm run lint-fix
- fix as many issues as possible relatives to eslint settings.