Skip to content

Commit

Permalink
chore: Setup dev environment (#20)
Browse files Browse the repository at this point in the history
* Add devcontainer config

* Add watch for nodered reload
  • Loading branch information
inwaar authored Dec 2, 2024
1 parent 45818ca commit ba086e2
Show file tree
Hide file tree
Showing 5 changed files with 285 additions and 1 deletion.
16 changes: 16 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "Node-RED",
"image": "mcr.microsoft.com/devcontainers/javascript-node:1-22",
"features": {
"ghcr.io/devcontainers/features/github-cli:1": {}
},
"customizations": {
"vscode": {
"extensions": [
"GitHub.vscode-github-actions",
"dbaeumer.vscode-eslint"
]
}
},
"postCreateCommand": ".devcontainer/setup.sh"
}
9 changes: 9 additions & 0 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

npm install
npm link
npm install -g --unsafe-perm node-red@4

mkdir -p sandbox
cd sandbox
npm link node-red-contrib-gree-hvac
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules/
sandbox/
252 changes: 252 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ba086e2

Please sign in to comment.