Phoenixdown
Phoenixdown provides a simple-but-fantasy-ish API for defining basic Gulp tasks for your (especially Laravel) web application.
However, instead of providing all new API style like Elixir, we just provide a simple functions to use will Gulp.
If you're eliminated, Elixir can't help you, but Phoenix Down can.
Installation
Add gulp-phoenixdown
as an dependency in devDependencies
of your package.json
file, then run npm install
.
Usage
Require gulp-phoenixdown
in your gulpfile.js
, then just "cast" some skills:
var gulp = ;var cast = ; gulp;gulp;
That's it! We just provide skills: the functions to create common tasks easily. However, if you want more tasks, you can just use Gulp directly.
Built-in skills
- angularTemplateCache
- all
- browserSync
- browserify
- clean
- concat
- copy
- jshint
- less
- version
angularTemplateCache
Make template cache for AngularJS, from src
to dest
.
gulp;
all
Cast many skills at once.
gulp;
browserSync
To start the server:
castbrowserSync;
You may omit the server
argument, and it will try to use value from APP_URL
or APP_DOMAIN
of .env
file in the project.
To reload the server:
castbrowserSync;
browserify
Bundle JavaScripts with Browserify.
Declaring the task:
gulp;
Or call in watch
task:
cast;
clean
gulp;
concat
gulp;
copy
gulp;
jshint
Lint JavaScript files with JSHint.
gulp;
less
Compile LESS files from src
to css into dest
directory.
gulp;
version
gulp;
Sample
var gulp = ;var cast = ; // Task Setvar build = 'browserify' 'template' 'less' 'copy';var postBuild = 'version';var develop = 'server' 'watch'; // Usagegulp;gulp; // Buildgulp;gulp;gulp;gulp;gulp; // Developgulp;gulp;gulp;