aurelia-orm
Version:
Makes working with entities and calling your Rest API simple.
65 lines (47 loc) • 1.86 kB
Markdown
Aurelia-orm needs an installation of [aurelia-api](https://www.npmjs.com/package/aurelia-api) and `aurelia-validation@0.6.6`.
Start by following the instructions for the dependencies of orm, [aurelia-api](https://github.com/SpoonX/aurelia-api) and [aurelia-view-manager](https://github.com/SpoonX/aurelia-view-manager). When done, resume with the other steps.
Run `npm i aurelia-orm --save` from your project root.
It also has submodules and makes use of `get-prop` and `typer`. So, add following to the `build.bundles.dependencies` section of `aurelia-project/aurelia.json`.
```js
"dependencies": [
// ...
"get-prop",
"typer",
{
"name": "aurelia-orm",
"path": "../node_modules/aurelia-orm/dist/amd",
"main": "aurelia-orm",
"resources": [
"component/view/bootstrap/association-select.html",
"component/view/bootstrap/paged.html"
]
},
{
"name": "aurelia-validation",
"path": "../node_modules/aurelia-validation/dist/amd",
"main": "aurelia-validation"
},
// ...
],
```
Run `jspm i aurelia-orm npm:get-prop`
And add following to the `bundles.dist.aurelia.includes` section of `build/bundles.js`:
```js
"get-prop",
"aurelia-orm",
"[aurelia-orm/**/*.js]",
"aurelia-orm/**/*.html!text",
```
If the installation results in having forks, try resolving them by running:
```sh
jspm inspect --forks
jspm resolve --only registry:package-name@version
```
Run `npm i aurelia-orm --save` from your project root.
Add `aurelia-orm` in the `coreBundles.aurelia section` of your `webpack.config.js`.
Npm-based installations pick up the typings automatically. For Jspm-based installations, run `typings i github:spoonx/aurelia-orm` or add `"aurelia-orm": "github:spoonx/aurelia-orm",` to your `typings.json` and run `typings i`.