-
Notifications
You must be signed in to change notification settings - Fork 14.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: improve/decouple eslint and tsc 'npm run' commands #26704
Changes from 4 commits
0e6e702
e105447
a254231
bba1863
7babe8c
d2bdf18
b2215e4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
"src/setup/*" | ||
], | ||
"scripts": { | ||
"_lint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx .", | ||
"eslint": "eslint --ignore-path=.eslintignore --ext .js,.jsx,.ts,tsx", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. killing |
||
"_prettier": "prettier './({src,spec,cypress-base,plugins,packages,.storybook}/**/*{.js,.jsx,.ts,.tsx,.css,.less,.scss,.sass}|package.json)'", | ||
"build": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=production BABEL_ENV=\"${BABEL_ENV:=production}\" webpack --mode=production --color", | ||
"build-dev": "cross-env NODE_OPTIONS=--max_old_space_size=8192 NODE_ENV=development webpack --mode=development --color", | ||
|
@@ -51,8 +51,8 @@ | |
"dev": "webpack --mode=development --color --watch", | ||
"dev-server": "cross-env NODE_ENV=development BABEL_ENV=development node --max_old_space_size=4096 ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode=development", | ||
"format": "npm run _prettier -- --write", | ||
"lint": "npm run _lint && npm run type", | ||
"lint-fix": "npm run _lint -- --fix && npm run type", | ||
"lint": "npm run eslint -- . && npm run type", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. maintaining backward compatibility, though I think we should deprecate eventually as it's unclear that you're running two commands here, and arguably |
||
"lint-fix": "npm run eslint -- . --fix", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here, maintaining backward compat |
||
"plugins:build": "node ./scripts/build.js", | ||
"plugins:build-assets": "node ./scripts/copyAssets.js", | ||
"plugins:build-storybook": "cd packages/superset-ui-demo && npm run build-storybook", | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
breaking down the steps in CI makes it more clear where the output is coming from, and gets timing info on the different steps. Helping understand the time it takes for each step