New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

nova-watcher

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nova-watcher

A basic watcher for Laravel Nova components

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
8
33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Laravel Nova Component Watcher

As many of you may be aware, each custom nova component has it's own node environment.

This can be lovely if you're producing components to share and never touch again.

However it can be a massive pain if you're actively developing a application and reguarlly changing components to fulfil your requirements.

This package simply adds a function to your webpack.mix.js and autoloads in your components so you can use live building etc from a single root watch process.

Install and configuration

To install simply npm i nova-watcher to your root package.json

Then import the library, and attach it to your mix instance e.g


const mix = require('mix');
const novaWatcher = require('nova-watcher');

/*
* All your mix stuff here.
*/

new novaWatcher(mix); // Create a new instance of nova-watcher and bind your mix instance.

Notes

The webpack mix config it uses is the vanilla laravel-nova config as below

.mix
.js('/js/field.js', 'dist/js')
.sass('/sass/field.scss', 'dist/css')
.webpackConfig({
    resolve: {
        symlinks: false
    }
});

If you need more advance ones, feel free to modify the code as much as you want.

Keywords

laravel

FAQs

Package last updated on 23 Aug 2018

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