6.2.0 • Published 5 years ago

@appcues/flow-builder-api-client v6.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

Flow Builder Api Client

The typedoc documentation for this client can be found here

Testing The Client Locally Before Publishing To NPM

If you'd like to test the client in another project prior to publishing it, you can use NPM's link command.

  1. Make sure you are using the same versions of node in BOTH repositories (use whatever version is the lowest). You can switch to a specific version of node by running nvm use NODE_VERSION.

  2. Once the node versions are in sync, run npm run build which will build the latest code in the dist folder. Then run npm link in this repository, which will create a local symlink for @appcues/flow-builder-api-client to this repository. This symlink is created in nvm's folder for the specific node version you are using, which is why it's important that both projects are using the same version of node.

  3. Let's say you would like to test your local flow-builder-api-client in Repository A. With your terminal opened to Repository A, run npm link @appcues/flow-builder-api-client. Two ways to confirm this has worked is:

Your terminal will print out the symlink from Repository A --> your local flow-builder-api-client folder You can view the node_modules/@appcues/flow-builder-api-client in Repository A which should reflect the latest local changes.

Once these steps are completed in order you should have the latest up to date version of your local flow-builder-api-client in the linked repo. Once you finish testing be sure to npm unlink on your repos

Updating the spec and client

  1. Make your changes to the spec file
  2. Rebuild the client with npm run build
  3. Update the src/wrapper.ts to include the new client methods
  4. Commit your changes to client (src/gen_client/api.ts). This will run the pre-commit hook, which runs the test suite.
  5. After test suite passes and the PR is approved, follow instructions below to version, merge and publish

How to publish to npm

Here are some steps you should follow to publish the flow-builder-api-client to npm

  1. Version bump: can be done by running npm version minor or npm version major depending on the caliber of your change. Make sure commit this change to your branch before merging master so you can have this in the master branch when publishing.

  2. Merge Master: can be done by merging a PR through github. After merging be sure to git checkout master and git pull in order to get the latest code in order to keep the master branch as the source of truth when publishing to npm.

  3. Publish: can be done by running npm publish. NOTE: you must have an NPM_TOKEN with publishing rights

Once these steps are done in order you should have the most up to date version of flow-builder-api-client published on npm.

6.2.0

5 years ago

6.1.1

5 years ago

6.1.0

5 years ago

6.0.4

5 years ago

6.0.3

5 years ago

7.0.0

5 years ago

6.0.2

5 years ago

5.0.1

5 years ago

5.0.0

5 years ago

4.13.2

5 years ago

4.13.1

5 years ago

4.13.0

5 years ago

4.12.0

5 years ago

4.11.5

5 years ago

4.11.4

5 years ago

4.11.3

5 years ago

4.11.2

5 years ago

4.11.1

5 years ago

4.11.0

5 years ago

4.10.0

5 years ago

4.9.3

5 years ago

4.9.2

5 years ago

4.9.0

5 years ago

4.9.1

5 years ago

4.7.0

6 years ago

4.6.0

6 years ago

4.5.0

6 years ago

4.4.0

6 years ago

4.2.0

6 years ago

4.3.0

6 years ago

4.1.0

6 years ago

4.0.0

6 years ago

3.10.0

6 years ago

3.9.1

6 years ago

3.9.0

6 years ago

3.8.0

6 years ago

3.7.0

6 years ago

3.6.0

6 years ago

3.5.0

6 years ago

3.4.0

6 years ago

3.3.0

6 years ago

3.2.0

6 years ago

3.1.1

6 years ago

3.1.0

6 years ago

3.0.0

6 years ago

2.5.0

6 years ago

2.4.0

6 years ago

2.3.5

6 years ago

2.3.4

6 years ago

2.3.3

6 years ago

2.3.2

6 years ago

2.3.1

6 years ago

2.3.0

6 years ago

2.2.1-base-url.0

6 years ago

2.2.0

6 years ago

2.2.0-wip3.0

6 years ago

2.2.0-wip2.0

6 years ago

2.2.0-wip.0

6 years ago

2.2.0-0

6 years ago

2.1.0-0

6 years ago

2.0.0

6 years ago

1.7.0

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.0

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago