Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

Updated the package to support laravel elixir v3.0 and above #2

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 10 additions & 8 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
'use strict';

var gulp = require('gulp');
var elixir = require('laravel-elixir');
var Elixir = require('laravel-elixir');
var _ = require('underscore');
var apidoc = require('gulp-apidoc');

elixir.extend('apidoc', function (options) {
Elixir.extend('apidoc', function (options) {

var opts = _.extend({
options = _.extend({
src: 'app/',
dest: 'docs/api'
dest: 'public/docs/api'
}, options);

gulp.task('apidoc', function () {
apidoc.exec(opts);
});
new Elixir.Task('apidoc', function () {
apidoc.exec({
src: options.src,
dest: options.dest
});
}).watch(options.src + '**/*.php');

return this.queueTask('apidoc');
});
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "laravel-elixir-apidoc",
"description": "Build style guide with hologram.",
"version": "0.1.3",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
Expand Down