-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
215b5a0
commit ee0c008
Showing
3 changed files
with
46 additions
and
11 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,2 @@ | ||
.* | ||
README.md |
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,19 @@ | ||
FROM denoland/deno:alpine | ||
|
||
# The port that your application listens to. | ||
EXPOSE 8000 | ||
|
||
# Set the working directory inside the container (could be any directory) | ||
WORKDIR /app | ||
|
||
# Copy all files to the working directory | ||
COPY . . | ||
|
||
# Run checks | ||
RUN deno task ok | ||
|
||
# Install dependencies | ||
RUN deno task build | ||
|
||
# Start app | ||
CMD ["task", "start"] |
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,33 +1,47 @@ | ||
{ | ||
"lock": false, | ||
"nodeModulesDir": true, | ||
"tasks": { | ||
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx", | ||
"ok": "deno fmt --check && deno lint && deno check **/*.ts **/*.tsx", | ||
"cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -", | ||
"manifest": "deno task cli manifest $(pwd)", | ||
"dev": "deno run -A --watch=static/,routes/ dev.ts", | ||
"build": "deno run -A dev.ts build", | ||
"start": "deno run -A main.ts", | ||
"update": "deno run -A -r https://fresh.deno.dev/update ." | ||
"update": "deno run -Ar https://fresh.deno.dev/update ." | ||
}, | ||
"lint": { "rules": { "tags": ["fresh", "recommended"] } }, | ||
"exclude": ["**/_fresh/*"], | ||
"fmt": { "useTabs": true }, | ||
"imports": { | ||
"$fresh/": "https://deno.land/x/fresh@1.6.8/", | ||
"@/": "./", | ||
"@deno/gfm": "jsr:@deno/gfm@^0.8.0", | ||
"@deno/gfm": "jsr:@deno/gfm@^0.8.2", | ||
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", | ||
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", | ||
"@std/http/cookie": "jsr:@std/http@^0.220.1/cookie", | ||
"@std/path": "jsr:@std/path@^0.220.1", | ||
"icons/": "https://deno.land/x/tabler_icons_tsx@0.0.6/tsx/", | ||
"@std/http/cookie": "jsr:@std/http@^0.224.5/cookie", | ||
"@std/path": "jsr:@std/path@^0.225.2", | ||
"icons/": "https://deno.land/x/tabler_icons_tsx@0.0.7/tsx/", | ||
"preact": "https://esm.sh/preact@10.19.6", | ||
"preact/": "https://esm.sh/preact@10.19.6/", | ||
"prism/": "https://esm.sh/prismjs@1.29.0/components/", | ||
"tailwindcss": "npm:tailwindcss@3.4.3", | ||
"tailwindcss/": "npm:/tailwindcss@3.4.3/", | ||
"tailwindcss/plugin": "npm:/tailwindcss@3.4.3/plugin.js" | ||
}, | ||
"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, | ||
"nodeModulesDir": true | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
}, | ||
"fmt": { | ||
"useTabs": true | ||
}, | ||
"lint": { | ||
"rules": { | ||
"tags": [ | ||
"fresh", | ||
"recommended" | ||
] | ||
} | ||
}, | ||
"exclude": [ | ||
"**/_fresh/*" | ||
] | ||
} |