game-algorithms/tools/wasm-pack-plugin
Gleb Koval 5061f593dd
ci/woodpecker/push/tools-wasm-pack-plugin Pipeline failed Details
ci/woodpecker/push/wasm-o-x-rust unknown status Details
ci/woodpecker/push/frontend unknown status Details
Fix plugin and upgrade frontend [ALL]
2022-08-09 09:41:51 +00:00
..
Dockerfile timezone 2022-08-07 01:25:12 +00:00
README.md o-x-rust intial complete 2022-08-09 09:06:10 +00:00
plugin.sh Fix plugin and upgrade frontend [ALL] 2022-08-09 09:41:51 +00:00

README.md

wasm-pack plugin

This is a drone/woodpecker plugin for building and publishing wasm-pack packages.

When using this plugin it is best to pull every time since it can be updated often internally.

Settings

  • actions (required): Actions (see below) to run
  • folder: Project folder
  • scope: NPM package scope

Build

  • profile (default=release): Build profile to use for wasm-pack build
  • target (default=bundler): Target to build for
  • make: Optionally run a make target building

Test

(No options)

Publish

  • username (required): NPM registry username
  • token (required): NPM registry auth token (secret recommended)
  • registry (default=https://registry.npmjs.org): NPM registry to publish to

Example

Taken from wasm-o-x-rust.yml

pipeline:
  build and publish:
    image: git.koval.net/cyclane/game-algorithms/wasm-pack-plugin
    pull: true
    settings:
      actions: build,publish
      folder: wasm/o-x-rust
      scope: game-algorithms
      username: cyclane
      token:
        from_secret: DEPLOY_TOKEN
      registry: https://git.koval.net/api/packages/cyclane/npm/