update /www and tailwind-plugin to support tailwind v4. Thanks to the merge of #3034, the work of integrating and advancing #2903 is promoted. related #3034 related #2903 close #3056 close #2819 --patch-1 based on review, 1. del compiler and make it more clean and simple, 2. fix init tailwind part, 3. fix test tailwind part --patch-2 1. fix the docs 2. fix the docs of plugin and version --patch-3 1. Addressed various maintenance tasks (chores) 2. Updated the Tailwind CSS plugin to align with this release. Generated a fresh project using the updated init configuration and 3. deployed it via Deno Deploy EA. Deployment is functioning correctly. --patch-4 Move postcss imports to Tailwind section in init script --patch-5 Refactored Tailwind plugin type definitions by copying PluginOptions properties from @tailwindcss/postcss and adding Fresh-specific exclude option, while exporting types from package entrypoint for better accessibility. Test Project: https://fresh.fresh-press.deno.net/ Test Project Repository: https://github.com/SisyphusZheng/fresh-tailwindv4 Test Plugin: https://jsr.io/@freshpress/fresh-plugin-tailwind@1.0.0 --------- Co-authored-by: 李嘉图·M·路 <146103794+Ricardo-M-Zheng@users.noreply.github.com> Co-authored-by: Asher Gomez <ashersaupingomez@gmail.com> Co-authored-by: Marvin Hagemeister <marvin@deno.com>
108 lines
3.6 KiB
JSON
108 lines
3.6 KiB
JSON
{
|
|
"nodeModulesDir": "auto",
|
|
"workspace": [
|
|
"./examples",
|
|
"./init",
|
|
"./plugin-tailwindcss",
|
|
"./update",
|
|
"./www"
|
|
],
|
|
"name": "@fresh/core",
|
|
"version": "2.0.0-alpha.43",
|
|
"license": "MIT",
|
|
"exports": {
|
|
".": "./src/mod.ts",
|
|
"./runtime": "./src/runtime/shared.ts",
|
|
"./dev": "./src/dev/mod.ts",
|
|
"./compat": "./src/compat.ts"
|
|
},
|
|
"tasks": {
|
|
"test": "deno test -A --parallel",
|
|
"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 --allow-import",
|
|
"check:docs": "deno run -A tools/check_docs.ts",
|
|
"ok": "deno fmt --check && deno lint && deno task check:types && deno task test",
|
|
"test:www": "deno test -A www/main_test.*",
|
|
"release": "deno run -A tools/release.ts"
|
|
},
|
|
"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": {
|
|
"@deno/doc": "jsr:@deno/doc@^0.172.0",
|
|
"@deno/esbuild-plugin": "jsr:@deno/esbuild-plugin@^1.1.1",
|
|
"@std/cli": "jsr:@std/cli@^1.0.19",
|
|
"@std/collections": "jsr:@std/collections@^1.0.11",
|
|
"@std/http": "jsr:@std/http@^1.0.15",
|
|
"@std/uuid": "jsr:@std/uuid@^1.0.7",
|
|
"esbuild": "npm:esbuild@^0.25.5",
|
|
"esbuild-wasm": "npm:esbuild-wasm@^0.25.5",
|
|
"fresh": "jsr:@fresh/core@^2.0.0-alpha.37",
|
|
"preact": "npm:preact@^10.26.9",
|
|
"preact-render-to-string": "npm:preact-render-to-string@^6.5.11",
|
|
"$ga4": "https://raw.githubusercontent.com/denoland/ga4/main/mod.ts",
|
|
"@opentelemetry/api": "npm:@opentelemetry/api@^1.9.0",
|
|
"@preact/signals": "npm:@preact/signals@^2.2.1",
|
|
"@std/crypto": "jsr:@std/crypto@1",
|
|
"@std/datetime": "jsr:@std/datetime@^0.225.2",
|
|
"@std/encoding": "jsr:@std/encoding@1",
|
|
"@std/fmt": "jsr:@std/fmt@^1.0.7",
|
|
"@std/fs": "jsr:@std/fs@1",
|
|
"@std/html": "jsr:@std/html@1",
|
|
"@std/jsonc": "jsr:@std/jsonc@1",
|
|
"@std/media-types": "jsr:@std/media-types@1",
|
|
"@std/path": "jsr:@std/path@1",
|
|
"@std/semver": "jsr:@std/semver@1",
|
|
"@std/streams": "jsr:@std/streams@1",
|
|
|
|
"@astral/astral": "jsr:@astral/astral@^0.5.3",
|
|
"@marvinh-test/fresh-island": "jsr:@marvinh-test/fresh-island@^0.0.1",
|
|
"linkedom": "npm:linkedom@^0.18.10",
|
|
"@std/async": "jsr:@std/async@^1.0.13",
|
|
"@std/expect": "jsr:@std/expect@^1.0.16",
|
|
"@std/testing": "jsr:@std/testing@^1.0.12",
|
|
|
|
"@tailwindcss/postcss": "npm:@tailwindcss/postcss@^4.1.10",
|
|
"tailwindcss": "npm:tailwindcss@^4.1.10",
|
|
"postcss": "npm:postcss@8.5.6",
|
|
|
|
"ts-morph": "npm:ts-morph@^25.0.1",
|
|
|
|
"@std/front-matter": "jsr:@std/front-matter@^1.0.5",
|
|
"github-slugger": "npm:github-slugger@^2.0.0",
|
|
"imagescript": "https://deno.land/x/imagescript@1.3.0/mod.ts",
|
|
"marked": "npm:marked@^15.0.11",
|
|
"marked-mangle": "npm:marked-mangle@^1.1.9",
|
|
"prismjs": "npm:prismjs@^1.29.0"
|
|
},
|
|
"compilerOptions": {
|
|
"lib": ["dom", "dom.asynciterable", "deno.ns", "deno.unstable"],
|
|
"jsx": "precompile",
|
|
"jsxImportSource": "preact",
|
|
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"]
|
|
},
|
|
"lint": {
|
|
"rules": {
|
|
"tags": ["recommended", "fresh", "jsr", "jsx", "react"],
|
|
"exclude": ["no-window"],
|
|
"include": ["no-console"]
|
|
}
|
|
},
|
|
"fmt": {
|
|
"exclude": ["./www/static/**/*.svg"]
|
|
}
|
|
}
|