-
Notifications
You must be signed in to change notification settings - Fork 0
feature/lefthook #417
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
feature/lefthook #417
Changes from all commits
a0fb12c
032e03f
5fb3201
c5be07c
17fcced
87cb011
9f21d85
1b3565e
0a87d76
9c4a770
c3cdd42
b99efa0
88d4013
f905239
1b6d7b0
f5a6b7e
e966aa2
a2d315a
1c2a6b5
72d6ef3
d27823a
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 |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| output: | ||
| - summary | ||
| - failure | ||
| pre-commit: | ||
| parallel: true | ||
| jobs: | ||
| - name: format | ||
| glob: "**/*.{ts,tsx,json}" | ||
| run: yarn --silent format:files {staged_files} | ||
| stage_fixed: true | ||
|
|
||
| - name: lint | ||
| glob: "**/*.{ts,tsx}" | ||
| run: yarn --silent lint:files {staged_files} | ||
| stage_fixed: true | ||
|
Comment on lines
+5
to
+15
|
||
|
|
||
| - name: typecheck | ||
| run: yarn --silent typeCheck --pretty false | ||
|
|
||
| - name: test | ||
| run: yarn --silent test | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,87 +1,91 @@ | ||
| { | ||
| "name": "cell-catalog", | ||
| "description": "Cell catalog for Allen Institute for Cell Science", | ||
| "version": "1.3.2", | ||
| "author": "Megan Riel-Mehan", | ||
| "dependencies": { | ||
| "@ant-design/icons": "^5.5.1", | ||
| "@reach/router": "^1.3.4", | ||
| "@svgr/webpack": "^8.1.0", | ||
| "antd": "^5.21.2", | ||
| "decap-cms-app": "^3.6.3", | ||
| "decap-cms-media-library-cloudinary": "^3.0.1", | ||
| "decap-cms-media-library-uploadcare": "^3.0.0", | ||
| "gatsby": "^5.14.0-next.3", | ||
| "gatsby-plugin-decap-cms": "^4.0.3", | ||
| "gatsby-plugin-fix-fouc": "^1.0.5", | ||
| "gatsby-plugin-image": "^3.14.0", | ||
| "gatsby-plugin-netlify": "^5.1.1", | ||
| "gatsby-plugin-nprogress": "^5.15.0", | ||
| "gatsby-plugin-purgecss": "^6.0.0", | ||
| "gatsby-plugin-react-helmet": "^6.13.1", | ||
| "gatsby-plugin-react-svg": "^3.3.0", | ||
| "gatsby-plugin-sass": "^6.13.1", | ||
| "gatsby-plugin-sharp": "^5.13.1", | ||
| "gatsby-plugin-svgr-svgo": "^2.0.0", | ||
| "gatsby-remark-copy-linked-files": "^6.13.1", | ||
| "gatsby-remark-external-links": "^0.0.4", | ||
| "gatsby-remark-images": "^7.14.0", | ||
| "gatsby-remark-line-breaks": "^1.0.0", | ||
| "gatsby-remark-relative-images": "^2.0.5", | ||
| "gatsby-source-filesystem": "^5.13.1", | ||
| "gatsby-transformer-remark": "^6.13.1", | ||
| "gatsby-transformer-remark-frontmatter": "^1.1.0", | ||
| "gatsby-transformer-sharp": "^5.13.1", | ||
| "lodash": "^4.17.15", | ||
| "lodash-webpack-plugin": "^0.11.4", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "react-helmet": "^6.0.0", | ||
| "sass": "^1.43.2", | ||
| "uuid": "^8.0.0", | ||
| "vitest": "^4.0.17" | ||
| }, | ||
| "keywords": [ | ||
| "gatsby" | ||
| ], | ||
| "license": "MIT", | ||
| "main": "n/a", | ||
| "scripts": { | ||
| "clean": "gatsby clean", | ||
| "start": "npm run develop", | ||
| "build": "npm run clean && gatsby build", | ||
| "develop": "npm run clean && gatsby develop", | ||
| "serve": "gatsby serve", | ||
| "format": "prettier \"src/**/*{.tsx, .ts}\" --write", | ||
| "formatCheck": "prettier \"src/**/*{.tsx, .ts}\" --check", | ||
| "lint": "eslint \"src/**/*{.tsx, .ts}\" --quiet --fix", | ||
| "test": "vitest run", | ||
| "dev": "npx concurrently \"npx netlify-cms-proxy-server\" \"npm start -- --progress\"", | ||
| "typeCheck": "npx tsc -noEmit" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.38.0", | ||
| "@trivago/prettier-plugin-sort-imports": "^5.2.2", | ||
| "@types/antd": "^1.0.0", | ||
| "@types/node": "^20.11.20", | ||
| "@types/react": "^18.2.59", | ||
| "@types/react-dom": "^18.2.19", | ||
| "@types/react-helmet": "^6.1.11", | ||
| "concurrently": "^9.1.2", | ||
| "eslint": "^9.38.0", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-sort-destructure-keys": "^2.0.0", | ||
| "gatsby-plugin-postcss": "^6.13.1", | ||
| "globals": "^16.4.0", | ||
| "jiti": "^2.6.1", | ||
| "netlify-cli": "^17.15.7", | ||
| "postcss": "^8.4.35", | ||
| "prettier": "^3.6.2", | ||
| "typescript": "^5.9.3", | ||
| "typescript-eslint": "^8.46.2", | ||
| "typescript-plugin-css-modules": "^5.1.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">= 22.16.0" | ||
| } | ||
| "name": "cell-catalog", | ||
| "description": "Cell catalog for Allen Institute for Cell Science", | ||
| "version": "1.3.1", | ||
| "author": "Megan Riel-Mehan", | ||
| "license": "MIT", | ||
| "main": "n/a", | ||
| "dependencies": { | ||
| "@ant-design/icons": "^5.5.1", | ||
| "@reach/router": "^1.3.4", | ||
| "@svgr/webpack": "^8.1.0", | ||
| "antd": "^5.21.2", | ||
| "decap-cms-app": "^3.6.3", | ||
| "decap-cms-media-library-cloudinary": "^3.0.1", | ||
| "decap-cms-media-library-uploadcare": "^3.0.0", | ||
| "gatsby": "^5.14.0-next.3", | ||
| "gatsby-plugin-decap-cms": "^4.0.3", | ||
| "gatsby-plugin-fix-fouc": "^1.0.5", | ||
| "gatsby-plugin-image": "^3.14.0", | ||
| "gatsby-plugin-netlify": "^5.1.1", | ||
| "gatsby-plugin-nprogress": "^5.15.0", | ||
| "gatsby-plugin-purgecss": "^6.0.0", | ||
| "gatsby-plugin-react-helmet": "^6.13.1", | ||
| "gatsby-plugin-react-svg": "^3.3.0", | ||
| "gatsby-plugin-sass": "^6.13.1", | ||
| "gatsby-plugin-sharp": "^5.13.1", | ||
| "gatsby-plugin-svgr-svgo": "^2.0.0", | ||
| "gatsby-remark-copy-linked-files": "^6.13.1", | ||
| "gatsby-remark-external-links": "^0.0.4", | ||
| "gatsby-remark-images": "^7.14.0", | ||
| "gatsby-remark-line-breaks": "^1.0.0", | ||
| "gatsby-remark-relative-images": "^2.0.5", | ||
| "gatsby-source-filesystem": "^5.13.1", | ||
| "gatsby-transformer-remark": "^6.13.1", | ||
| "gatsby-transformer-remark-frontmatter": "^1.1.0", | ||
| "gatsby-transformer-sharp": "^5.13.1", | ||
| "lodash": "^4.17.15", | ||
| "lodash-webpack-plugin": "^0.11.4", | ||
| "react": "^18.3.1", | ||
| "react-dom": "^18.3.1", | ||
| "react-helmet": "^6.0.0", | ||
| "sass": "^1.43.2", | ||
| "uuid": "^8.0.0", | ||
| "vitest": "^4.0.17" | ||
| }, | ||
| "keywords": [ | ||
| "gatsby" | ||
| ], | ||
| "scripts": { | ||
| "clean": "gatsby clean", | ||
| "start": "npm run develop", | ||
| "build": "npm run clean && gatsby build", | ||
| "develop": "npm run clean && gatsby develop", | ||
| "serve": "gatsby serve", | ||
| "format": "prettier \"src/**/*{.tsx, .ts}\" package.json --write", | ||
| "format:files": "prettier --write", | ||
| "formatCheck": "prettier \"src/**/*{.tsx, .ts}\" package.json --check", | ||
| "lint": "eslint \"src/**/*{.tsx, .ts}\" --quiet --fix", | ||
| "lint:files": "eslint --quiet --fix", | ||
| "test": "vitest run", | ||
| "dev": "npx concurrently \"npx netlify-cms-proxy-server\" \"npm start -- --progress\"", | ||
| "typeCheck": "tsc --noEmit", | ||
| "prepare": "lefthook install" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.38.0", | ||
| "@trivago/prettier-plugin-sort-imports": "^5.2.2", | ||
| "@types/antd": "^1.0.0", | ||
| "@types/node": "^20.11.20", | ||
| "@types/react": "^18.2.59", | ||
| "@types/react-dom": "^18.2.19", | ||
| "@types/react-helmet": "^6.1.11", | ||
| "concurrently": "^9.1.2", | ||
| "eslint": "^9.38.0", | ||
| "eslint-plugin-react": "^7.37.5", | ||
| "eslint-plugin-sort-destructure-keys": "^2.0.0", | ||
| "gatsby-plugin-postcss": "^6.13.1", | ||
| "globals": "^16.4.0", | ||
| "jiti": "^2.6.1", | ||
| "lefthook": "^2.0.15", | ||
| "netlify-cli": "^17.15.7", | ||
| "postcss": "^8.4.35", | ||
| "prettier": "^3.6.2", | ||
| "typescript": "^5.9.3", | ||
| "typescript-eslint": "^8.46.2", | ||
| "typescript-plugin-css-modules": "^5.1.0" | ||
| }, | ||
| "engines": { | ||
| "node": ">= 22.16.0" | ||
| } | ||
| } |
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.
I ran a bunch of experiments (switching commands with npx, adding
fail_textas a job field, tweaking parameters etc. Here's update:Show Command Outputview can be cleaned up usingexecution_info, this removes the extra blocks and special characters. Now the outputs looks much better.these are the changes in this file that seemed useful during testing (I didn't submit a sub-pr since the changes are small and not yet optimal):
let me know what you think. I can work on this more and open a sub-pr if I find a better fix!
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 for working on this! I don't feel precious about this branch and I'm also fine to walk away from this feature if it's taking a lot of time or energy, I don' think it's high priority.
Feel free to commit to this branch or open new branches.