Skip to content

Commit

Permalink
style(infra): active prettier package.json plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
EAGzzyCSL committed Mar 23, 2024
1 parent 0355bce commit c1a0650
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 23 deletions.
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,33 +7,33 @@
],
"scripts": {
"cloc": "cloc --vcs git",
"commit": "git-cz",
"init": "yarn workspace @mine/markdown-loader run build",
"lint:commit": "commitlint --from `git rev-list --max-parents=0 HEAD` --to HEAD",
"lint:es": "eslint \"./{*.js,*.mjs,.*.js,.*.mjs}\" && lerna run lint:es",
"lint:es-fix": "eslint \"./{*.js,*.mjs,.*.js,.*.mjs}\" --fix && lerna run lint:es-fix",
"lint:md": "markdownlint '**/*.md' --ignore-path .gitignore",
"lint:style": "stylelint './packages/**/*.scss'",
"lint:style-fix": "npm run lint:style -- --fix",
"prepare": "husky",
"prettier": "prettier --check . **/*.svg",
"prettier:fix": "prettier --write . **/*.svg",
"setup": "yarn install --frozen-lockfile && npm run init",
"init": "yarn workspace @mine/markdown-loader run build",
"site:analyze": "yarn workspace @mine/site run export:analyze && du -sh ./local-export",
"site:build": "yarn workspace @mine/site run build",
"site:create-app": "yarn workspace @mine/site run create-app",
"site:dev": "yarn workspace @mine/site run dev",
"site:domain": "yarn workspace @mine/site run export:domain",
"site:file-type": "yarn workspace @mine/site run file-type",
"site:local": "yarn workspace @mine/site run export:local && du -sh ./local-export",
"site:analyze": "yarn workspace @mine/site run export:analyze && du -sh ./local-export",
"site:qr": "yarn workspace @mine/site run qr",
"site:route": "yarn workspace @mine/site run route",
"site:serve": "yarn workspace @mine/site run serve",
"site:storybook": "yarn workspace @mine/site run storybook",
"site:route": "yarn workspace @mine/site run route",
"site:qr": "yarn workspace @mine/site run qr",
"site:file-type": "yarn workspace @mine/site run file-type",
"site:create-app": "yarn workspace @mine/site run create-app",
"test": "jest",
"test:ci": "jest --coverage",
"ts:check": "lerna run ts:check",
"verify": "npm-run-all prettier lint:md lint:style lint:es test ts:check lint:commit",
"commit": "git-cz",
"prepare": "husky"
"verify": "npm-run-all prettier lint:md lint:style lint:es test ts:check lint:commit"
},
"config": {
"commitizen": {
Expand Down
1 change: 1 addition & 0 deletions packages/prettier/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ export default {
},
},
],
plugins: ['prettier-plugin-packagejson'],
}
2 changes: 1 addition & 1 deletion packages/prettier/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@mine/prettier-config",
"version": "0.0.0",
"private": true,
"main": "index.mjs",
"type": "module",
"main": "index.mjs",
"scripts": {
"lint:es": "eslint --ext .js,.mjs,.ts,.tsx ./",
"lint:es-fix": "npm run lint:es -- --fix"
Expand Down
2 changes: 1 addition & 1 deletion packages/simple-jest-transform-yaml/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
"name": "@mine/simple-jest-transform-yaml",
"version": "0.0.0",
"private": true,
"main": "index.mjs",
"type": "module",
"main": "index.mjs",
"scripts": {
"lint:es": "eslint --ext .js,.mjs,.ts,.tsx ./",
"lint:es-fix": "npm run lint:es -- --fix"
Expand Down
24 changes: 12 additions & 12 deletions packages/site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"scripts": {
"build": "npm run clear && npm run route && next build",
"build-storybook": "storybook build",
"clear": "rm -rf public/static && rm -rf .next",
"create-app": "node ./scripts/create-app.mjs",
"dev": "next dev",
Expand All @@ -18,8 +19,7 @@
"route": "rollup-node ./scripts/route.ts ./scripts/tsconfig.route.json",
"serve": "next start",
"storybook": "storybook dev -p 6006",
"ts:check": "tsc --noEmit",
"build-storybook": "storybook build"
"ts:check": "tsc --noEmit"
},
"browserslist": {
"production": [
Expand All @@ -30,6 +30,7 @@
]
},
"dependencies": {
"@chromatic-com/storybook": "^1.2.22",
"@emotion/react": "^11.11.0",
"@emotion/styled": "^11.11.0",
"@mine/markdown-loader": "^0.0.0",
Expand All @@ -40,7 +41,14 @@
"@mui/system": "^5.15.5",
"@mui/x-date-pickers": "^6.19.0",
"@next/bundle-analyzer": "^14.1.0",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/addon-links": "^8.0.0",
"@storybook/addon-onboarding": "^8.0.0",
"@storybook/blocks": "^8.0.0",
"@storybook/nextjs": "^8.0.0",
"@storybook/react": "^8.0.0",
"@storybook/test": "^8.0.0",
"@types/classnames": "^2.3.1",
"@types/lodash": "^4.14.178",
"@types/pinyin": "^2.10.0",
Expand All @@ -53,6 +61,7 @@
"cross-env": "^7.0.3",
"dayjs": "^1.11.0",
"disqus-react": "^1.1.3",
"eslint-plugin-storybook": "^0.8.0",
"file-loader": "^6.2.0",
"fs-extra": "^11.1.0",
"highlight.js": "^11.8.0",
Expand Down Expand Up @@ -81,15 +90,6 @@
"tslib": "^2.6.2",
"typescript": "^5.3.3",
"webpack": "^5.89.0",
"yaml-loader": "^0.8.0",
"@chromatic-com/storybook": "^1.2.22",
"@storybook/addon-essentials": "^8.0.0",
"@storybook/addon-interactions": "^8.0.0",
"@storybook/addon-links": "^8.0.0",
"@storybook/addon-onboarding": "^8.0.0",
"@storybook/blocks": "^8.0.0",
"@storybook/react": "^8.0.0",
"@storybook/test": "^8.0.0",
"eslint-plugin-storybook": "^0.8.0"
"yaml-loader": "^0.8.0"
}
}

0 comments on commit c1a0650

Please sign in to comment.