@refinio/one.models

one.models

git clone https://github.com/refinio/one.models
cd one.models
npm install

Main models used in one built in one package

  • Source files go into the /src folder.
  • Test files into /test folder.
  • They will both be process by build.js and the .ts files will be transpiled into the /lib folder
  • ONE plan modules into /src/plan_modules they are compiled with /build_plan_modules.js

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