-
Notifications
You must be signed in to change notification settings - Fork 667
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
major: import Fresh 2.0 code (#2449)
🎉
- Loading branch information
1 parent
9903576
commit 287929e
Showing
958 changed files
with
15,790 additions
and
28,283 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,20 +44,7 @@ jobs: | |
- name: Spell-check | ||
if: startsWith(matrix.os, 'ubuntu') && matrix.deno == 'v1.x' | ||
uses: crate-ci/typos@master | ||
|
||
- name: Cache dependencies and Chrome | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
${{ matrix.cache_path }}deps | ||
${{ matrix.cache_path }}deno_puppeteer | ||
key: ${{ runner.os }}-${{ hashFiles('**/*deps.ts', 'tests/fixture_twind_hydrate/twind.config.ts') }} | ||
|
||
- name: Install Chromium | ||
run: deno run -A --unstable https://deno.land/x/[email protected]/install.ts | ||
env: | ||
PUPPETEER_PRODUCT: chrome | ||
|
||
|
||
- name: Type check project | ||
run: deno task check:types | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish JSR | ||
|
||
on: | ||
push: | ||
branches: | ||
- fresh-2.0-merge | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
id-token: write | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install Deno | ||
uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
|
||
- name: Publish Fresh | ||
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/update | ||
working-directory: ./update | ||
run: deno publish |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ _fresh/ | |
tmp/ | ||
vendor/ | ||
node_modules/ | ||
.docs/ | ||
.DS_Store |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,83 @@ | ||
{ | ||
"name": "@fresh/core", | ||
"version": "2.0.0-alpha.9", | ||
"exports": { | ||
".": "./src/mod.ts", | ||
"./runtime": "./src/runtime/shared.ts", | ||
"./client": "./src/runtime/client/mod.tsx", | ||
"./client-dev": "./src/runtime/client/dev.ts", | ||
"./dev": "./src/dev/mod.ts" | ||
}, | ||
"lock": false, | ||
"tasks": { | ||
"test": "deno test -A --parallel --trace-ops", | ||
"test": "deno test -A --parallel src/ init/ update/ && deno test -A tests/ www/main_test.ts", | ||
"fixture": "deno run -A --watch=static/,routes/ tests/fixture/dev.ts", | ||
"www": "deno task --cwd=www start", | ||
"build-www": "deno task --cwd=www build", | ||
"screenshot": "deno run -A www/utils/screenshot.ts", | ||
"check:types": "deno check **/*.ts && deno check **/*.tsx", | ||
"check:types": "deno check src/**/*.ts src/**/*.tsx tests/**/*.ts tests/**/*.tsx", | ||
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test", | ||
"install-puppeteer": "PUPPETEER_PRODUCT=chrome deno run -A --unstable https://deno.land/x/[email protected]/install.ts && PUPPETEER_PRODUCT=firefox deno run -A --unstable https://deno.land/x/[email protected]/install.ts", | ||
"test:www": "deno test -A tests/www/", | ||
"manifests": "deno run -A genAllManifest.ts" | ||
}, | ||
"exclude": [ | ||
"**/_fresh/*", | ||
"**/tmp/*" | ||
], | ||
"importMap": "./.vscode/import_map.json", | ||
"exclude": ["**/_fresh/*", "**/tmp/*", "*/tests_OLD/**"], | ||
"publish": { | ||
"include": [ | ||
"src/**", | ||
"deno.json", | ||
"README.md", | ||
"LICENSE", | ||
"www/static/fresh-badge.svg", | ||
"www/static/fresh-badge-dark.svg", | ||
"*.todo" | ||
], | ||
"exclude": ["**/*_test.*", "src/__OLD/**", "*.todo"] | ||
}, | ||
"imports": { | ||
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts", | ||
"$marked-mangle": "https://esm.sh/[email protected]", | ||
"$std/": "https://deno.land/[email protected]/", | ||
"@astral/astral": "jsr:@astral/astral@^0.4.0", | ||
"@fresh/core": "./src/mod.ts", | ||
"@fresh/core/client": "./src/runtime/client/mod.tsx", | ||
"@fresh/core/client-dev": "./src/runtime/client/dev.ts", | ||
"@fresh/core/dev": "./src/dev/mod.ts", | ||
"@fresh/core/runtime": "./src/runtime/shared.ts", | ||
"@fresh/plugin-tailwind": "./plugin-tailwindcss/src/mod.ts", | ||
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.10.3", | ||
"@preact/signals": "npm:@preact/signals@^1.2.3", | ||
"@std/async": "jsr:@std/async@^0.224.1", | ||
"@std/cli": "jsr:@std/cli@^0.221.0", | ||
"@std/crypto": "jsr:@std/crypto@^0.221.0", | ||
"@std/datetime": "jsr:@std/datetime@^0.224.0", | ||
"@std/encoding": "jsr:@std/encoding@^0.221.0", | ||
"@std/expect": "jsr:@std/expect@^0.224.0", | ||
"@std/fmt": "jsr:@std/fmt@^0.224.0", | ||
"@std/fs": "jsr:@std/fs@^0.221.0", | ||
"@std/html": "jsr:@std/html@^0.224.0", | ||
"@std/jsonc": "jsr:@std/jsonc@^0.221.0", | ||
"@std/media-types": "jsr:@std/media-types@^0.221.0", | ||
"@std/path": "jsr:@std/path@^0.221.0", | ||
"@std/semver": "jsr:@std/semver@^0.223.0", | ||
"@std/streams": "jsr:@std/streams@^0.221.0", | ||
"autoprefixer": "npm:[email protected]", | ||
"cssnano": "npm:[email protected]", | ||
"esbuild": "npm:[email protected]", | ||
"esbuild-wasm": "npm:[email protected]", | ||
"linkedom": "npm:linkedom@^0.16.11", | ||
"postcss": "npm:[email protected]", | ||
"preact": "npm:preact@^10.22.0", | ||
"preact-render-to-string": "npm:preact-render-to-string@^6.4.2", | ||
"tailwindcss": "npm:tailwindcss@^3.4.1", | ||
"tailwindcss/plugin": "npm:/tailwindcss@^3.4.1/plugin.js", | ||
"ts-morph": "npm:ts-morph@^22.0.0", | ||
"twind": "https://esm.sh/[email protected]", | ||
"twind/": "https://esm.sh/[email protected]/" | ||
}, | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"jsxImportSource": "preact" | ||
"jsx": "precompile", | ||
"jsxImportSource": "preact", | ||
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"] | ||
}, | ||
"lint": { | ||
"rules": { "exclude": ["no-window"] } | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.