Add check
command
Formats, lints and checks the code.
This commit is contained in:
parent
4f7de8fdc0
commit
dd69d2a761
1 changed files with 7 additions and 0 deletions
|
@ -10,11 +10,18 @@
|
||||||
"tasks": {
|
"tasks": {
|
||||||
"lume": "echo \"import 'lume/cli.ts'\" | deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:8080' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' -",
|
"lume": "echo \"import 'lume/cli.ts'\" | deno run --allow-write='.' --allow-read='.' --allow-net='deno.land,cdn.deno.land,esm.sh,0.0.0.0:8080' --allow-sys=networkInterfaces --allow-env='LUME_ENV,LUME_LIVE_RELOAD,LUME_LOGS,LUME_NOCACHE,LUME_DRAFTS' -",
|
||||||
"build": "deno task lume",
|
"build": "deno task lume",
|
||||||
|
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
|
||||||
"serve": "deno task lume -s",
|
"serve": "deno task lume -s",
|
||||||
"deploy": "rsync -avh --progress --delete ./_site/ podman:/srv/www/fosterhangdaan.com/"
|
"deploy": "rsync -avh --progress --delete ./_site/ podman:/srv/www/fosterhangdaan.com/"
|
||||||
},
|
},
|
||||||
"imports": {
|
"imports": {
|
||||||
"react/jsx-runtime": "https://esm.sh/react@18.2.0/jsx-runtime",
|
"react/jsx-runtime": "https://esm.sh/react@18.2.0/jsx-runtime",
|
||||||
"lume/": "https://deno.land/x/lume@v2.1.0/"
|
"lume/": "https://deno.land/x/lume@v2.1.0/"
|
||||||
|
},
|
||||||
|
"fmt": {
|
||||||
|
"exclude": [
|
||||||
|
"LICENSE*",
|
||||||
|
"COPYING"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue