Skip to content

Commit 4a25ac3

Browse files
authored
refactor: make this repo a Deno workspace (#2719)
1 parent f1b6b4c commit 4a25ac3

File tree

13 files changed

+134
-1745
lines changed

13 files changed

+134
-1745
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
uses: actions/checkout@v4
3030

3131
- name: Setup Deno
32-
uses: denoland/setup-deno@v1
32+
uses: denoland/setup-deno@v2
3333
with:
3434
deno-version: ${{ matrix.deno }}
3535

.github/workflows/deploy.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Install Deno
22-
uses: denoland/setup-deno@v1
22+
uses: denoland/setup-deno@v2
2323
with:
2424
deno-version: rc
2525

.github/workflows/publish.yml

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ jobs:
1616
- uses: actions/checkout@v4
1717

1818
- name: Install Deno
19-
uses: denoland/setup-deno@v1
20-
with:
21-
deno-version: rc
19+
uses: denoland/setup-deno@v2
2220

2321
- name: Publish Fresh
2422
run: deno publish

deno.json

+22-28
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
{
2+
"workspace": [
3+
"./examples",
4+
"./init",
5+
"./plugin-tailwindcss",
6+
"./update",
7+
"./www"
8+
],
29
"name": "@fresh/core",
310
"version": "2.0.0-alpha.25",
411
"license": "MIT",
@@ -33,46 +40,30 @@
3340
"exclude": ["**/*_test.*", "src/__OLD/**", "*.todo"]
3441
},
3542
"imports": {
36-
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
37-
"@astral/astral": "jsr:@astral/astral@^0.4.6",
38-
"@fresh/plugin-tailwind": "./plugin-tailwindcss/src/mod.ts",
39-
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.11.0",
40-
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
43+
"fresh": "jsr:@fresh/core@^2.0.0-alpha.22",
44+
"preact": "npm:preact@^10.24.1",
45+
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
4146
"@preact/signals": "npm:@preact/signals@^1.2.3",
42-
"@std/async": "jsr:@std/async@1",
43-
"@std/cli": "jsr:@std/cli@1",
47+
"esbuild": "npm:[email protected]",
48+
"esbuild-wasm": "npm:[email protected]",
49+
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.11.0",
4450
"@std/crypto": "jsr:@std/crypto@1",
4551
"@std/datetime": "jsr:@std/datetime@^0.225.2",
4652
"@std/encoding": "jsr:@std/encoding@1",
47-
"@std/expect": "jsr:@std/expect@1",
4853
"@std/fmt": "jsr:@std/fmt@1",
49-
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
5054
"@std/fs": "jsr:@std/fs@1",
5155
"@std/html": "jsr:@std/html@1",
5256
"@std/jsonc": "jsr:@std/jsonc@1",
5357
"@std/media-types": "jsr:@std/media-types@1",
5458
"@std/path": "jsr:@std/path@1",
5559
"@std/semver": "jsr:@std/semver@1",
5660
"@std/streams": "jsr:@std/streams@1",
57-
"autoprefixer": "npm:[email protected]",
58-
"cssnano": "npm:[email protected]",
59-
"esbuild": "npm:[email protected]",
60-
"esbuild-wasm": "npm:[email protected]",
61-
"fresh": "./src/mod.ts",
62-
"fresh/compat": "./src/compat/mod.ts",
63-
"fresh/dev": "./src/dev/mod.ts",
64-
"fresh/runtime": "./src/runtime/shared.ts",
65-
"github-slugger": "npm:github-slugger@^2.0.0",
61+
62+
"@astral/astral": "jsr:@astral/astral@^0.4.6",
63+
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
6664
"linkedom": "npm:linkedom@^0.16.11",
67-
"marked": "npm:marked@^14.1.2",
68-
"marked-mangle": "npm:marked-mangle@^1.1.9",
69-
"postcss": "npm:[email protected]",
70-
"preact": "npm:preact@^10.24.1",
71-
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
72-
"prismjs": "npm:prismjs@^1.29.0",
73-
"tailwindcss": "npm:tailwindcss@^3.4.1",
74-
"tailwindcss/plugin": "npm:/tailwindcss@^3.4.1/plugin.js",
75-
"ts-morph": "npm:ts-morph@^22.0.0"
65+
"@std/async": "jsr:@std/async@1",
66+
"@std/expect": "jsr:@std/expect@1"
7667
},
7768
"compilerOptions": {
7869
"lib": ["dom", "dom.asynciterable", "deno.ns"],
@@ -81,6 +72,9 @@
8172
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"]
8273
},
8374
"lint": {
84-
"rules": { "exclude": ["no-window"], "include": ["no-console"] }
75+
"rules": {
76+
"exclude": ["no-window"],
77+
"include": ["no-console"]
78+
}
8579
}
8680
}

0 commit comments

Comments
 (0)