Skip to content

Commit 31c6efe

Browse files
committed
chore: add script to build and copy deps and license
1 parent d042bae commit 31c6efe

4 files changed

Lines changed: 13 additions & 3 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
[{ "classnames": { "version": "2.5.1", "url": null } }, { "signature_pad": { "version": "4.0.0", "url": null } }]
1+
[{ "classnames": { "version": "2.5.1", "url": null } }, { "signature_pad": { "version": "5.1.3", "url": null } }]

packages/customWidgets/signature-web/dependencies.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ SOFTWARE.
3434
---
3535

3636
Name: signature_pad
37-
Version: 4.0.0
37+
Version: 5.1.3
3838
License: MIT
3939
Private: false
4040
Description: Library for drawing smooth signatures.

packages/customWidgets/signature-web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"format": "prettier --ignore-path ./node_modules/@mendix/prettier-config-web-widgets/global-prettierignore --write .",
3131
"lint": "eslint src/ package.json",
3232
"publish-marketplace": "rui-publish-marketplace",
33-
"release": "ts-node --project scripts/tsconfig.json scripts/build.ts production",
33+
"release": "node scripts/generate-dependencies.js && ts-node --project scripts/tsconfig.json scripts/build.ts production",
3434
"test": "pluggable-widgets-tools test:unit:web",
3535
"update-changelog": "rui-update-changelog-widget",
3636
"verify": "rui-verify-package-format"

packages/customWidgets/signature-web/webpack.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,16 @@ const widgetConfig = {
5050
from: `src/${widgetName}.@(tile|icon)@(.dark|).png`,
5151
to: "./[name][ext]",
5252
toType: "template"
53+
},
54+
{
55+
from: `dependencies.(json|txt)`,
56+
to: "./[name][ext]",
57+
toType: "template"
58+
},
59+
{
60+
from: `../../../LICENSE`,
61+
to: "./License.txt",
62+
toType: "template"
5363
}
5464
]
5565
})

0 commit comments

Comments
 (0)