New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

laravel-elixir-artisan-serve

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

laravel-elixir-artisan-serve

Elixer Wrapper to run artisan serve for use with browserSync

  • 1.0.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

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

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

Keywords

FAQs

Package last updated on 16 Apr 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc