From 0174f07d7972202f53016c7ea13e815c04a600eb Mon Sep 17 00:00:00 2001 From: librelois <elois@ifee.fr> Date: Sun, 10 Feb 2019 00:43:18 +0100 Subject: [PATCH] [doc] detail publish process --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4a036d0..e0a04b5 100644 --- a/README.md +++ b/README.md @@ -71,9 +71,21 @@ wasm-pack build ```bash wasm-pack test --headless --firefox +wasm-pack test --headless --chrome +wasm-pack test --headless --safari ``` -### 🎁 Publish to NPM with `wasm-pack publish` +### 🎁 Publish new release to NPM + +Before publish, build in release mode without default features : + +```bash +wasm-pack build --release -- --no-default-features +``` + +You need npm token, if you don't have, get it with `npm login` command. + +Then publish ( help) : ```bash wasm-pack publish -- GitLab