-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Point array buffer to the correct location on colorShaderDrawRectangle
- Loading branch information
Showing
5 changed files
with
218 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,23 @@ | ||
const fsevents = require('fsevents'); | ||
const chokidar = require('chokidar'); | ||
const { exec } = require('child_process'); | ||
|
||
console.log("Started watching /src directory..."); | ||
|
||
const stop = fsevents.watch('./src', (path, flags, id) => { | ||
const info = fsevents.getInfo(path, flags, id); | ||
if(info.event === 'moved') { | ||
console.log(`Detected change in ${info.path}.`); | ||
exec('./build.sh dev', (error, stdout, stderr) => { | ||
if(error) { | ||
console.log(`error: ${error.message}`); | ||
} | ||
if(stderr) { | ||
console.log(`srderr: ${stderr}`); | ||
} | ||
const command = './bash.rc'; | ||
|
||
console.log(stdout); | ||
}) | ||
} | ||
chokidar.watch('./src', (path) => { | ||
console.log(`Detected change in ${path}.`); | ||
try { | ||
exec(command, (error, stdout, stderr) => { | ||
console.log(stdout); | ||
if(error) { | ||
console.log(`error: ${error.message}`); | ||
} | ||
if(stderr) { | ||
console.log(`stderr: ${stderr}`); | ||
} | ||
}) | ||
} catch(e) { | ||
console.log(`FAILED: ${e}`); | ||
} | ||
}) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters