chore: restructure repository into packages/ folder (#3197)

We're having a growing number of packages in this repository. This PR
moves them into a `packages/` directory like it's commonly done in other
projects.
This commit is contained in:
Marvin Hagemeister
2025-08-06 15:52:45 +02:00
committed by GitHub
parent 27e407a1e3
commit 815b1940e3
184 changed files with 94 additions and 82 deletions
+1 -1
View File
@@ -28,5 +28,5 @@ jobs:
- name: Upload version file to dl.deno.land - name: Upload version file to dl.deno.land
run: | run: |
cat versions.json | jq -r ".[0]" > release-latest.txt cat packages/fresh/deno.json | jq -r ".version" > release-latest.txt
gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt gsutil -h "Cache-Control: no-cache" cp release-latest.txt gs://dl.deno.land/fresh/release-latest.txt
+1 -29
View File
@@ -23,33 +23,5 @@ jobs:
with: with:
cache: true cache: true
- name: Publish Fresh - name: Publish
run: deno publish
- name: Publish @fresh/build-id
working-directory: ./build-id
run: deno publish
- name: Publish @fresh/init
working-directory: ./init
run: deno publish
- name: Publish @fresh/plugin-tailwindcss
working-directory: ./plugin-tailwindcss
run: deno publish
- name: Publish @fresh/plugin-tailwindcss-v3
working-directory: ./plugin-tailwindcss-v3
run: deno publish
- name: Publish @fresh/update
working-directory: ./update
run: deno publish
- name: Publish @fresh/plugin-vite
working-directory: ./plugin-vite
run: deno publish
- name: Publish @fresh/examples
working-directory: ./examples
run: deno publish run: deno publish
+2 -2
View File
@@ -1,9 +1,9 @@
[files] [files]
extend-exclude = [ extend-exclude = [
"tests/fixture_partials/routes/scroll_restoration/index.tsx", "packages/fresh/tests/fixture_partials/routes/scroll_restoration/index.tsx",
"www/static/fonts/FixelVariable.woff2", "www/static/fonts/FixelVariable.woff2",
"www/static/fonts/FixelVariableItalic.woff2", "www/static/fonts/FixelVariableItalic.woff2",
"tests/lorem_ipsum.txt", "packages/fresh/tests/lorem_ipsum.txt",
] ]
[default] [default]
+1 -20
View File
@@ -1,30 +1,11 @@
{ {
"nodeModulesDir": "auto", "nodeModulesDir": "auto",
"workspace": [ "workspace": [
"./build-id", "./packages/*",
"./examples",
"./init",
"./plugin-tailwindcss",
"./plugin-tailwindcss-v3",
"./plugin-vite",
"./update",
"./www" "./www"
], ],
"name": "@fresh/core",
"version": "2.0.0-alpha.56",
"license": "MIT",
"exports": {
".": "./src/mod.ts",
"./runtime": "./src/runtime/shared.ts",
"./runtime-client": "./src/runtime/client/mod.tsx",
"./dev": "./src/dev/mod.ts",
"./compat": "./src/compat.ts",
"./internal": "./src/internals.ts",
"./internal-dev": "./src/internals_dev.ts"
},
"tasks": { "tasks": {
"test": "deno test -A --parallel", "test": "deno test -A --parallel",
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts",
"www": "deno task --cwd=www start", "www": "deno task --cwd=www start",
"build-www": "deno task --cwd=www build", "build-www": "deno task --cwd=www build",
"screenshot": "deno run -A www/utils/screenshot.ts", "screenshot": "deno run -A www/utils/screenshot.ts",
Generated
+16 -3
View File
@@ -10,6 +10,7 @@
"jsr:@deno/graph@~0.82.3": "0.82.3", "jsr:@deno/graph@~0.82.3": "0.82.3",
"jsr:@deno/loader@~0.3.2": "0.3.3", "jsr:@deno/loader@~0.3.2": "0.3.3",
"jsr:@deno/loader@~0.3.3": "0.3.3", "jsr:@deno/loader@~0.3.3": "0.3.3",
"jsr:@fresh/build-id@1": "1.0.0",
"jsr:@fresh/core@^2.0.0-alpha.37": "2.0.0-alpha.54", "jsr:@fresh/core@^2.0.0-alpha.37": "2.0.0-alpha.54",
"jsr:@marvinh-test/fresh-island@^0.0.1": "0.0.1", "jsr:@marvinh-test/fresh-island@^0.0.1": "0.0.1",
"jsr:@std/assert@^1.0.13": "1.0.13", "jsr:@std/assert@^1.0.13": "1.0.13",
@@ -89,6 +90,7 @@
"npm:tailwindcss@^4.1.10": "4.1.11", "npm:tailwindcss@^4.1.10": "4.1.11",
"npm:ts-morph@26": "26.0.0", "npm:ts-morph@26": "26.0.0",
"npm:vite-plugin-inspect@^11.3.2": "11.3.2_vite@7.0.6__@types+node@24.1.0__picomatch@4.0.3_@types+node@24.1.0_@types+node@22.15.15", "npm:vite-plugin-inspect@^11.3.2": "11.3.2_vite@7.0.6__@types+node@24.1.0__picomatch@4.0.3_@types+node@24.1.0_@types+node@22.15.15",
"npm:vite@*": "7.0.6_@types+node@24.1.0_picomatch@4.0.3_@types+node@22.15.15",
"npm:vite@^7.0.6": "7.0.6_@types+node@24.1.0_picomatch@4.0.3_@types+node@22.15.15" "npm:vite@^7.0.6": "7.0.6_@types+node@24.1.0_picomatch@4.0.3_@types+node@22.15.15"
}, },
"jsr": { "jsr": {
@@ -143,6 +145,12 @@
"@deno/loader@0.3.3": { "@deno/loader@0.3.3": {
"integrity": "983a2b3694e0acecadd6825531ec9dd8b2f92ea0ef0db45c221dda4c81aa5925" "integrity": "983a2b3694e0acecadd6825531ec9dd8b2f92ea0ef0db45c221dda4c81aa5925"
}, },
"@fresh/build-id@1.0.0": {
"integrity": "c42a1dab0b0b8bcddf93657edf03f404d537ba8e1d44144b3c749727c5671d5a",
"dependencies": [
"jsr:@std/encoding@^1.0.10"
]
},
"@fresh/core@2.0.0-alpha.54": { "@fresh/core@2.0.0-alpha.54": {
"integrity": "599c79bb291a473e0eebe2256ee6fbaab89ddc2edf5da4e7cf9a6c19ebc34969", "integrity": "599c79bb291a473e0eebe2256ee6fbaab89ddc2edf5da4e7cf9a6c19ebc34969",
"dependencies": [ "dependencies": [
@@ -2955,12 +2963,17 @@
"npm:ts-morph@26" "npm:ts-morph@26"
], ],
"members": { "members": {
"build-id": { "packages/build-id": {
"dependencies": [ "dependencies": [
"jsr:@std/encoding@^1.0.10" "jsr:@std/encoding@^1.0.10"
] ]
}, },
"plugin-tailwindcss-v3": { "packages/fresh": {
"dependencies": [
"jsr:@std/fmt@^1.0.8"
]
},
"packages/plugin-tailwindcss-v3": {
"dependencies": [ "dependencies": [
"npm:autoprefixer@^10.4.21", "npm:autoprefixer@^10.4.21",
"npm:cssnano@^6.1.2", "npm:cssnano@^6.1.2",
@@ -2968,7 +2981,7 @@
"npm:tailwindcss@^3.4.17" "npm:tailwindcss@^3.4.17"
] ]
}, },
"plugin-vite": { "packages/plugin-vite": {
"dependencies": [ "dependencies": [
"jsr:@deno/loader@~0.3.2", "jsr:@deno/loader@~0.3.2",
"npm:@prefresh/vite@^2.4.8", "npm:@prefresh/vite@^2.4.8",
+7
View File
@@ -0,0 +1,7 @@
# Fresh
Fresh is a small, fast and extensible full stack web framework built on Web
Standards. It’s designed for building high-quality, performant, and personalized
web applications.
[Learn more about Fresh](https://fresh.deno.dev/)
+17
View File
@@ -0,0 +1,17 @@
{
"name": "@fresh/core",
"version": "2.0.0-alpha.56",
"license": "MIT",
"exports": {
".": "./src/mod.ts",
"./runtime": "./src/runtime/shared.ts",
"./runtime-client": "./src/runtime/client/mod.tsx",
"./dev": "./src/dev/mod.ts",
"./compat": "./src/compat.ts",
"./internal": "./src/internals.ts",
"./internal-dev": "./src/internals_dev.ts"
},
"imports": {
"@std/fmt": "jsr:@std/fmt@^1.0.8"
}
}
@@ -1,10 +1,12 @@
import twDenoJson from "../plugin-tailwindcss/deno.json" with { type: "json" }; import twDenoJson from "../../plugin-tailwindcss/deno.json" with {
type: "json",
};
import * as Marked from "marked"; import * as Marked from "marked";
import { ensureDir, walk } from "@std/fs"; import { ensureDir, walk } from "@std/fs";
import { dirname, join, relative } from "@std/path"; import { dirname, join, relative } from "@std/path";
// import { expect } from "@std/expect/expect"; // import { expect } from "@std/expect/expect";
import { withTmpDir } from "../src/test_utils.ts"; import { withTmpDir } from "../src/test_utils.ts";
import { FRESH_VERSION, PREACT_VERSION } from "../update/src/update.ts"; import { FRESH_VERSION, PREACT_VERSION } from "../../update/src/update.ts";
Deno.test("Docs Code example checks", async () => { Deno.test("Docs Code example checks", async () => {
await using tmp = await withTmpDir(); await using tmp = await withTmpDir();
@@ -63,7 +65,14 @@ Deno.test("Docs Code example checks", async () => {
async function* docsMarkdownFiles() { async function* docsMarkdownFiles() {
// Limit to checking Fresh v2 (canary) docs for now // Limit to checking Fresh v2 (canary) docs for now
const docsDir = join(import.meta.dirname!, "..", "docs", "canary"); const docsDir = join(
import.meta.dirname!,
"..",
"..",
"..",
"docs",
"canary",
);
const docsIter = walk(docsDir, { exts: [".md"], includeDirs: false }); const docsIter = walk(docsDir, { exts: [".md"], includeDirs: false });
for await (const entry of docsIter) { for await (const entry of docsIter) {

Some files were not shown because too many files have changed in this diff Show More