forked from denoland/std
-
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.
chore: upgrade to Fresh v1.4.2 (denoland#428)
References: * https://deno.com/blog/fresh-1.4#faster-page-loads-with-ahead-of-time-compilation * https://fresh.deno.dev/docs/concepts/ahead-of-time-builds
- Loading branch information
Showing
6 changed files
with
51 additions
and
9 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,31 @@ | ||
name: Deploy | ||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: main | ||
|
||
jobs: | ||
deploy: | ||
name: Deploy | ||
runs-on: ubuntu-latest | ||
|
||
permissions: | ||
id-token: write # Needed for auth with Deno Deploy | ||
contents: read # Needed to clone the repository | ||
|
||
steps: | ||
- name: Clone repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
|
||
- name: Build step | ||
run: deno task build | ||
|
||
- name: Upload to Deno Deploy | ||
uses: denoland/deployctl@v1 | ||
with: | ||
project: saaskit | ||
entrypoint: ./main.ts |
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 |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
cov/ | ||
cov.lcov | ||
.idea | ||
_fresh/ |
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 |
---|---|---|
|
@@ -11,19 +11,21 @@ | |
"check:types": "deno check **/*.ts && deno check **/*.tsx", | ||
"ok": "deno fmt --check && deno lint && deno task check:license --check && deno task check:types && deno task test", | ||
"cov": "deno coverage ./cov/ --lcov --exclude='test.ts' > cov.lcov", | ||
"update": "deno run -A -r https://fresh.deno.dev/update ." | ||
"update": "deno run -A -r https://fresh.deno.dev/update .", | ||
"build": "deno run -A --unstable dev.ts build", | ||
"preview": "deno run -A --unstable main.ts" | ||
}, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
}, | ||
"imports": { | ||
"@/": "./", | ||
"$fresh/": "https://raw.githubusercontent.com/denoland/fresh/726740ed39aa0c5a9c484f4eba4f6e329cf730d1/", | ||
"$fresh/": "https://deno.land/x/fresh@1.4.2/", | ||
"$gfm": "https://deno.land/x/[email protected]/mod.ts", | ||
"preact": "https://esm.sh/[email protected]", | ||
"preact/": "https://esm.sh/[email protected]/", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].0", | ||
"preact-render-to-string": "https://esm.sh/*[email protected].1", | ||
"@preact/signals": "https://esm.sh/*@preact/[email protected]", | ||
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]", | ||
"twind-preset-tailwind/": "https://esm.sh/@twind/[email protected]/", | ||
|
@@ -37,7 +39,8 @@ | |
"fresh_charts/": "https://deno.land/x/[email protected]/" | ||
}, | ||
"exclude": [ | ||
"cov/" | ||
"cov/", | ||
"_fresh/" | ||
], | ||
"lint": { | ||
"rules": { | ||
|
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,8 @@ | ||
// Copyright 2023 the Deno authors. All rights reserved. MIT license. | ||
import { defineConfig } from "$fresh/server.ts"; | ||
import twindPlugin from "$fresh/plugins/twindv1.ts"; | ||
import twindConfig from "./twind.config.ts"; | ||
|
||
export default defineConfig({ | ||
plugins: [twindPlugin(twindConfig)], | ||
}); |
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