@rao.relewise/rao-test-js-client
v0.0.10
Published
Relewise recommendation engine JS/TS client API https://relewise.com
Downloads
1
Readme
Usage
The following tasks are available for npm run
:
dev
: Run Rollup in watch mode to detect changes to files during developmentgen-api
: Generate all project specific Typescript interfaces from the swagger.json definitions file (should be run before build:types)build
: Run Rollup to build a production release distributablebuild:types
: Run Microsoft API Extractor to rollup a types declaration (d.ts
) filedocs
: Run TypeDoc for TSDoc generated documentation in the "docs/" folderclean
: Remove all build artifacts
Development
From the lib project, issue the npm link
(or yarn link
) command:
npm link
Start Rollup in watch mode:
npm run dev
From the app project:
Link to the lib project using the npm link @relewise/relewise-client
(or yarn link @relewise/relewise-client
) command
Now, run your app via npm start
.
Development Cleanup
Once development completes, unlink
both your library and test app projects.
From the app project, unlink the library using npm unlink @relewise/relewise-client
(or yarn unlink @relewise/relewise-client
) command:
From the lib project, issue the npm unlink
(or yarn unlink
) command:
npm unlink
Release Publishing
Update your package.json
to next version number, and remember to tag a release.
Once ready to submit your package to the NPM Registry, execute the following tasks via npm
(or yarn
):
npm run clean
— Assure a clean buildnpm run gen-api
— Generate the typescript API interfacesnpm run build
— Build the packagenpm run build:types
— Build API Extractor d.ts declaration
Assure the proper npm login:
npm login
Submit your package to the registry:
npm publish --access public