Skip to content

Commit

Permalink
Iteration
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnaya committed Oct 14, 2019
1 parent 5772684 commit 2a66894
Show file tree
Hide file tree
Showing 33 changed files with 136 additions and 67 deletions.
3 changes: 3 additions & 0 deletions examples/data-generator/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "./tsconfig"
}
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@
"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",
"build-with-composite": "yarn tsc --build",
"build-with-composite-esm": "yarn tsc --build tsconfig.esm.json --incremental",
"watch-with-composite": "yarn tsc --build --incremental --watch",
"build-with-composite": "yarn tsc --build tsconfig.build-all.all.json",
"watch-with-composite": "yarn tsc --build tsconfig.build-all.all.json --incremental --watch",
"cleanup": "lerna exec --parallel \"rm -fr lib && rm -fr esm\"",
"validate-emitted-declarations": "tsc -p declarationsSanityTest/tsconfig.json",
"cleanup": "lerna exec --parallel \"rm -fr lib && rm -fr esm\""
"validate-project-refs": "yarn cleanup && yarn lerna exec --no-bail --concurrency 1 \"cd ../../ yarn cleanup && cd - && tsc --build tsconfig.json\"",
"validate-project-refs-esm": "yarn cleanup && yarn lerna exec --no-bail --concurrency 1 \"cd ../../ yarn cleanup && cd - && tsc --build tsconfig.esm.json\""
},
"jest": {
"setupFilesAfterEnv": [
Expand Down
3 changes: 2 additions & 1 deletion packages/ra-core/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": []
}
3 changes: 2 additions & 1 deletion packages/ra-core/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": []
}
5 changes: 4 additions & 1 deletion packages/ra-data-fakerest/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-fakerest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphcool/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphcool/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphql-simple/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphql-simple/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphql/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-graphql/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-json-server/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-json-server/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-simple-rest/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-data-simple-rest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-i18n-polyglot/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-i18n-polyglot/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,8 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" }
]
}
6 changes: 5 additions & 1 deletion packages/ra-input-rich-text/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
{ "path": "../ra-ui-materialui/" }
]
}
6 changes: 5 additions & 1 deletion packages/ra-input-rich-text/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
{ "path": "../ra-ui-materialui/tsconfig.json" }
]
}
6 changes: 5 additions & 1 deletion packages/ra-realtime/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
{ "path": "../react-admin/" }
]
}
6 changes: 5 additions & 1 deletion packages/ra-realtime/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
{ "path": "../react-admin/tsconfig.json" }
]
}
7 changes: 6 additions & 1 deletion packages/ra-tree-ui-materialui/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
{ "path": "../ra-tree-core/" },
{ "path": "../ra-ui-materialui/" }
]
}
7 changes: 6 additions & 1 deletion packages/ra-tree-ui-materialui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
{ "path": "../ra-tree-core/tsconfig.json" },
{ "path": "../ra-ui-materialui/tsconfig.json" }
]
}
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"checkJs": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/" },
]
}
5 changes: 4 additions & 1 deletion packages/ra-ui-materialui/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"noImplicitAny": false
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-core/tsconfig.json" },
]
}
7 changes: 6 additions & 1 deletion packages/react-admin/tsconfig.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"tsBuildInfoFile": "./esm/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-ui-materialui/" },
{ "path": "../ra-i18n-polyglot/" },
{ "path": "../ra-core/" },
]
}
7 changes: 6 additions & 1 deletion packages/react-admin/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,10 @@
"tsBuildInfoFile": "./lib/.tsbuildinfo"
},
"exclude": ["**/*.spec.ts", "**/*.spec.tsx", "**/*.spec.js"],
"include": ["src"]
"include": ["src"],
"references": [
{ "path": "../ra-ui-materialui/tsconfig.json" },
{ "path": "../ra-i18n-polyglot/tsconfig.json" },
{ "path": "../ra-core/tsconfig.json" },
]
}
18 changes: 1 addition & 17 deletions tsconfig.base.esm.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,5 @@
"extends": "./tsconfig.base",
"compilerOptions": {
"module": "es2015"
},
"references": [
{ "path": "packages/ra-core" },
{ "path": "packages/ra-i18n-polyglot" },
{ "path": "packages/ra-ui-materialui" },
{ "path": "packages/react-admin" },
{ "path": "packages/ra-data-fakerest" },
{ "path": "packages/ra-data-graphcool" },
{ "path": "packages/ra-data-graphql" },
{ "path": "packages/ra-data-graphql-simple" },
{ "path": "packages/ra-data-json-server" },
{ "path": "packages/ra-data-simple-rest" },
{ "path": "packages/ra-input-rich-text" },
{ "path": "packages/ra-realtime" },
{ "path": "packages/ra-tree-core" },
{ "path": "packages/ra-tree-ui-materialui" }
]
}
}
18 changes: 1 addition & 17 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,5 @@
"skipLibCheck": true,
"noEmitHelpers": false,
"noEmitOnError": false
},
"references": [
{ "path": "packages/ra-core" },
{ "path": "packages/ra-i18n-polyglot" },
{ "path": "packages/ra-ui-materialui" },
{ "path": "packages/react-admin" },
{ "path": "packages/ra-data-fakerest" },
{ "path": "packages/ra-data-graphcool" },
{ "path": "packages/ra-data-graphql" },
{ "path": "packages/ra-data-graphql-simple" },
{ "path": "packages/ra-data-json-server" },
{ "path": "packages/ra-data-simple-rest" },
{ "path": "packages/ra-input-rich-text" },
{ "path": "packages/ra-realtime" },
{ "path": "packages/ra-tree-core" },
{ "path": "packages/ra-tree-ui-materialui" }
]
}
}
11 changes: 11 additions & 0 deletions tsconfig.build-all.all.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"references": [
{
"path": "./tsconfig.build-all.cjs.json"
},
{
"path": "./tsconfig.build-all.esm.json"
}
],
"include": []
}
6 changes: 3 additions & 3 deletions tsconfig.json → tsconfig.build-all.cjs.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"outDir": "lib-composite"
"outDir": "lib-top-level"
},
"references": [
{ "path": "packages/ra-core" },
{ "path": "packages/ra-data-graphcool" },
{ "path": "packages/ra-i18n-polyglot" },
{ "path": "packages/ra-ui-materialui" },
{ "path": "packages/ra-core" },
{ "path": "packages/react-admin" },
{ "path": "packages/ra-data-fakerest" },
{ "path": "packages/ra-data-graphcool" },
{ "path": "packages/ra-data-graphql" },
{ "path": "packages/ra-data-graphql-simple" },
{ "path": "packages/ra-data-json-server" },
Expand Down
File renamed without changes.

0 comments on commit 2a66894

Please sign in to comment.