-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
611 additions
and
520 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Project-specific settings (head) | ||
|
||
|
||
# Generated by wbfy | ||
|
||
**/*.sqlite3* | ||
|
||
# Project-specific settings (tail) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name: Add issue to github project | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
add-issue-to-project: | ||
uses: WillBooster/reusable-workflows/.github/workflows/add-issue-to-project.yml@main | ||
secrets: | ||
GH_PROJECT_URL: ${{ secrets.GH_PROJECT_URL }} | ||
GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
name: Add close comment | ||
on: | ||
pull_request: | ||
types: | ||
- opened | ||
jobs: | ||
close-comment: | ||
uses: WillBooster/reusable-workflows/.github/workflows/close-comment.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Notify ready | ||
on: | ||
issues: | ||
types: | ||
- labeled | ||
jobs: | ||
notify-ready: | ||
uses: WillBooster/reusable-workflows/.github/workflows/notify-ready.yml@main | ||
secrets: | ||
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL_FOR_READY }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,24 @@ | ||
name: Test | ||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '**.md' | ||
- '**/docs/**' | ||
push: | ||
branches: | ||
- main | ||
- wbfy | ||
- renovate/** | ||
paths-ignore: | ||
- '**.md' | ||
- '**/docs/**' | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
jobs: | ||
test: | ||
uses: WillBooster/reusable-workflows/.github/workflows/test.yml@main | ||
with: | ||
dot_env_path: .env | ||
github_hosted_runner: true | ||
secrets: | ||
DOT_ENV: ${{ secrets.DOT_ENV }} | ||
GH_TOKEN: ${{ secrets.PUBLIC_GH_BOT_PAT }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,14 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn | ||
changed_files="$(git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD)" | ||
|
||
run_if_changed() { | ||
if echo "$changed_files" | grep --quiet -E "$1"; then | ||
eval "$2" | ||
fi | ||
} | ||
|
||
run_if_changed "\..+-version" "asdf plugin update --all" | ||
run_if_changed "\..+-version" "asdf install" | ||
run_if_changed "package\.json" "yarn" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn lint-staged | ||
node node_modules/.bin/lint-staged |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/usr/bin/env sh | ||
. "$(dirname -- "$0")/_/husky.sh" | ||
|
||
yarn typecheck | ||
node node_modules/.bin/tsc --noEmit --Pretty |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nodejs 18.14.1 | ||
yarn 1.22.19 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
module.exports={name:"plugin-auto-install",factory:r=>{let p=r("child_process"),S=r("crypto"),a=r("fs"),o=r("path"),l="plugin-auto-install v1.8.1",d=!1,g="",j={validateProject(n){d=!0;let t=h(n);t&&t===u(n)||f(t,n)},afterAllInstalled(n){d=!1;let t=h(n);t&&t===u(n)||f(t,n)},async wrapScriptExecution(n,t,s,w,c){if(d)return n;try{let e=h(t);if(e&&e===u(t)||!f(e,t))return n;console.info(`${l} is running 'yarn install' due to dependency changes.`),p.spawnSync("yarn",["install"],{cwd:c.cwd,env:c.env}),console.info(`${l} finished 'yarn install'.`);let i=p.spawnSync("yarn",[w,...c.args],{cwd:c.cwd,env:c.env,stdio:"inherit",shell:!0});return async()=>i.status||0}catch{}return n}};function h(n){try{let t=S.createHash("sha256"),s=o.join(n.cwd,"yarn.lock");a.statSync(s,{throwIfNoEntry:!1})&&t.update(a.readFileSync(s,"utf-8"));for(let c of n.workspaces.map(e=>e.cwd).sort()){let e=o.join(c,"package.json"),i=JSON.parse(a.readFileSync(e,"utf-8")),m=Object.keys(i).filter(y=>y.endsWith("ependencies")),P=[];for(let y of m)P.push(...Object.entries(i[y]).map(([v,H])=>`${v}: ${H}`));t.update(P.sort().join(","))}return t.digest("hex")}catch{}}function u(n){try{let t=k(n);return a.readFileSync(o.join(t,"hash"),"utf-8")}catch{}}function f(n,t){if(!n||n===g)return!1;try{let s=k(t);a.mkdirSync(s,{recursive:!0}),a.writeFileSync(o.join(s,"hash"),n),a.writeFileSync(o.join(s,".gitignore"),`.gitignore | ||
hash`),console.info(`${l} updated dependency hash: ${n}`),g=n}catch{}return!0}function k(n){return o.join(n.cwd,".yarn","plugins","plugin-auto-install")}return{hooks:j}}}; | ||
//# sourceMappingURL=index.cjs.map | ||
"use strict";var n={name:"plugin-auto-install",factory:n=>{const t=n("child_process"),e=n("crypto"),r=n("fs"),c=n("path"),s="plugin-auto-install v1.8.7";let i=!1,o="";function a(n){try{const t=e.createHash("sha256"),s=c.join(n.cwd,"yarn.lock");r.statSync(s,{throwIfNoEntry:!1})&&t.update(r.readFileSync(s,"utf8"));for(const e of n.workspaces.map((n=>n.cwd)).sort()){const n=c.join(e,"package.json"),s=JSON.parse(r.readFileSync(n,"utf8")),i=Object.keys(s).filter((n=>n.endsWith("ependencies"))),o=[];for(const n of i)o.push(...Object.entries(s[n]).map((([n,t])=>`${n}: ${t}`)));t.update(o.sort().join(","))}return t.digest("hex")}catch{}}function l(n){try{const t=d(n);return r.readFileSync(c.join(t,"hash"),"utf8")}catch{}}function u(n,t){if(!n||n===o)return!1;try{const e=d(t);r.mkdirSync(e,{recursive:!0}),r.writeFileSync(c.join(e,"hash"),n),r.writeFileSync(c.join(e,".gitignore"),".gitignore\nhash"),console.info(`${s} updated dependency hash: ${n}`),o=n}catch{}return!0}function d(n){return c.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 wrapScriptExecution(n,e,r,c,o){if(i)return n;try{const r=a(e);if(r&&r===l(e))return n;if(!u(r,e))return n;console.info(`${s} is running 'yarn install' due to dependency changes.`),t.spawnSync("yarn",["install"],{cwd:o.cwd,env:o.env}),console.info(`${s} finished 'yarn install'.`);const i=t.spawnSync("yarn",[c,...o.args],{cwd:o.cwd,env:o.env,stdio:"inherit",shell:!0});return async()=>i.status||0}catch{}return n}}}}};module.exports=n; | ||
//# sourceMappingURL=index.min.cjs.map |
Oops, something went wrong.