experimenting with gulp
This commit is contained in:
@@ -4,11 +4,13 @@
|
|||||||
|
|
||||||
[](https://travis-ci.org/nabeelio/phpvms_next) [](https://www.codacy.com/app/nabeelio/phpvms?utm_source=github.com&utm_medium=referral&utm_content=nabeelio/phpvms&utm_campaign=Badge_Grade) [](https://packagist.org/packages/nabeel/phpvms) [](https://packagist.org/packages/nabeel/phpvms) [](https://packagist.org/packages/nabeel/phpvms) [](https://packagist.org/packages/nabeel/phpvms)
|
[](https://travis-ci.org/nabeelio/phpvms_next) [](https://www.codacy.com/app/nabeelio/phpvms?utm_source=github.com&utm_medium=referral&utm_content=nabeelio/phpvms&utm_campaign=Badge_Grade) [](https://packagist.org/packages/nabeel/phpvms) [](https://packagist.org/packages/nabeel/phpvms) [](https://packagist.org/packages/nabeel/phpvms) [](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
|
# 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
|
```bash
|
||||||
cp .env.example .env
|
cp .env.example .env
|
||||||
|
|||||||
28
gulpfile.js
28
gulpfile.js
@@ -1,23 +1,17 @@
|
|||||||
const elixir = require('laravel-elixir');
|
'use strict';
|
||||||
|
/**
|
||||||
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.
|
|
||||||
|
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
elixir(mix => {
|
var gulp = require('gulp');
|
||||||
mix.sass('app.scss')
|
var cp = require('child_process');
|
||||||
.webpack('app.js');
|
|
||||||
});
|
|
||||||
|
|
||||||
|
function exec(cmd) {
|
||||||
|
cp.exec(cmd, function (err, stdout, stderr) {
|
||||||
|
console.log(stdout);
|
||||||
|
console.log(stderr);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
gulp.task('reset', function() {
|
gulp.task('reset', function() {
|
||||||
exec('php artisan migrate:refresh --seed --seeder DevelopmentSeeder');
|
exec('php artisan migrate:refresh --seed --seeder DevelopmentSeeder');
|
||||||
|
|||||||
@@ -5,14 +5,7 @@
|
|||||||
"dev": "gulp watch"
|
"dev": "gulp watch"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bootstrap-sass": "^3.3.7",
|
|
||||||
"gulp": "^3.9.1",
|
"gulp": "^3.9.1",
|
||||||
"jquery": "^3.1.0",
|
"laravel-elixir": "^6.0.0-9"
|
||||||
"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"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user