Skip to content

Commit

Permalink
Recompile and refresh demo:start when src code is touched (#61)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
pablorsk authored May 4, 2018
1 parent daed3b8 commit 4dfde2a
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .angular-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@
},
"defaults": {
"styleExt": "css",
"build": {
"showCircularDependencies": false
},
"component": {
"inlineStyle": true,
"inlineTemplate": true,
Expand Down
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,18 @@
[![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)

</div>

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

## Online demo

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

<div align="center">

[![demo app](https://user-images.githubusercontent.com/938894/39630783-c6f55ed4-4f86-11e8-9376-9acb587fe4c4.gif)](http://ngx-jsonapi.reyesoft.com/)

</div>

Data is obtained from [Json Api Playground](http://jsonapiplayground.reyesoft.com/).

## Supported features
Expand Down
7 changes: 6 additions & 1 deletion demo/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@
"module": "es2015",
"types": [],
"baseUrl": ".",
"rootDir": "../"
"rootDir": "../",
"paths": {
"ngx-jsonapi": [
"../src"
]
}
},
"exclude": [
"../node_modules",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"coverage:html": "nyc report --reporter=html",
"copy:dist": "ncp dist/ ./node_modules/ngx-jsonapi/",
"start": "yarn run demo:start",
"demo:start": "yarn run build && yarn run copy:dist && yarn run cli serve",
"demo:start:aot": "yarn run build && yarn run copy:dist && yarn run cli serve --aot",
"demo:start": "yarn run cli serve",
"demo:start:aot": "yarn run cli serve -prod",
"demo:test": "jest --watch",
"demo:build": "yarn build && yarn run copy:dist && yarn cli build -prod --base-href \"/\" --output-path \"./demo-dist\"",
"demo:release": "ts-node ./build/demo-release.ts",
Expand Down

0 comments on commit 4dfde2a

Please sign in to comment.