1.2.2 • Published 5 months ago

@embrace-io/web-cli v1.2.2

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

Embrace Web SDK CLI

This tool is intended to help with build-time tasks for the Embrace Web SDK.

Quick Start

npm:

npm install --save-dev @embrace-io/web-cli

yarn:

yarn add -D @embrace-io/web-cli

Upload sourcemaps

To upload sourcemaps to Embrace as part of your build process you will require the following:

  • Your Embrace App ID
  • Your Embrace Symbol Upload API token (found in your Embrace dashbboard in Settings->API)
  • The path to your built JS bundle
  • The path to your JS sourcemap file

Note that uploading multiple JS bundles and sourcemaps is not currently supported.

npx embrace-web-cli upload -a "YOUR_EMBRACE_APP_ID" -t "YOUR_EMBRACE_UPLOAD_API_TOKEN" -b "BUNDLE_PATH" -m "SOURCE_MAP_PATH"

Setting app version

The same upload sub-command as above can be used to inject your app's version into your bundle if the value is only known at build time. (If the version is known prior to build time you can provide it when initializing the SDK as described in Keeping your app version up-to-date. Execute the same command as above while also providing your app's version:

npx embrace-web-cli upload -a "YOUR_EMBRACE_APP_ID" -t "YOUR_EMBRACE_UPLOAD_API_TOKEN" -b "BUNDLE_PATH" -m "SOURCE_MAP_PATH" --app-version "APP_VERSION"
1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

5 months ago

1.1.0

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago

0.2.2

6 months ago

0.2.1

6 months ago

0.2.0

7 months ago

0.1.5

7 months ago

0.0.17

7 months ago

0.0.16

7 months ago

0.0.15

7 months ago

0.0.14

7 months ago

0.0.13

7 months ago

0.0.4

7 months ago