Skip to content

Commit

Permalink
Started setting up env
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Clarke committed May 14, 2022
0 parents commit 0dcc97d
Show file tree
Hide file tree
Showing 7 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"deno.enable": true,
"xml.server.vmargs": "-Xmx512M",
"xml.symbols.maxItemsComputed": 50000,
}
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
### VSCode plugins:
[redhat.vscode-xml](https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml)
[denoland.vscode-deno](https://marketplace.visualstudio.com/items?itemName=denoland.vscode-deno)

11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"name": "touchosc-script-injector",
"version": "1.0.0",
"description": "Injects external LUA files into TouchOSC control script fields",
"main": "watch.js",
"author": "Jacob Clarke",
"license": "MIT",
"scripts": {
"start": "deno run watch.ts --allow-read --allow-write"
}
}
2 changes: 2 additions & 0 deletions scripts/_globals.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME_COLOR = 0x00ff00
TAG_COLOR = 0x0000ff
1 change: 1 addition & 0 deletions scripts/example.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('name example hi')
1 change: 1 addition & 0 deletions scripts/tag_example.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
print('tag example hi')
5 changes: 5 additions & 0 deletions watch.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const watcher = Deno.watchFs("./scripts");
for await (const event of watcher) {
console.log(">>>> event", event);
// Example event: { kind: "create", paths: [ "/home/alice/deno/foo.txt" ] }
}

0 comments on commit 0dcc97d

Please sign in to comment.