0.0.1 • Published 1 year ago

stage-typescript-angular v0.0.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
1 year ago

@

This generator creates TypeScript/JavaScript client that supports the angular http client.

1. Building

  1. Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
  1. Install NodeJS:
nvm install 16
nvm use 16
  1. Build and compile:
npm install
npm run build

2. Publishing to NPM

To publish to NPM, please follow these steps:

  1. Create an account on NPM, here

  2. Sign in by running the following, and entering the username, password, and email address from step 1 above:

npm login
  1. Build the package by following the building procedure above.

  2. Publish by running the following:

npm publish

3. Consuming

Navigate to the folder of your consuming project and run one of the following commands, when stage-typescript has been published to NPM:

npm install stage-typescript-angular

Or, when stage-typescript is not published, run the following:

npm install PATH_TO_GENERATED_PACKAGE --save

And, to run a script, do the following:

npx ts-node example.ts