mirror of
https://github.com/archtechx/airwire.git
synced 2025-12-12 10:44:03 +00:00
write readme
This commit is contained in:
parent
d26fa93f1e
commit
28e16d6bef
7 changed files with 619 additions and 5 deletions
|
|
@ -1,14 +1,14 @@
|
|||
const chokidar = require('chokidar');
|
||||
const exec = require('child_process').exec;
|
||||
|
||||
class AirwireWatcher {
|
||||
constructor(files = 'app/**/*.php') {
|
||||
constructor(chodikar, files = 'app/**/*.php') {
|
||||
this.chodikar = chodikar;
|
||||
this.files = files;
|
||||
}
|
||||
|
||||
apply(compiler) {
|
||||
compiler.hooks.afterEnvironment.tap('AirwireWatcher', () => {
|
||||
chokidar
|
||||
this.chodikar
|
||||
.watch(this.files, { usePolling: false, persistent: true })
|
||||
.on('change', this.fire);
|
||||
});
|
||||
|
|
|
|||
1
resources/js/_types.d.ts
vendored
1
resources/js/_types.d.ts
vendored
|
|
@ -1,3 +1,4 @@
|
|||
import Airwire from '.';
|
||||
import './airwired'
|
||||
|
||||
declare module 'airwire' {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue