Skip to content

Latest commit

 

History

History
59 lines (40 loc) · 1.49 KB

taskrunner.md

File metadata and controls

59 lines (40 loc) · 1.49 KB

Taskrunner

Introduction

Bower and Gulp are not required to use this CMS! Anyways, if you want to make a new build you'll need both of them.

To get started you'll need npm. Installer packages can be found here.

Bower

In order to keep all the frontend dependencies up to date we're utilizing bower.

If you have trouble using bower you can find help on their website.

Example

cd $development/larapress
sudo npm install -g bower
bower install

Make sure you bower install before running gulp tasks because they will use the frontend dependencies!

Gulp

We're using gulp.js for running build tasks.

If you have trouble using gulp you can find help on their website.

There are several commands you can currently run from the command line:

  • gulp
  • gulp watch
  • gulp less
  • gulp less-per-page
  • gulp js
  • gulp js-per-page
  • gulp fallback
  • gulp fonts
  • gulp phpunit

Simply running gulp will run all the other tasks except gulp watch in a row.
Use gulp watch to make gulp.js watch your filesystem for changes and run the related task.

Example

cd $development/larapress
sudo npm install -g gulp
npm install
gulp

PHPUnit tests

Larapress comes with a gulp task for the PHPUnit tests to make things easier. Simply run gulp phpunit to run the tests. If you just use gulp it will also run the phpunit tests. Be aware that gulp watch wont run phpunit tests!