o-x-rust intial complete
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user