waterauditmodels
v1.7.3
Published
TypeScript models and datatypes
Readme
WaterAuditModels - 
JavaScript (TypeScript) models and datatypes for use in NodeJS/browser environments
Installation
Clone the Repo
$ git clone [email protected]:120wateraudit/waterauditmodels.gitRun
npm install.
Edits and Pushing Changes
Make your updates to the models as needed. Then Run
npm run build.Update the version number, current version + 1:
npm version 0.0.XXWhen you have commited all your files to your git and ready to push, use
git push origin master --tagsto tag the push.After you have pushed the changes to master, you can update your UI package.json replacing the version with desired current version number:
"waterauditmodels": "git+ssh://[email protected]:120wateraudit/waterauditmodels.git#0.0.3"
Usage (assumes you're using babel/es6+)
`import { School, Location, ...etc... } from 'waterauditmodels';`Notes
- If you encounter the git warning
LF will be replaced by CRLFrun the following command:$ git config --global core.autocrlf input - For reference on this issue: https://stackoverflow.com/a/5834094
