Skip to content

Commit

Permalink
chore: willboosterify this repo
Browse files Browse the repository at this point in the history
  • Loading branch information
WillBooster-bot committed Mar 10, 2025
1 parent 3b23a14 commit f547c6d
Show file tree
Hide file tree
Showing 30 changed files with 1,015 additions and 3,611 deletions.
504 changes: 0 additions & 504 deletions .eslintignore

This file was deleted.

1 change: 0 additions & 1 deletion .eslintrc.json

This file was deleted.

1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
* text=auto

*.lockb binary diff=lockb
*.vcproj text eol=crlf

*.cjs text eol=lf
Expand Down
1 change: 1 addition & 0 deletions .husky/post-merge
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ run_if_changed() {
fi
}

run_if_changed "\..+-version" "awk '{print \$1}' .tool-versions | xargs -I{} asdf plugin add {}"
run_if_changed "\..+-version" "asdf plugin update --all"
run_if_changed "\..+-version" "asdf install"
run_if_changed "package\.json" "yarn"
12 changes: 12 additions & 0 deletions .lintstagedrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
const fs = require('fs');
const path = require('path');

module.exports = {
Expand All @@ -10,4 +11,15 @@ module.exports = {
}
return commands;
},
'./**/migration.sql': (files) => {
for (const file of files) {
const content = fs.readFileSync(file, 'utf-8');
if (content.includes('Warnings:')) {
return [
`!!! Migration SQL file (${path.relative('', file)}) contains warnings !!! Solve the warnings and commit again.`,
];
}
}
return [];
},
};
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
java adoptopenjdk-17.0.13+11
yarn 1.22.19
yarn 1.22.22
2 changes: 1 addition & 1 deletion .yarn/plugins/plugin-auto-install.cjs
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
"use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),c=n("fs"),r=n("path"),o="plugin-auto-install v2.0.1";let i=!1,s="";function a(n){try{const t=e.createHash("sha256"),o=r.join(n.cwd,"yarn.lock");c.statSync(o,{throwIfNoEntry:!1})&&t.update(c.readFileSync(o,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=r.join(e,"package.json"),o=JSON.parse(c.readFileSync(n,"utf8")),i=Object.keys(o).filter((n=>n.endsWith("ependencies"))),s=[];for(const n of i)s.push(...Object.entries(o[n]).map((([n,t])=>`${n}: ${t}`)));t.update(s.sort().join(","))}return t.digest("hex")}catch{}}function l(n){try{const t=d(n);return c.readFileSync(r.join(t,"hash"),"utf8")}catch{}}function u(n,t){if(!n||n===s)return!1;try{const e=d(t);c.mkdirSync(e,{recursive:!0}),c.writeFileSync(r.join(e,"hash"),n),c.writeFileSync(r.join(e,".gitignore"),".gitignore\nhash"),console.info(`${o} updated dependency hash: ${n}`),s=n}catch{}return!0}function d(n){return r.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:{validateProject(n){i=!0;const t=a(n);t&&t===l(n)||u(t,n)},afterAllInstalled(n){i=!1;const t=a(n);t&&t===l(n)||u(t,n)},async setupScriptEnvironment(n,e){if(!i)try{const c=a(n);if(c&&c===l(n))return;if(!u(c,n))return;console.info(`${o} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:n.cwd,env:e}),console.info(`${o} finished 'yarn install'.`)}catch{}}}}}};module.exports=n;
"use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),c=n("fs"),r=n("path"),o="plugin-auto-install v2.0.2";let i=!1,s="";function a(n){try{const t=e.createHash("sha256"),o=r.join(n.cwd,"yarn.lock");c.statSync(o,{throwIfNoEntry:!1})&&t.update(c.readFileSync(o,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=r.join(e,"package.json"),o=JSON.parse(c.readFileSync(n,"utf8")),i=Object.keys(o).filter((n=>n.endsWith("ependencies"))),s=[];for(const n of i)s.push(...Object.entries(o[n]).map((([n,t])=>`${n}: ${t}`)));t.update(s.sort().join(","))}return t.digest("hex")}catch{}}function l(n){try{const t=d(n);return c.readFileSync(r.join(t,"hash"),"utf8")}catch{}}function u(n,t){if(!n||n===s)return!1;try{const e=d(t);c.mkdirSync(e,{recursive:!0}),c.writeFileSync(r.join(e,"hash"),n),c.writeFileSync(r.join(e,".gitignore"),".gitignore\nhash"),console.info(`${o} updated dependency hash: ${n}`),s=n}catch{}return!0}function d(n){return r.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:{validateProject(n){i=!0;const t=a(n);t&&t===l(n)||u(t,n)},afterAllInstalled(n){i=!1;const t=a(n);t&&t===l(n)||u(t,n)},async setupScriptEnvironment(n,e){if(!i)try{const c=a(n);if(c&&c===l(n))return;if(!u(c,n))return;console.info(`${o} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:n.cwd,env:e}),console.info(`${o} finished 'yarn install'.`)}catch{}}}}}};module.exports=n;
//# sourceMappingURL=index.js.map
511 changes: 256 additions & 255 deletions .yarn/releases/yarn-4.5.3.cjs → .yarn/releases/yarn-4.7.0.cjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ nmMode: hardlinks-global
nodeLinker: node-modules

plugins:
- checksum: 8b171ee8559cde7c8696b5459b49e19cb8ec2cdf942a6a64107706c803f5f1b9b96ae7378a32240ce5119807ac7cf12cd8dd32313188d2f72a3452d28e9c3e44
- checksum: 38e9c07e39ad26ceca2aad81e352f9827d3f08608a396e7286ee684b0551208b9043ba43811e5757e32867999023c982b719e6ae981cffdf2e48ba0aa42b77ef
path: .yarn/plugins/plugin-auto-install.cjs
spec: 'https://github.com/WillBooster/yarn-plugin-auto-install/releases/download/v2.0.1/index.cjs'
spec: 'https://github.com/WillBooster/yarn-plugin-auto-install/releases/download/v2.0.2/index.cjs'

yarnPath: .yarn/releases/yarn-4.5.3.cjs
yarnPath: .yarn/releases/yarn-4.7.0.cjs
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
],
"scripts": {
"build": "yarn workspaces foreach --all --parallel --verbose run build",
"check-all": "yarn cleanup && yarn typecheck && yarn test",
"cleanup": "yarn format && yarn lint-fix",
"format": "sort-package-json && yarn prettify && yarn workspaces foreach --all --parallel --verbose run format",
"postinstall": "husky || true",
Expand All @@ -28,19 +29,18 @@
"@qiwi/multi-semantic-release": "7.1.2",
"@types/eslint": "8.56.11",
"@types/micromatch": "4.0.9",
"@typescript-eslint/parser": "7.18.0",
"@willbooster/prettier-config": "9.1.3",
"@willbooster/prettier-config": "10.0.0",
"conventional-changelog-conventionalcommits": "6.1.0",
"eslint": "8.57.0",
"eslint": "9.22.0",
"husky": "9.1.7",
"lint-staged": "15.2.11",
"lint-staged": "15.4.3",
"micromatch": "4.0.8",
"pinst": "3.0.0",
"prettier": "3.4.2",
"sort-package-json": "2.12.0",
"typescript": "5.7.2"
"prettier": "3.5.3",
"sort-package-json": "3.0.0",
"typescript": "5.8.2"
},
"packageManager": "yarn@4.5.3",
"packageManager": "yarn@4.7.0",
"engines": {
"node": ">=18"
}
Expand Down
Loading

0 comments on commit f547c6d

Please sign in to comment.