o-x-rust intial complete
Some checks failed
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline was successful
ci/woodpecker/push/wasm-o-x-rust Pipeline failed
ci/woodpecker/push/frontend unknown status

This commit is contained in:
2022-08-09 09:06:10 +00:00
parent b2b2e149a8
commit 49816e8659
7 changed files with 159 additions and 12 deletions

View File

@@ -17,6 +17,9 @@ When using this plugin it is best to pull every time since it can be updated oft
- `target` (default=`bundler`): Target to build for
- `make`: Optionally run a make target building
### Test
(No options)
### Publish
- `username` (required): NPM registry username

View File

@@ -2,9 +2,10 @@
# Properties: actions
# username, token, registry=https://registry.npmjs.org, scope, folder=.
# profile=release, target=bundler, make
# profile=release, target=bundler, make, browser
# publish: username, token
# test:
# build:
echo wasm-pack plugin
@@ -34,6 +35,10 @@ if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)build(,|$)' ]]; then
fi
fi
if [[ "${PLUGIN_ACTTIONS}" =~ '(^|,)test(,|$)' ]]; then
wasm-pack test --node
fi
if [[ "${PLUGIN_ACTIONS}" =~ '(^|,)publish(,|$)' ]]; then
cd pkg
npm pkg set type=module