Skip to content

Commit 0e5102e

Browse files
committed
Merge branch 'main' into rename-FreshContext-req-to-request
1 parent 3fd8142 commit 0e5102e

270 files changed

Lines changed: 4760 additions & 1293 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
File renamed without changes.

.github/CONTRIBUTING.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,4 @@
22

33
## Submitting a pull request
44

5-
First, please be sure to
6-
[install Puppeteer](https://github.com/lucacasonato/deno-puppeteer#installation).
7-
Then, please ensure `deno task ok` is run and successfully passes.
5+
First, please be sure to ensure `deno task ok` is run and successfully passes.

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ jobs:
5454

5555
- name: Check docs
5656
run: deno task check:docs
57+
58+
- name: Build fresh.deno.dev
59+
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'v2.x'
60+
run: deno task build-www

.github/workflows/deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ jobs:
2929

3030
- name: Upload to Deno Deploy
3131
uses: denoland/deployctl@v1
32+
# Skip publishing for forks
33+
if: github.repository_owner == 'denoland'
3234
with:
3335
project: "fresh"
3436
entrypoint: "./www/_fresh/server.js"

.github/workflows/post_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,5 @@ jobs:
2828

2929
- name: Upload version file to dl.deno.land
3030
run: |
31-
cat versions.json | jq -r ".[0]" > release-latest.txt
31+
cat packages/fresh/deno.json | jq -r ".version" > release-latest.txt
3232
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt

.github/workflows/publish.yml

Lines changed: 4 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
contents: read
1313
id-token: write
1414

15+
# Skip publishing for forks
16+
if: github.repository_owner == 'denoland'
17+
1518
steps:
1619
- uses: actions/checkout@v4
1720

@@ -20,25 +23,5 @@ jobs:
2023
with:
2124
cache: true
2225

23-
- name: Publish Fresh
24-
run: deno publish
25-
26-
- name: Publish @fresh/init
27-
working-directory: ./init
28-
run: deno publish
29-
30-
- name: Publish @fresh/plugin-tailwindcss
31-
working-directory: ./plugin-tailwindcss
32-
run: deno publish
33-
34-
- name: Publish @fresh/plugin-tailwindcss-v3
35-
working-directory: ./plugin-tailwindcss-v3
36-
run: deno publish
37-
38-
- name: Publish @fresh/update
39-
working-directory: ./update
40-
run: deno publish
41-
42-
- name: Publish @fresh/examples
43-
working-directory: ./examples
26+
- name: Publish
4427
run: deno publish

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
_fresh/
2+
.vite/
23
vendor/
34
node_modules/
45
.docs/

_typos.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[files]
22
extend-exclude = [
3-
"tests/fixture_partials/routes/scroll_restoration/index.tsx",
3+
"packages/fresh/tests/fixture_partials/routes/scroll_restoration/index.tsx",
44
"www/static/fonts/FixelVariable.woff2",
55
"www/static/fonts/FixelVariableItalic.woff2",
6-
"tests/lorem_ipsum.txt",
6+
"packages/fresh/tests/lorem_ipsum.txt",
77
]
88

99
[default]

deno.json

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,11 @@
11
{
22
"nodeModulesDir": "auto",
33
"workspace": [
4-
"./examples",
5-
"./init",
6-
"./plugin-tailwindcss",
7-
"./plugin-tailwindcss-v3",
8-
"./update",
4+
"./packages/*",
95
"./www"
106
],
11-
"name": "@fresh/core",
12-
"version": "2.0.0-alpha.46",
13-
"license": "MIT",
14-
"exports": {
15-
".": "./src/mod.ts",
16-
"./runtime": "./src/runtime/shared.ts",
17-
"./dev": "./src/dev/mod.ts",
18-
"./compat": "./src/compat.ts",
19-
"./do-not-use": "./src/internals.ts"
20-
},
217
"tasks": {
228
"test": "deno test -A --parallel",
23-
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
249
"www": "deno task --cwd=www start",
2510
"build-www": "deno task --cwd=www build",
2611
"screenshot": "deno run -A www/utils/screenshot.ts",
@@ -30,7 +15,14 @@
3015
"test:www": "deno test -A www/main_test.*",
3116
"release": "deno run -A tools/release.ts"
3217
},
33-
"exclude": ["**/_fresh/*", "**/tmp/*", "*/tests_OLD/**"],
18+
"exclude": [
19+
"**/_fresh/*",
20+
"**/tmp/*",
21+
"*/tests_OLD/**",
22+
"**/vite.config.ts.*",
23+
"*/vite.config.ts.*",
24+
"vite.config.ts.*"
25+
],
3426
"publish": {
3527
"include": [
3628
"src/**",
@@ -45,16 +37,18 @@
4537
},
4638
"imports": {
4739
"@deno/doc": "jsr:@deno/doc@^0.172.0",
48-
"@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.1.1",
40+
"@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.1.5",
41+
"@fresh/build-id": "jsr:@fresh/build-id@^1.0.0",
4942
"@std/cli": "jsr:@std/cli@^1.0.19",
5043
"@std/collections": "jsr:@std/collections@^1.1.2",
5144
"@std/http": "jsr:@std/http@^1.0.15",
5245
"@std/uuid": "jsr:@std/uuid@^1.0.7",
5346
"docsearch": "https://esm.sh/@docsearch/js@3.5.2?target=es2020",
54-
"esbuild": "npm:esbuild@^0.25.8",
55-
"esbuild-wasm": "npm:esbuild-wasm@^0.25.8",
47+
"esbuild": "npm:esbuild@0.25.7",
48+
"esbuild-wasm": "npm:esbuild-wasm@0.25.7",
5649
"fresh": "jsr:@fresh/core@^2.0.0-alpha.37",
57-
"preact": "npm:preact@^10.26.9",
50+
"mime-db": "npm:mime-db@^1.54.0",
51+
"preact": "npm:preact@^10.27.0",
5852
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
5953
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
6054
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",

0 commit comments

Comments
 (0)