mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-30 14:52:27 -05:00
Add single-click startup with devcontainers
This commit is contained in:
parent
67ee5b8e80
commit
b368b1dc8f
4 changed files with 5015 additions and 8 deletions
22
start-n8n-with-custom-node.sh
Executable file
22
start-n8n-with-custom-node.sh
Executable file
|
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
set -x
|
||||
|
||||
N8N_NODES_DIR=~/.n8n/custom
|
||||
|
||||
# Build the node
|
||||
npm install
|
||||
npm run lint
|
||||
npm run build
|
||||
npm link
|
||||
package_name="$(npm run getPackageName -s)"
|
||||
|
||||
mkdir -p "${N8N_NODES_DIR}"
|
||||
cd "${N8N_NODES_DIR}"
|
||||
|
||||
# Link the custom node into n8n
|
||||
npm link "${package_name}"
|
||||
|
||||
# Start the server
|
||||
n8n
|
||||
Loading…
Add table
Add a link
Reference in a new issue