Skip to content

Commit a1e9c8b

Browse files
Merge branch 'main' into showcase
2 parents 7490e17 + b6c02b0 commit a1e9c8b

71 files changed

Lines changed: 1362 additions & 822 deletions

Some content is hidden

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

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- name: Setup Deno
3232
uses: denoland/setup-deno@v2
3333
with:
34+
cache: true
3435
deno-version: ${{ matrix.deno }}
3536

3637
- name: Verify formatting

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ on:
33
push:
44
branches: [main]
55
pull_request:
6-
branches: main
6+
branches: [main]
77

88
jobs:
99
deploy:
@@ -21,15 +21,16 @@ jobs:
2121
- name: Install Deno
2222
uses: denoland/setup-deno@v2
2323
with:
24+
cache: true
2425
deno-version: rc
2526

2627
- name: Build step
2728
working-directory: ./www
28-
run: "deno task build" # 📝 Update the build command(s) if necessary
29+
run: "deno task build"
2930

3031
- name: Upload to Deno Deploy
3132
uses: denoland/deployctl@v1
3233
with:
33-
project: "fresh" # 📝 Update the deploy project name if necessary
34-
entrypoint: "./www/main.ts" # 📝 Update the entrypoint if necessary
34+
project: "fresh"
35+
entrypoint: "./www/main.ts"
3536
root: "."

.github/workflows/publish.yml

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

1818
- name: Install Deno
1919
uses: denoland/setup-deno@v2
20+
with:
21+
cache: true
2022

2123
- name: Publish Fresh
2224
run: deno publish

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ vendor/
33
node_modules/
44
.docs/
55
.DS_Store
6-
tmp_*
6+
tmp_*
7+
coverage/

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The [documentation](https://fresh.deno.dev/docs/introduction) is available on
2424

2525
## 🚀 Getting started
2626

27-
Install the latest [Deno CLI](https://deno.land/) version.
27+
Install the latest [Deno CLI](https://deno.com/) version.
2828

2929
You can scaffold a new project by running the Fresh init script. To scaffold a
3030
project run the following:
@@ -54,8 +54,9 @@ To deploy the project to the live internet, you can use
5454

5555
1. Push your project to GitHub.
5656
2. [Create a Deno Deploy project](https://dash.deno.com/new).
57-
3. [Link](https://deno.com/deploy/docs/projects#enabling) the Deno Deploy
58-
project to the **`main.ts`** file in the root of the created repository.
57+
3. [Link](https://docs.deno.com/deploy/manual/#deploy-your-project) the Deno
58+
Deploy project to the **`main.ts`** file in the root of the created
59+
repository.
5960
4. The project will be deployed to a public $project.deno.dev subdomain.
6061

6162
For a more in-depth getting started guide, visit the

deno.json

Lines changed: 33 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"./www"
88
],
99
"name": "@fresh/core",
10-
"version": "2.0.0-alpha.29",
10+
"version": "2.0.0-alpha.34",
1111
"license": "MIT",
1212
"exports": {
1313
".": "./src/mod.ts",
1414
"./runtime": "./src/runtime/shared.ts",
1515
"./dev": "./src/dev/mod.ts",
16-
"./compat": "./src/compat/mod.ts"
16+
"./compat": "./src/compat.ts"
1717
},
1818
"tasks": {
19-
"test": "deno test -A --parallel src/ init/ update/ && deno test -A tests/ www/main_test.ts",
19+
"test": "deno test -A --parallel",
2020
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
2121
"www": "deno task --cwd=www start",
2222
"build-www": "deno task --cwd=www build",
2323
"screenshot": "deno run -A www/utils/screenshot.ts",
24-
"check:types": "deno check src/**/*.ts src/**/*.tsx tests/**/*.ts tests/**/*.tsx update/**/*.ts plugin-tailwindcss/**/*.ts init/**/*.ts",
24+
"check:types": "deno check --allow-import",
2525
"check:docs": "deno run -A tools/check_docs.ts",
2626
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
2727
"test:www": "deno test -A www/main_test.*",
@@ -42,21 +42,22 @@
4242
},
4343
"imports": {
4444
"@deno/doc": "jsr:@deno/doc@^0.172.0",
45+
"@std/cli": "jsr:@std/cli@^1.0.17",
4546
"@std/collections": "jsr:@std/collections@^1.0.11",
4647
"@std/http": "jsr:@std/http@^1.0.15",
47-
"fresh": "jsr:@fresh/core@^2.0.0-alpha.26",
48-
"preact": "npm:preact@^10.25.1",
48+
"fresh": "jsr:@fresh/core@^2.0.0-alpha.29",
49+
"preact": "npm:preact@^10.26.6",
4950
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
5051
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
5152
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.11.0",
5253
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
53-
"@preact/signals": "npm:@preact/signals@^1.2.3",
54-
"esbuild": "npm:esbuild@0.23.1",
55-
"esbuild-wasm": "npm:esbuild-wasm@0.23.1",
54+
"@preact/signals": "npm:@preact/signals@^2.0.4",
55+
"esbuild": "npm:esbuild@0.25.4",
56+
"esbuild-wasm": "npm:esbuild-wasm@0.25.4",
5657
"@std/crypto": "jsr:@std/crypto@1",
5758
"@std/datetime": "jsr:@std/datetime@^0.225.2",
5859
"@std/encoding": "jsr:@std/encoding@1",
59-
"@std/fmt": "jsr:@std/fmt@1",
60+
"@std/fmt": "jsr:@std/fmt@^1.0.7",
6061
"@std/fs": "jsr:@std/fs@1",
6162
"@std/html": "jsr:@std/html@1",
6263
"@std/jsonc": "jsr:@std/jsonc@1",
@@ -67,10 +68,27 @@
6768

6869
"@astral/astral": "jsr:@astral/astral@^0.5.2",
6970
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
70-
"linkedom": "npm:linkedom@^0.16.11",
71-
"@std/async": "jsr:@std/async@1",
72-
"@std/expect": "jsr:@std/expect@1",
73-
"@std/testing": "jsr:@std/testing@1"
71+
"linkedom": "npm:linkedom@^0.18.10",
72+
"@std/async": "jsr:@std/async@^1.0.13",
73+
"@std/expect": "jsr:@std/expect@^1.0.16",
74+
"@std/testing": "jsr:@std/testing@^1.0.12",
75+
76+
"autoprefixer": "npm:autoprefixer@10.4.17",
77+
"cssnano": "npm:cssnano@6.0.3",
78+
"postcss": "npm:postcss@8.4.35",
79+
"tailwindcss": "npm:tailwindcss@^3.4.1",
80+
81+
"ts-morph": "npm:ts-morph@^25.0.1",
82+
83+
"@fresh/plugin-tailwind": "jsr:@fresh/plugin-tailwind@^0.0.1-alpha.7",
84+
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
85+
"fresh/compat": "./src/compat/mod.ts",
86+
"fresh/dev": "./src/dev/mod.ts",
87+
"fresh/runtime": "./src/runtime/shared.ts",
88+
"github-slugger": "npm:github-slugger@^2.0.0",
89+
"marked": "npm:marked@^15.0.11",
90+
"marked-mangle": "npm:marked-mangle@^1.1.9",
91+
"prismjs": "npm:prismjs@^1.29.0"
7492
},
7593
"compilerOptions": {
7694
"lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"],
@@ -80,6 +98,7 @@
8098
},
8199
"lint": {
82100
"rules": {
101+
"tags": ["recommended", "fresh", "jsr", "jsx", "react"],
83102
"exclude": ["no-window"],
84103
"include": ["no-console"]
85104
}

0 commit comments

Comments
 (0)