#ucshared
This is the shared library for www + admin + react-native.
SRC:
- api.ts - interface for midtier
- serverless.ts - interface for uc.functions
Getting started:
- As a prerequisite you will need to have Java installed.
- You will need to install/place the file called
swagger-codegen-cli.jar
file one level above the ucshared folder (file located in UC sharepoint dev section). - Run
npm install
How to update api.ts (UC.Midtier):
- make sure midtier is running locally on port 8082, as well as uc.functions on 8087
-
cd uc_shared
then runnpm run midtier
via git bash npm run serverless
-
cd src
then runnode ci_auto_patch_ts_files.js
-
cd ..
then runnpm run build
- commit changes to the repo
-
npm version minor
to increment the ucshared package version. This will update the package.json with the new version AND do a git commit for it. So, you will not be able to do npm version minor until AFTER you committed your changes in (2). -
npm publish
to upload the package to npm. (npm login
first)
#Access In order to update ucshared on npmjs.org you need to have Contributor access to the ucshared module.
The following people currently have access via npm login
:
- bherila
- dalejo90
- matenji