dedux-common v1.0.29
��# dedux-common
DEPRECATED BELOW:
To publish the package for other users, use the package.json script shortcuts.
NOTE: There's an order of operations to publish. Sometimes the web version must be built before publishing to cloud functions. It's not clear why this is the case. Sometimes, for the cloud functions, it is not necessary to build the web version first.
How to
Export your files in index.ts:
- Ensure you had run
npm install -g typescript
- Set the correct tsconfig.json for either functions or web/chromeext project
- run
tsc
- update
package.json
- npm login
- npm publish
How to export to webapp (not Chrome extension)
TODO: confirm if web config would work with the Chrome extension. The chrome ext is always pointing to local instance.
- Copy
tsconfig_web.json
totsconfig.json
- Run
tsc
How to export to Cloud Functions (server app)
- Copy
tsconfig_functions.json
totsconfig.json
- Run
tsc
Publish
- Update
package.json
the minor version - Run
npm publish
- Go to Cloud Functions and update
package.json
to new version - Run
npm install
- Run
serve
which will attempt to deploy to staging env and see if there are any errors.
Note:
It' not clear what happens if the server config is used when published and the webapp consumes that library, and vice versa. TODO: determine if it's necessary to use different npm versions for each
Linking to React web app
- in this dir, run
npm link
- in the ui app, run
npm link 'dedux-common'
TODOs
- Update to Firebase SDK 10 https://firebase.google.com/docs/admin/migrate-node-v10
2 months ago
7 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago