From 4f295cec792eb2d954dac37c79453e50e1202dea Mon Sep 17 00:00:00 2001 From: Nabeel Shahzad Date: Wed, 21 Jun 2017 12:29:31 -0500 Subject: [PATCH] experimenting with gulp --- README.md | 6 ++++-- gulpfile.js | 28 +++++++++++----------------- package.json | 9 +-------- 3 files changed, 16 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 26798626..247c2ca0 100755 --- a/README.md +++ b/README.md @@ -4,11 +4,13 @@ [![Build Status](https://travis-ci.org/laravel/framework.svg)](https://travis-ci.org/nabeelio/phpvms_next) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/d668bebb0a3c46bda381af16ce3d9450)](https://www.codacy.com/app/nabeelio/phpvms?utm_source=github.com&utm_medium=referral&utm_content=nabeelio/phpvms&utm_campaign=Badge_Grade) [![Total Downloads](https://poser.pugx.org/nabeel/phpvms/downloads)](https://packagist.org/packages/nabeel/phpvms) [![Latest Stable Version](https://poser.pugx.org/nabeel/phpvms/v/stable)](https://packagist.org/packages/nabeel/phpvms) [![Latest Unstable Version](https://poser.pugx.org/nabeel/phpvms/v/unstable)](https://packagist.org/packages/nabeel/phpvms) [![License](https://poser.pugx.org/nabeel/phpvms/license)](https://packagist.org/packages/nabeel/phpvms) -The next phpvms version built on the laravel framework. work in progress. If you're looking for the old, phpVMS classic, it's [available here](https://github.com/nabeelio/phpvms_v2). +The next phpvms version built on the laravel framework. work in progress. If you're looking for +the old, phpVMS classic, it's [available here](https://github.com/nabeelio/phpvms_v2). # installation -run the following commands. for right now, we're running on sqlite. for mysql, set `DB_CONNECTION` to `mysql` in the `.env` file, and skip the `sqlite3` step below. +run the following commands. for right now, we're running on sqlite. for mysql, set +`DB_CONNECTION` to `mysql` in the `.env` file, and skip the `sqlite3` step below. ```bash cp .env.example .env diff --git a/gulpfile.js b/gulpfile.js index a1ae8d4c..a1f00611 100755 --- a/gulpfile.js +++ b/gulpfile.js @@ -1,23 +1,17 @@ -const elixir = require('laravel-elixir'); - -require('laravel-elixir-vue'); - -/* - |-------------------------------------------------------------------------- - | Elixir Asset Management - |-------------------------------------------------------------------------- - | - | Elixir provides a clean, fluent API for defining some basic Gulp tasks - | for your Laravel application. By default, we are compiling the Sass - | file for our application, as well as publishing vendor resources. - | +'use strict'; +/** + * */ -elixir(mix => { - mix.sass('app.scss') - .webpack('app.js'); -}); +var gulp = require('gulp'); +var cp = require('child_process'); +function exec(cmd) { + cp.exec(cmd, function (err, stdout, stderr) { + console.log(stdout); + console.log(stderr); + }); +} gulp.task('reset', function() { exec('php artisan migrate:refresh --seed --seeder DevelopmentSeeder'); diff --git a/package.json b/package.json index d490671c..c393f860 100755 --- a/package.json +++ b/package.json @@ -5,14 +5,7 @@ "dev": "gulp watch" }, "devDependencies": { - "bootstrap-sass": "^3.3.7", "gulp": "^3.9.1", - "jquery": "^3.1.0", - "laravel-elixir": "^6.0.0-9", - "laravel-elixir-vue": "^0.1.4", - "laravel-elixir-webpack-official": "^1.0.2", - "lodash": "^4.14.0", - "vue": "^1.0.26", - "vue-resource": "^0.9.3" + "laravel-elixir": "^6.0.0-9" } }