experimenting with gulp
This commit is contained in:
parent
eb284681fc
commit
4f295cec79
@ -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
|
||||
|
28
gulpfile.js
28
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');
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user