build(example): use lerna for linked repository packages
MODIFY
README.md
README.md
@@ -250,8 +250,9 @@ To view the example project structure, clone the **Marble.js** repository and in
```bash
$ git clone git://github.com/marblejs/marble.git
-$ cd marble/example
+$ cd marble
$ npm i
+$ cd example
```
To run example just execute following command inside root repository folder:

MODIFY
example/package.json
example/package.json
"homepage": "https://github.com/marblejs/marble#readme",
"dependencies": {
"@marblejs/core": "^0.2.2",
+ "@marblejs/middleware-body": "^0.2.2",
+ "@marblejs/middleware-logger": "^0.2.2",
"@types/node": "^10.1.2",
"rxjs": "^6.1.0",
"typescript": "~2.8.3"
"devDependencies": {
"nodemon": "^1.17.3",
"ts-node": "^6.0.2"
+ },
+ "publishConfig": {
+ "access": "private"
}
}

MODIFY
example/src/app.ts
example/src/app.ts
-import { bodyParser$, httpListener, logger$ } from '@marblejs/core';
+import { httpListener } from '@marblejs/core';
+import { bodyParser$ } from '@marblejs/middleware-body';
+import { logger$ } from '@marblejs/middleware-logger';
import { api$ } from './controllers/api.controller';
const middlewares = [logger$, bodyParser$];

MODIFY
lerna.json
lerna.json
{
"lerna": "2.11.0",
"packages": [
+ "example",
"packages/*"
],
"version": "0.2.2"

build(example): use lerna for linked repository packages