Skip to content

Commit 4dfde2a

Browse files
authored
Recompile and refresh demo:start when src code is touched (#61)
* Now, if you are running demo:start and you touch src code, demo app is recompiled and reloaded * README updated with a simple gif * supress WARNING in Circular dependency detected * README small fix
1 parent daed3b8 commit 4dfde2a

File tree

4 files changed

+17
-4
lines changed

4 files changed

+17
-4
lines changed

.angular-cli.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
},
5151
"defaults": {
5252
"styleExt": "css",
53+
"build": {
54+
"showCircularDependencies": false
55+
},
5356
"component": {
5457
"inlineStyle": true,
5558
"inlineTemplate": true,

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,18 @@
77
[![Build Status](https://travis-ci.org/reyesoft/ngx-jsonapi.svg?branch=master)](https://travis-ci.org/reyesoft/ngx-jsonapi) [![Codacy Badge](https://api.codacy.com/project/badge/Grade/b097196f7f544412a79a99080a41bbc1)](https://www.codacy.com/app/Swimlane/ngx-charts?utm_source=github.com&utm_medium=referral&utm_content=swimlane/ngx-charts&utm_campaign=Badge_Grade) [![npm version](https://badge.fury.io/js/ngx-jsonapi.png)](https://badge.fury.io/js/ngx-jsonapi)
88

99
</div>
10-
1110
This is a JSON API library for Angular 4+. Please use [ts-angular-jsonapi](https://github.com/reyesoft/ts-angular-jsonapi) for AngularJS.
1211

1312
## Online demo
1413

1514
You can test library on this online example 👌 <http://ngx-jsonapi.reyesoft.com/>.
1615

16+
<div align="center">
17+
18+
[![demo app](https://user-images.githubusercontent.com/938894/39630783-c6f55ed4-4f86-11e8-9376-9acb587fe4c4.gif)](http://ngx-jsonapi.reyesoft.com/)
19+
20+
</div>
21+
1722
Data is obtained from [Json Api Playground](http://jsonapiplayground.reyesoft.com/).
1823

1924
## Supported features

demo/tsconfig.app.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@
1414
"module": "es2015",
1515
"types": [],
1616
"baseUrl": ".",
17-
"rootDir": "../"
17+
"rootDir": "../",
18+
"paths": {
19+
"ngx-jsonapi": [
20+
"../src"
21+
]
22+
}
1823
},
1924
"exclude": [
2025
"../node_modules",

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"coverage:html": "nyc report --reporter=html",
1313
"copy:dist": "ncp dist/ ./node_modules/ngx-jsonapi/",
1414
"start": "yarn run demo:start",
15-
"demo:start": "yarn run build && yarn run copy:dist && yarn run cli serve",
16-
"demo:start:aot": "yarn run build && yarn run copy:dist && yarn run cli serve --aot",
15+
"demo:start": "yarn run cli serve",
16+
"demo:start:aot": "yarn run cli serve -prod",
1717
"demo:test": "jest --watch",
1818
"demo:build": "yarn build && yarn run copy:dist && yarn cli build -prod --base-href \"/\" --output-path \"./demo-dist\"",
1919
"demo:release": "ts-node ./build/demo-release.ts",

0 commit comments

Comments
 (0)