generated from kachick/anylang-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine management of development dependencies (#144)
Fixes GH-143 * Bump deno * Bump esm and the paackage versions * Replace npm with nix to inject stylelint except the plugin * Replace deno fmt with dprint to avoid jsonc trailling comma warning in vscode * Prefer import maps * Fix cache targets with rough glob * Pin typos version to avoid PR as GH-142 * Replace skypack with esm.sh for fflate
- Loading branch information
Showing
15 changed files
with
317 additions
and
711 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 |
---|---|---|
|
@@ -8,5 +8,8 @@ | |
"nix": { | ||
"enabled": false | ||
}, | ||
"ignoreDeps": [ | ||
"crate-ci/typos" | ||
], | ||
"schedule": ["on Tuesday"] | ||
} |
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 |
---|---|---|
|
@@ -22,10 +22,10 @@ jobs: | |
- uses: dprint/[email protected] | ||
with: | ||
dprint-version: '0.45.1' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","dprint --version | cut -d ' ' -f 2"]} | ||
- uses: crate-ci/typos@v1.24.3 # selfup {"extract":"\\d\\.\\d+\\.\\d+","replacer":["bash","-c","typos --version | cut -d ' ' -f 2"]} | ||
- uses: crate-ci/typos@v1.21.0 # selfup {"extract":"\\d\\.\\d+\\.\\d+","replacer":["bash","-c","typos --version | cut -d ' ' -f 2"]} | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: '1.44.3' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]} | ||
deno-version: '1.45.5' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]} | ||
- run: deno task check | ||
build: | ||
timeout-minutes: 15 | ||
|
@@ -34,7 +34,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: '1.44.3' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]} | ||
deno-version: '1.45.5' # selfup {"extract":"\\d[^']+","replacer":["bash","-c","deno --version | head -n 1 | cut -d ' ' -f 2"]} | ||
- name: Ensure cache before build | ||
run: deno task cache | ||
- name: Install gh-action-escape | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,43 @@ | ||
{ | ||
"tasks": { | ||
"build": "deno run --quiet --allow-net --allow-read --allow-write --allow-env scripts/build.ts", | ||
"build": "deno run --node-modules-dir --quiet --allow-net --allow-read --allow-write --allow-env scripts/build.ts", | ||
"clean": "rm -rf ./dist", | ||
"check": "dprint check && typos && deno fmt --check && deno lint && deno check src/*.ts* scripts/*.ts && deno task check:manifest", | ||
"check:manifest": "deno run scripts/manifestValidator.ts", | ||
"stylelint": "deno task cache:stylelint && deno run --node-modules-dir --allow-env --allow-read --allow-sys npm:stylelint@15.10.3/stylelint src/*.css | deno run --allow-sys scripts/checkEmpty.ts", | ||
"check": "dprint check && typos && dprint check && deno lint && deno check --node-modules-dir src/*.ts* scripts/*.ts && deno task check:manifest", | ||
"check:manifest": "deno run --node-modules-dir scripts/manifestValidator.ts", | ||
"stylelint": "deno task cache && stylelint src/*.css", | ||
"deps": "deno --version && mogrify --version && dprint --version && typos --version && rg --version", | ||
"cache": "deno cache --node-modules-dir --reload **/*.ts **/*.tsx", | ||
"update": "deno cache --lock-write --node-modules-dir npm:[email protected] npm:[email protected] **/*.ts **/*.tsx", | ||
"cache:stylelint": "deno cache --node-modules-dir npm:[email protected] npm:[email protected]", | ||
"cache": "deno cache --frozen=false --node-modules-dir --reload npm:[email protected] src/*.ts* scripts/*.ts", | ||
// Required ImageMagick dependency | ||
"resize": "mogrify -resize 128x128! assets/icons/**/*.png", | ||
"remove-exif": "exiftool -all= ./assets/**/*.png ./assets/**/*.jpg", | ||
"all": "deno task deps && deno task check && deno task build && deno task stylelint && deno task resize", | ||
"all": "deno task deps && deno task check && deno task build && deno task stylelint && deno task resize" | ||
}, | ||
"compilerOptions": { | ||
"lib": [ | ||
"dom", | ||
"dom.iterable", | ||
"dom.asynciterable", | ||
"deno.ns", | ||
"deno.ns" | ||
], | ||
"types": [ | ||
"https://esm.sh/v128/[email protected].216/index.d.ts", | ||
"https://esm.sh/v135/[email protected].301/index.d.ts" | ||
], | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "https://esm.sh/v135/[email protected]" | ||
}, | ||
"lint": { | ||
"include": ["src/", "scripts/"], | ||
"rules": { | ||
"tags": ["recommended"], | ||
}, | ||
}, | ||
"fmt": { | ||
"singleQuote": true, | ||
"include": ["src/", "scripts/"], | ||
"tags": ["recommended"] | ||
} | ||
}, | ||
"imports": { | ||
"@deno/emit": "jsr:@deno/emit@^0.45.0", | ||
"@std/assert": "jsr:@std/assert@^1.0.3", | ||
"@std/encoding": "jsr:@std/encoding@^1.0.3", | ||
"@std/path": "jsr:@std/path@^1.0.3", | ||
"ajv": "https://esm.sh/v135/[email protected]", | ||
"fflate": "https://esm.sh/v135/[email protected]", | ||
"pretty-bytes": "https://esm.sh/v135/[email protected]" | ||
} | ||
} |
Oops, something went wrong.