Skip to content

Commit

Permalink
add watch command for demo
Browse files Browse the repository at this point in the history
  • Loading branch information
ThieryMichel committed Feb 5, 2020
1 parent def126f commit 5e019f0
Show file tree
Hide file tree
Showing 14 changed files with 23 additions and 13 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,18 @@ run-tutorial: ## run the tutorial example
run-demo: ## run the demo example
@yarn -s run-demo

run-demo-watch: ## run the demo example with watch on the ra dependencies
@yarn -s run-demo-watch

build-demo: ## compile the demo example to static js
@yarn -s build-demo

run-graphql-demo: ## run the demo example
@yarn -s run-graphql-demo

run-graphql-demo-watch: ## run the demo example with watch on the ra dependencies
@yarn -s run-graphql-demo-watch

build-ra-core:
@echo "Transpiling ra-core files...";
@cd ./packages/ra-core && yarn -s build
Expand Down
2 changes: 1 addition & 1 deletion examples/data-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"date-fns": "~1.29.0",
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"name": "react-admin-lerna",
"scripts": {
"build": "lerna run build",
"watch": "lerna run --parallel watch",
"build-demo": "cd examples/demo && cross-env REACT_APP_DATA_PROVIDER=rest yarn -s build",
"test-unit": "cross-env NODE_ENV=test cross-env BABEL_ENV=cjs NODE_ICU_DATA=node_modules/full-icu jest",
"test-unit-ci": "cross-env NODE_ENV=test cross-env BABEL_ENV=cjs NODE_ICU_DATA=node_modules/full-icu jest --runInBand",
Expand All @@ -15,7 +16,9 @@
"run-simple": "cd examples/simple && yarn -s start",
"run-tutorial": "yarn run -s build && cd examples/tutorial && yarn -s start",
"run-demo": "cd examples/demo && cross-env REACT_APP_DATA_PROVIDER=rest yarn -s start",
"run-graphql-demo": "cd examples/demo && cross-env REACT_APP_DATA_PROVIDER=graphql yarn -s start"
"run-graphql-demo": "cd examples/demo && cross-env REACT_APP_DATA_PROVIDER=graphql yarn -s start",
"run-demo-watch": "concurrently \"yarn run watch\" \"yarn run run-demo\"",
"run-graphql-demo-watch": "concurrently \"yarn run watch\" \"yarn run run-graphql-demo\""
},
"jest": {
"setupFilesAfterEnv": [
Expand Down Expand Up @@ -46,6 +49,7 @@
"@typescript-eslint/parser": "^1.9.0",
"babel-eslint": "^10.0.1",
"cheerio": "~1.0.0-rc.2",
"concurrently": "^5.1.0",
"cross-env": "^5.2.0",
"eslint": "^5.16.0",
"eslint-config-prettier": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"devDependencies": {
"@redux-saga/testing-utils": "^1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-fakerest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"fakerest": "~2.1.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphcool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"graphql-ast-types-browser": "~1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql-simple/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"graphql-ast-types-browser": "~1.0.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"apollo-client": "^2.6.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-json-server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"query-string": "^5.1.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-simple-rest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"query-string": "^5.1.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-i18n-polyglot/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"dependencies": {
"node-polyglot": "^2.2.2",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-input-rich-text/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"peerDependencies": {
"ra-core": "^3.0.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-ui-materialui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"devDependencies": {
"@material-ui/core": "^4.3.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/react-admin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"build": "yarn run build-cjs && yarn run build-esm",
"build-cjs": "rimraf ./lib && tsc",
"build-esm": "rimraf ./esm && tsc --outDir esm --module es2015",
"watch": "rimraf ./lib && tsc --watch"
"watch": "tsc --outDir esm --module es2015 --watch"
},
"devDependencies": {
"cross-env": "^5.2.0",
Expand Down

0 comments on commit 5e019f0

Please sign in to comment.