Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit de4ec11

Browse files
Update build script
1 parent a6132f3 commit de4ec11

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎build-layer.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ LAYER_AUTHOR="Charoite Lee"
2020
DOT_CHAR="."
2121
NODE_VERSION=$(node -v)
2222
NODE_VERSION=${NODE_VERSION:1}
23+
SEMVER_VERSION=7.5.4
2324

2425
# Remove packaged layer if exists
2526
if [ -n "$(find . -name 'canvas-nodejs_v*.zip')" ]; then
@@ -36,13 +37,16 @@ npm init -y
3637
npm install canvas --build-from-source
3738
npm install fabric
3839
npm install konva
40+
npm install chart.js
41+
npm install @pixi/node
3942
npm install mocha --save-dev
40-
jq --arg LAYER_NAME "$LAYER_NAME" --arg LAYER_DESCRIPTION "$LAYER_DESCRIPTION" --arg LAYER_VERSION "$LAYER_VERSION" --arg LAYER_AUTHOR "$LAYER_AUTHOR" '.name = $LAYER_NAME | .description = $LAYER_DESCRIPTION | .version = $LAYER_VERSION | .license = "MIT" | .author = $LAYER_AUTHOR | .scripts.test = "mocha"' package.json > package-tmp.json
43+
jq --arg LAYER_NAME "$LAYER_NAME" --arg LAYER_DESCRIPTION "$LAYER_DESCRIPTION" --arg LAYER_VERSION "$LAYER_VERSION" --arg LAYER_AUTHOR "$LAYER_AUTHOR" --arg SEMVER_VERSION "$SEMVER_VERSION"'.name = $LAYER_NAME | .description = $LAYER_DESCRIPTION | .version = $LAYER_VERSION | .license = "MIT" | .author = $LAYER_AUTHOR | .scripts.test = "mocha" | .overrides.semver = $SEMVER_VERSION' package.json > package-tmp.json
4144
mv -f package-tmp.json package.json
4245

4346
# Test if installed modules and dependencies work fine
4447
npm test
4548
cp package-lock.json ..
49+
npm rm mocha
4650

4751
# Prepare and package layer
4852
mkdir node${NODE_VERSION%%$DOT_CHAR*}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /