-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Move gulp to use pnpm and local .node-red directory
- Loading branch information
Showing
8 changed files
with
82 additions
and
37 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 |
---|---|---|
|
@@ -12,3 +12,4 @@ coverage | |
dist/ | ||
docs/.vuepress/.cache | ||
docs/.vuepress/.temp | ||
.node-red |
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 +1 @@ | ||
npm test | ||
pnpm test |
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,2 +1,2 @@ | ||
npm run lint | ||
npm run test | ||
pnpm run lint | ||
pnpm run test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
"engines": { | ||
"node": ">=14.0.0" | ||
}, | ||
"packageManager": "[email protected]", | ||
"scripts": { | ||
"build": "gulp build", | ||
"coverage": "nyc --reporter=lcov pnpm run test", | ||
|
@@ -153,7 +154,8 @@ | |
"typescript": "5.5.4", | ||
"vinyl-source-stream": "2.0.0", | ||
"vue": "^3.4.38", | ||
"vuepress": "2.0.0-rc.15" | ||
"vuepress": "2.0.0-rc.15", | ||
"yargs": "^17.7.2" | ||
}, | ||
"lint-staged": { | ||
"*.{js,ts}": [ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
# setup pnpm | ||
echo "Setting up pnpm" | ||
corepack enable && corepack enable npm | ||
|
||
# set an environment variable from first argument if it exists or use default value | ||
NR_DIR=${1:-.node-red} | ||
|
||
# create directory if it doesn't exist | ||
if [ ! -d "$NR_DIR" ]; then | ||
echo "Creating directory $NR_DIR" | ||
mkdir -p $NR_DIR | ||
fi | ||
|
||
# copy files from .devcontainer/nodered to the directory | ||
echo "Copying files from .devcontainer/nodered to $NR_DIR" | ||
cp -r .devcontainer/nodered/* $NR_DIR | ||
|
||
# link pnpm | ||
echo "Linking pnpm" | ||
pnpm link --dir $NR_DIR |