- delete
package-lock.json
- delete
node-modules
npm install
Open in Visual Studio Code and run these tasks:
generate geometry typescript classes
build library
run example
cd projects\harness-browser3d-library
npx openapi-typescript assets\geometry-api.yaml --output src\generated\geometry.ts
ng build harness-browser3d-library --configuration production
ng serve --open
To publish the lib:
- Checkout master + merge develop into master
- Update version in package.json in root and in package.json in projects/harness-browser3d-library to the new version
- Create tag with version (e.g.
0.3.4
) - IMPORTANT: Re-build project completely
- Use the following commands to publish to npm
cd dist\harness-browser3d-library
npm login
npm publish --access public