Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mrkmg/laravel-elixir-artisan-serve
Elixer Wrapper to run artisan serve for use with browserSync
https://github.com/mrkmg/laravel-elixir-artisan-serve
Last synced: 30 days ago
JSON representation
Elixer Wrapper to run artisan serve for use with browserSync
- Host: GitHub
- URL: https://github.com/mrkmg/laravel-elixir-artisan-serve
- Owner: mrkmg
- Created: 2016-04-15T20:36:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-16T21:50:25.000Z (over 8 years ago)
- Last Synced: 2024-11-22T01:21:15.541Z (about 2 months ago)
- Language: JavaScript
- Size: 13.7 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Laravel Elixir Artisan Serve
============================Current Version: 1.0.6
A simple Elixir Mix to run artisan serve.
var elixir = require('laravel-elixir');
require('laravel-elixir-artisan-serve');
elixir(function (mix) {
mix.artisanServe();
});The mix will only run if gulp is run with watch. This was created to simplify local development utilizing browserSync.
How to Install
--------------npm install --save laravel-elixir-artisan-serve
Full Featured Example
---------------------Example with all *(default)* options and browserSync:
var elixir = require('laravel-elixir');
require('laravel-elixir-artisan-serve');
elixir(function (mix) {
mix
.artisanServe({
php_path: '/usr/bin/php', // Path to PHP
artisan_path: './artisan', // Relative path from gulpfile to the artisan file
host: '127.0.0.1', // Host to pass to artisan serve
port: 8000, // Port to pass to artisan serve
show_requests: true // Show requests in the output
})
.browserSync({
proxy: '127.0.0.1:8000',
files: [
"public/**/*.css",
"public/**/*.js"
]
});
});Then run `gulp watch`
License: MIT