mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-22 16:02:54 +03:00
Updated gulpfile
This commit is contained in:
parent
f67d4768bb
commit
b22240e38e
1 changed files with 22 additions and 28 deletions
50
gulpfile.js
50
gulpfile.js
|
@ -1,9 +1,9 @@
|
||||||
var gulp = require('gulp'),
|
const gulp = require('gulp');
|
||||||
exec = require('child_process').execSync,
|
const exec = require('child_process').execSync;
|
||||||
del = require('del'),
|
const del = require('del');
|
||||||
fs = require('fs-extra'),
|
const fs = require('fs-extra');
|
||||||
path = require('path'),
|
const path = require('path');
|
||||||
zip = require('zip-dir');
|
const zip = require('zip-dir');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Install and copy the required files from the "composer_modules" directory.
|
* Install and copy the required files from the "composer_modules" directory.
|
||||||
|
@ -13,32 +13,26 @@ var gulp = require('gulp'),
|
||||||
*/
|
*/
|
||||||
gulp.task('composer', function() {
|
gulp.task('composer', function() {
|
||||||
del.sync([
|
del.sync([
|
||||||
'./composer_modules',
|
|
||||||
'./src/vendor/**/*',
|
'./src/vendor/**/*',
|
||||||
'!./src/vendor/index.html'
|
'!./src/vendor/index.html'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
exec('composer update && composer install --prefer-dist', function (err, stdout, stderr) {
|
|
||||||
console.log(stdout);
|
|
||||||
console.log(stderr);
|
|
||||||
});
|
|
||||||
|
|
||||||
return gulp.src([
|
return gulp.src([
|
||||||
'composer_modules/**/*',
|
'vendor/**/*',
|
||||||
'!composer_modules/**/demo{,/**}',
|
'!vendor/**/demo{,/**}',
|
||||||
'!composer_modules/**/{demo,docs,examples,test,extras,language}{,/**}',
|
'!vendor/**/{demo,docs,examples,test,tests,extras,language}{,/**}',
|
||||||
'!composer_modules/**/{composer.json,composer.lock,.gitignore}',
|
'!vendor/**/{composer.json,composer.lock,.gitignore}',
|
||||||
'!composer_modules/**/{*.yml,*.md}',
|
'!vendor/**/{*.yml,*.md}',
|
||||||
'!composer_modules/bin{,/**}',
|
'!vendor/bin{,/**}',
|
||||||
'!composer_modules/codeigniter{,/**}',
|
'!vendor/codeigniter{,/**}',
|
||||||
'!composer_modules/doctrine{,/**}',
|
'!vendor/doctrine{,/**}',
|
||||||
'!composer_modules/myclabs{,/**}',
|
'!vendor/myclabs{,/**}',
|
||||||
'!composer_modules/phpdocumentor{,/**}',
|
'!vendor/phpdocumentor{,/**}',
|
||||||
'!composer_modules/phpspec{,/**}',
|
'!vendor/phpspec{,/**}',
|
||||||
'!composer_modules/phpunit{,/**}',
|
'!vendor/phpunit{,/**}',
|
||||||
'!composer_modules/sebastian{,/**}',
|
'!vendor/sebastian{,/**}',
|
||||||
'!composer_modules/symfony{,/**}',
|
'!vendor/symfony{,/**}',
|
||||||
'!composer_modules/webmozart{,/**}'
|
'!vendor/webmozart{,/**}'
|
||||||
])
|
])
|
||||||
.pipe(gulp.dest('./src/vendor/'));
|
.pipe(gulp.dest('./src/vendor/'));
|
||||||
});
|
});
|
||||||
|
@ -100,7 +94,7 @@ gulp.task('doc', function(done) {
|
||||||
fs.removeSync('doc/plato');
|
fs.removeSync('doc/plato');
|
||||||
fs.mkdirSync('doc/plato');
|
fs.mkdirSync('doc/plato');
|
||||||
|
|
||||||
var commands = [
|
const commands = [
|
||||||
'php rsc/apigen.phar generate ' +
|
'php rsc/apigen.phar generate ' +
|
||||||
'-s "src/application/controllers,src/application/models,src/application/libraries" ' +
|
'-s "src/application/controllers,src/application/models,src/application/libraries" ' +
|
||||||
'-d "doc/apigen" --exclude "*external*" --tree --todo --template-theme "bootstrap"',
|
'-d "doc/apigen" --exclude "*external*" --tree --todo --template-theme "bootstrap"',
|
||||||
|
|
Loading…
Reference in a new issue