0.0.1 • Published 1 year ago
stage-typescript-angular v0.0.1
@
This generator creates TypeScript/JavaScript client that supports the angular http client.
1. Building
- Install NVM:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.0/install.sh | bash
- Install NodeJS:
nvm install 16
nvm use 16
- Build and compile:
npm install
npm run build
2. Publishing to NPM
To publish to NPM, please follow these steps:
Create an account on NPM, here
Sign in by running the following, and entering the username, password, and email address from step 1 above:
npm login
Build the package by following the building procedure above.
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
0.0.1
1 year ago