Skip to content

Commit 47dc109

Browse files
committed
Merge branch 'main' of https://github.com/denoland/fresh
2 parents 13a5e0b + 3900aa7 commit 47dc109

102 files changed

Lines changed: 2926 additions & 1298 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.

.github/CONTRIBUTING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Contributing Guidelines
2+
3+
## Submitting a pull request
4+
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.

.github/workflows/ci.yml

Lines changed: 4 additions & 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
@@ -50,3 +51,6 @@ jobs:
5051

5152
- name: Run tests
5253
run: deno task test
54+
55+
- name: Check docs
56+
run: deno task check:docs

.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 & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
_fresh/
2-
tmp/
32
vendor/
43
node_modules/
54
.docs/
65
.DS_Store
7-
tmp-*
6+
tmp_*
7+
coverage/

README.md

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

3030
## 🚀 Getting started
3131

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

3434
You can scaffold a new project by running the Fresh init script. To scaffold a
3535
project run the following:
@@ -59,8 +59,9 @@ To deploy the project to the live internet, you can use
5959

6060
1. Push your project to GitHub.
6161
2. [Create a Deno Deploy project](https://dash.deno.com/new).
62-
3. [Link](https://deno.com/deploy/docs/projects#enabling) the Deno Deploy
63-
project to the **`main.ts`** file in the root of the created repository.
62+
3. [Link](https://docs.deno.com/deploy/manual/#deploy-your-project) the Deno
63+
Deploy project to the **`main.ts`** file in the root of the created
64+
repository.
6465
4. The project will be deployed to a public $project.deno.dev subdomain.
6566

6667
For a more in-depth getting started guide, visit the
@@ -70,7 +71,7 @@ docs.
7071
## Contributing
7172

7273
We appreciate your help! To contribute, please read our
73-
[contributing instructions](https://deno.com/manual/references/contributing#submitting-a-pr-to-fresh).
74+
[contributing guideline](./.github/CONTRIBUTING.md).
7475

7576
## Adding your project to the showcase
7677

deno.json

Lines changed: 85 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,90 +1,88 @@
11
{
2-
"workspace": [
3-
"./examples",
4-
"./init",
5-
"./plugin-tailwindcss",
6-
"./update",
7-
"./www"
8-
],
9-
"name": "@unabbreviated-fresh/core",
10-
"version": "2.0.0-alpha.29",
11-
"license": "MIT",
12-
"exports": {
13-
".": "./src/mod.ts",
14-
"./runtime": "./src/runtime/shared.ts",
15-
"./dev": "./src/dev/mod.ts",
16-
"./compat": "./src/compat/mod.ts"
17-
},
18-
"tasks": {
19-
"test": "deno test -A --parallel src/ init/ update/ && deno test -A tests/ www/main_test.ts",
20-
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
21-
"www": "deno task --cwd=www start",
22-
"build-www": "deno task --cwd=www build",
23-
"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",
25-
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
26-
"test:www": "deno test -A www/main_test.*",
27-
"release": "deno run -A tools/release.ts"
28-
},
29-
"exclude": ["**/_fresh/*", "**/tmp/*", "*/tests_OLD/**"],
30-
"publish": {
31-
"include": [
32-
"src/**",
33-
"deno.json",
34-
"README.md",
35-
"LICENSE",
36-
"www/static/fresh-badge.svg",
37-
"www/static/fresh-badge-dark.svg",
38-
"*.todo"
39-
],
40-
"exclude": ["**/*_test.*", "src/__OLD/**", "*.todo"]
41-
},
42-
"imports": {
43-
"fresh": "jsr:@unabbreviated-fresh/core@^2.0.0-alpha.26",
44-
"preact": "npm:preact@^10.25.1",
45-
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
46-
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
47-
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.11.0",
48-
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
49-
"@preact/signals": "npm:@preact/signals@^1.2.3",
50-
"esbuild": "npm:esbuild@0.23.1",
51-
"esbuild-wasm": "npm:esbuild-wasm@0.23.1",
52-
"@std/crypto": "jsr:@std/crypto@1",
53-
"@std/datetime": "jsr:@std/datetime@^0.225.2",
54-
"@std/encoding": "jsr:@std/encoding@1",
55-
"@std/fmt": "jsr:@std/fmt@1",
56-
"@std/fs": "jsr:@std/fs@1",
57-
"@std/html": "jsr:@std/html@1",
58-
"@std/jsonc": "jsr:@std/jsonc@1",
59-
"@std/media-types": "jsr:@std/media-types@1",
60-
"@std/path": "jsr:@std/path@1",
61-
"@std/semver": "jsr:@std/semver@1",
62-
"@std/streams": "jsr:@std/streams@1",
2+
"workspace": [
3+
"./examples",
4+
"./init",
5+
"./plugin-tailwindcss",
6+
"./update",
7+
"./www"
8+
],
9+
"name": "@unabbreviated-fresh/core",
10+
"version": "2.0.0-alpha.34",
11+
"license": "MIT",
12+
"exports": {
13+
".": "./src/mod.ts",
14+
"./runtime": "./src/runtime/shared.ts",
15+
"./dev": "./src/dev/mod.ts",
16+
"./compat": "./src/compat/mod.ts"
17+
},
18+
"tasks": {
19+
"test": "deno test -A --parallel",
20+
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
21+
"www": "deno task --cwd=www start",
22+
"build-www": "deno task --cwd=www build",
23+
"screenshot": "deno run -A www/utils/screenshot.ts",
24+
"check:types": "deno check --allow-import",
25+
"check:docs": "deno run -A tools/check_docs.ts",
26+
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
27+
"test:www": "deno test -A www/main_test.*",
28+
"release": "deno run -A tools/release.ts"
29+
},
30+
"exclude": ["**/_fresh/*", "**/tmp/*", "*/tests_OLD/**"],
31+
"publish": {
32+
"include": [
33+
"src/**",
34+
"deno.json",
35+
"README.md",
36+
"LICENSE",
37+
"www/static/fresh-badge.svg",
38+
"www/static/fresh-badge-dark.svg",
39+
"*.todo"
40+
],
41+
"exclude": ["**/*_test.*", "src/__OLD/**", "*.todo"]
42+
},
43+
"imports": {
44+
"@deno/doc": "jsr:@deno/doc@^0.172.0",
45+
"@std/collections": "jsr:@std/collections@^1.0.11",
46+
"@std/http": "jsr:@std/http@^1.0.15",
47+
"fresh": "jsr:@unabbreviated-fresh/core@^2.0.0-alpha.26",
48+
"preact": "npm:preact@^10.26.6",
49+
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
50+
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
51+
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.11.0",
52+
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
53+
"@preact/signals": "npm:@preact/signals@^2.0.4",
54+
"esbuild": "npm:esbuild@0.23.1",
55+
"esbuild-wasm": "npm:esbuild-wasm@0.23.1",
56+
"@std/crypto": "jsr:@std/crypto@1",
57+
"@std/datetime": "jsr:@std/datetime@^0.225.2",
58+
"@std/encoding": "jsr:@std/encoding@1",
59+
"@std/fmt": "jsr:@std/fmt@1",
60+
"@std/fs": "jsr:@std/fs@1",
61+
"@std/html": "jsr:@std/html@1",
62+
"@std/jsonc": "jsr:@std/jsonc@1",
63+
"@std/media-types": "jsr:@std/media-types@1",
64+
"@std/path": "jsr:@std/path@1",
65+
"@std/semver": "jsr:@std/semver@1",
66+
"@std/streams": "jsr:@std/streams@1",
6367

64-
"@astral/astral": "jsr:@astral/astral@^0.4.6",
65-
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
66-
"linkedom": "npm:linkedom@^0.16.11",
67-
"@std/async": "jsr:@std/async@1",
68-
"@std/expect": "jsr:@std/expect@1",
69-
"@std/testing": "jsr:@std/testing@1"
70-
},
71-
"compilerOptions": {
72-
"lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"],
73-
"jsx": "precompile",
74-
"jsxImportSource": "preact",
75-
"jsxPrecompileSkipElements": [
76-
"a",
77-
"img",
78-
"source",
79-
"body",
80-
"html",
81-
"head"
82-
]
83-
},
84-
"lint": {
85-
"rules": {
86-
"exclude": ["no-window"],
87-
"include": ["no-console"]
88-
}
89-
}
68+
"@astral/astral": "jsr:@astral/astral@^0.5.2",
69+
"@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"
74+
},
75+
"compilerOptions": {
76+
"lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"],
77+
"jsx": "precompile",
78+
"jsxImportSource": "preact",
79+
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"]
80+
},
81+
"lint": {
82+
"rules": {
83+
"tags": ["recommended", "fresh", "jsr", "jsx", "react"],
84+
"exclude": ["no-window"],
85+
"include": ["no-console"]
86+
}
87+
}
9088
}

0 commit comments

Comments
 (0)