Skip to content

Commit

Permalink
[core] Speed-up typechecking (mui#16413)
Browse files Browse the repository at this point in the history
* [build] run typechecks in parallel

* Upgrade dtslint

* Upgrade lerna

* Rename to docs

* Specify path
  • Loading branch information
merceyz authored and eps1lon committed Jun 29, 2019
1 parent 9d91af6 commit ffb125d
Show file tree
Hide file tree
Showing 4 changed files with 565 additions and 414 deletions.
10 changes: 10 additions & 0 deletions docs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "docs",
"version": "4.1.2",
"private": true,
"author": "Material-UI Team",
"license": "MIT",
"scripts": {
"typescript": "tslint -p tsconfig.json \"src/pages/**/*.{ts,tsx}\""
}
}
4 changes: 1 addition & 3 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{
"packages": [
"packages/*"
],
"packages": ["packages/*", "docs"],
"npmClient": "yarn",
"useWorkspaces": true,
"version": "independent"
Expand Down
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"docs:start": "next start",
"docs:i18n": "cross-env BABEL_ENV=test babel-node ./docs/scripts/i18n.js",
"docs:typescript": "node docs/scripts/formattedTSDemos --watch",
"docs:typescript:check": "tslint -p docs/tsconfig.json",
"docs:typescript:check": "yarn workspace material-ui-docs typescript",
"docs:typescript:formatted": "node docs/scripts/formattedTSDemos",
"jsonlint": "yarn --silent jsonlint:files | xargs -n1 jsonlint -q -c && echo \"jsonlint: no lint errors\"",
"jsonlint:files": "find . -name \"*.json\" | grep -v -f .eslintignore",
Expand All @@ -34,7 +34,7 @@
"test:umd": "yarn node packages/material-ui/test/umd/run.js",
"test:unit": "cross-env NODE_ENV=test mocha 'packages/**/*.test.js' 'docs/**/*.test.js' --exclude '**/node_modules/**'",
"test:watch": "yarn test:unit --watch",
"typescript": "lerna run typescript && yarn docs:typescript:check"
"typescript": "lerna run typescript --parallel"
},
"peerDependencies": {
"react": "*",
Expand Down Expand Up @@ -109,7 +109,7 @@
"date-fns": "^2.0.0-alpha.21",
"doctrine": "^3.0.0",
"downshift": "^3.0.0",
"dtslint": "^0.4.0",
"dtslint": "^0.8.0",
"emotion-theming": "^10.0.5",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.12.1",
Expand Down Expand Up @@ -144,7 +144,7 @@
"karma-mocha-reporter": "^2.2.5",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^4.0.2",
"lerna": "^3.4.3",
"lerna": "^3.15.0",
"lodash": "^4.17.11",
"lz-string": "^1.4.4",
"markdown-to-jsx": "^6.8.3",
Expand Down Expand Up @@ -218,6 +218,7 @@
"instrument": false
},
"workspaces": [
"packages/*"
"packages/*",
"docs"
]
}
Loading

0 comments on commit ffb125d

Please sign in to comment.