diff --git a/composer.json b/composer.json index 32ad6615..8748802b 100644 --- a/composer.json +++ b/composer.json @@ -35,19 +35,7 @@ }, "autoload-dev": { "classmap": [ - "tests", - "database" - ] - }, - "scripts": { - "post-install-cmd": [ - "php -r \"file_exists('.env') || copy('.env.example', '.env');\"", - "Illuminate\\Foundation\\ComposerScripts::postInstall", - "php artisan optimize" - ], - "post-update-cmd": [ - "Illuminate\\Foundation\\ComposerScripts::postUpdate", - "php artisan optimize" + "tests" ] }, "config": { diff --git a/gulpfile.js b/gulpfile.js index 5dea5e70..ce6442b3 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -7,6 +7,7 @@ var gulp = require('gulp'), sass = require('gulp-sass'), cleanCss = require('gulp-clean-css'), del = require('del'), + exec = require('gulp-exec'), concat = require('gulp-concat'), zip = require('gulp-zip'), replace = require('gulp-batch-replace'), @@ -175,9 +176,7 @@ gulp.task('zip', () => { '!.bowerrc', '!.gitignore', '!.git/**/*.*', - '!.git/', '!.github/**/*.*', - '!.github/', '!.gitmodules', '!.gitattributes', '!gulpfile.js', @@ -199,6 +198,7 @@ gulp.task('zip', () => { '!vendor/symfony/css-selector/**/*.*', '!vendor/symfony/dom-crawler/**/*.*' ], { dot: true }) + .pipe(exec('composer dump-autoload --no-dev')) .pipe(zip(zipPath)) .pipe(notify('Don\'t forget to compile Sass & ES2015 files before publishing a release!')) .pipe(gulp.dest('../')) diff --git a/package.json b/package.json index 91958f62..b58767fc 100644 --- a/package.json +++ b/package.json @@ -29,6 +29,7 @@ "gulp-clean-css": "^3.6.0", "gulp-concat": "^2.6.1", "gulp-eslint": "^4.0.0", + "gulp-exec": "^2.1.3", "gulp-notify": "^3.0.0", "gulp-sass": "^3.1.0", "gulp-uglify": "^3.0.0", diff --git a/yarn.lock b/yarn.lock index b80699ae..37765ccd 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1903,6 +1903,14 @@ gulp-eslint@^4.0.0: eslint "^4.0.0" gulp-util "^3.0.8" +gulp-exec@^2.1.3: + version "2.1.3" + resolved "http://registry.npm.taobao.org/gulp-exec/download/gulp-exec-2.1.3.tgz#460a4ec8df86841d1738bc74958c68e5769342d9" + dependencies: + gulp-util "^3.0.7" + gulplog "^1.0.0" + through2 "^2.0.1" + gulp-notify@^3.0.0: version "3.0.0" resolved "http://registry.npm.taobao.org/gulp-notify/download/gulp-notify-3.0.0.tgz#a04b8af9acdbe4e63c845678ce0c3d30694c59a3" @@ -1935,7 +1943,7 @@ gulp-uglify@^3.0.0: uglify-js "^3.0.5" vinyl-sourcemaps-apply "^0.2.0" -gulp-util@3.0.8, gulp-util@^3.0, gulp-util@^3.0.0, gulp-util@^3.0.8: +gulp-util@3.0.8, gulp-util@^3.0, gulp-util@^3.0.0, gulp-util@^3.0.7, gulp-util@^3.0.8: version "3.0.8" resolved "http://registry.npm.taobao.org/gulp-util/download/gulp-util-3.0.8.tgz#0054e1e744502e27c04c187c3ecc505dd54bbb4f" dependencies: