-
Notifications
You must be signed in to change notification settings - Fork 1.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
fix: Frontend scripts and Tailwind accounting for products/
#27696
Conversation
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.
Whoops. Thanks for this!
package.json
Outdated
"prettier --write" | ||
], | ||
"products/**/frontend/**/*.{js,jsx,mjs,ts,tsx}": [ | ||
"eslint --cache products/**/frontend/**/* -c .eslintrc.js --fix", | ||
"prettier --write products" |
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.
This runs prettier on the whole products/
directory for each file changed under products/**/frontend/**/...
– which is why this PR contains changes to a README.md, which wasn't otherwise changed.
"prettier --write products" | |
"prettier --write" |
Curious why we need a separate Eslint cache BTW, if the original formatting command here didn't specify the cache path?
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.
We don't need a separate cache. Lemme fix.
Size Change: +5 B (0%) Total Size: 1.16 MB ℹ️ View Unchanged
|
📸 UI snapshots have been updated1 snapshot changes in total. 0 added, 1 modified, 0 deleted:
Triggered by this commit. |
package.json
Outdated
"eslint -c .eslintrc.js --fix", | ||
"prettier --write" | ||
"eslint -c .eslintrc.js --fix cypress/**/*", | ||
"prettier --write \"cypress/**/*.{js,mjs,ts,tsx,json,yaml,yml,css,scss}\"" |
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.
This specification of path also is unwanted, since lint-staged already provides the path of every changed file. Same in eslint above
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.
Thanks. I've fixed paths.
90e8d80
to
b4c35ae
Compare
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.
Nice, thanks
products/
Problem
Frontend scripts don't work for the
/products/**
dir.Changes
I might've missed some other scripts.
Does this work well for both Cloud and self-hosted?
Yes
How did you test this code?
Locally