git clone https://github.com/refinio/one.models
cd one.models
npm install
Main models used in one built in one package
As said we use TypeScript above JavaScript ES6 meaning we use import,export statements instead of require. And have the newest javascript features available
Additional we use prettier.js for automatic code styling. Here you should also copy an existing .prettierc form an existing project.
Most modern IDEs support to file watchers which then can execute scripts on changes. Setup prettier.js and build.js te be run on file changes.
The file @OneCoreTypes.d.ts defines the types this project uses as well as exports
To build the CommServer
, PasswordRecoveryServer
and GenerateIdentity
tools run
npm run bundle