@cityzenith/swpsdk
v0.1.18
Published
Node.JS SDK for SmartWorldPro
Downloads
23
Readme
Node.JS SDK for SmartWorldPro
to use, install @cityzenith/swpsdk there's a "testing" folder in c9 client/sdk/ where the packaged project can be installed and tested
this package exports ESM modules. IMPORTANT in order to run a node project that uses this one, you NEED to call it with the --experimental-specifier-resolution=node flag, like so:
node --experimental-specifier-resolution=node yourprogram.js
to run tests, use npx jest
there are two tsconfig files. one is for writing code, the other is for compiling and building the package. we might be able to use only one.
to compile new versions: 1 - bump version number in package.json 2 - npx tsc -p tsconfig-build.json 3 - npm publish I'll script this stuff later
this project uses graphql introspection to pull the schemas and transform those to types. we get project-side checking. these schemas might have to be updated if the APIs change, check out the scripts to run the codegen and do it.