Skip to content

davestewart/laravel-sketchpad-reload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sketchpad Reload

Overview

Sketchpad Reload is Node module that provides file watching and live-reloading capability for Laravel Sketchpad.

By default it:

  • watches all controller, asset and view folders
  • reloads changes to loaded scripts and styles
  • re-runs the current method if the controller is updated
  • re-runs the current method when additionally-watched files are updated, added or deleted
  • reloads the navigation when any controllers updated, added or deleted

Sketchpad Reload also runs as a standalone script – no need to integrate with any build processes!

Express setup

If you have a standard Laravel setup, install Sketchpad Reload to your root folder:

npm install sketchpad-reload --save

Next, create a new file sketchpad.js, add the following code, and save:

require('sketchpad-reload').watch()

To start Sketchpad Reload, call the script using Node:

node sketchpad

See the wiki for custom installation and setup instructions.

About

Live-reload functionality for Laravel Sketchpad

Resources

License

Stars

Watchers

Forks

Packages

No packages published