From 5367bdaec8959525df084d212881f90ad58d9e91 Mon Sep 17 00:00:00 2001 From: secext2022 Date: Tue, 23 Apr 2024 05:33:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0(=E4=BE=9D=E8=B5=96):=20deno?= =?UTF-8?q?=201.42.4,=20=E7=A7=BB=E9=99=A4=20tailwindcss?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 15 ++++++++++ server/.vscode/extensions.json | 3 +- server/.vscode/settings.json | 5 +--- server/.vscode/tailwind.json | 55 ---------------------------------- server/deno.json | 26 +++++----------- server/fresh.config.ts | 3 +- server/pmims/conf.ts | 2 +- server/tailwind.config.ts | 7 ----- 8 files changed, 27 insertions(+), 89 deletions(-) delete mode 100644 server/.vscode/tailwind.json delete mode 100644 server/tailwind.config.ts diff --git a/README.md b/README.md index 71fd41e..3f9cb19 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,21 @@ jonesianus) 软件 - - +## 例行更新维护策略 + +适用于本仓库 (pmim). 当下列条件任意一条满足时, 本仓库的软件需要发布新的维护版本 +(版本号 `x.y.z` 其中 `z` + 1). "更新所有依赖" 并重新编译 (构建): + +- deno 发布新版本 (版本号 `x.y.z` 其中 `x` 或 `y` 变化) + +- 各依赖或本仓库发布重要的安全更新 (修复比较严重的安全漏洞) + +当前重要依赖的版本号: + +- deno 1.42.4 + + + ## 相关代码仓库 | 名称 | 说明 | 主要编程语言 (框架/库) | LICENSE | diff --git a/server/.vscode/extensions.json b/server/.vscode/extensions.json index 455f9fc..09cf720 100644 --- a/server/.vscode/extensions.json +++ b/server/.vscode/extensions.json @@ -1,6 +1,5 @@ { "recommendations": [ - "denoland.vscode-deno", - "bradlc.vscode-tailwindcss" + "denoland.vscode-deno" ] } diff --git a/server/.vscode/settings.json b/server/.vscode/settings.json index bedf1ce..a5f0701 100644 --- a/server/.vscode/settings.json +++ b/server/.vscode/settings.json @@ -13,8 +13,5 @@ }, "[javascript]": { "editor.defaultFormatter": "denoland.vscode-deno" - }, - "css.customData": [ - ".vscode/tailwind.json" - ] + } } diff --git a/server/.vscode/tailwind.json b/server/.vscode/tailwind.json deleted file mode 100644 index 96a1f57..0000000 --- a/server/.vscode/tailwind.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "version": 1.1, - "atDirectives": [ - { - "name": "@tailwind", - "description": "Use the `@tailwind` directive to insert Tailwind's `base`, `components`, `utilities` and `screens` styles into your CSS.", - "references": [ - { - "name": "Tailwind Documentation", - "url": "https://tailwindcss.com/docs/functions-and-directives#tailwind" - } - ] - }, - { - "name": "@apply", - "description": "Use the `@apply` directive to inline any existing utility classes into your own custom CSS. This is useful when you find a common utility pattern in your HTML that you’d like to extract to a new component.", - "references": [ - { - "name": "Tailwind Documentation", - "url": "https://tailwindcss.com/docs/functions-and-directives#apply" - } - ] - }, - { - "name": "@responsive", - "description": "You can generate responsive variants of your own classes by wrapping their definitions in the `@responsive` directive:\n```css\n@responsive {\n .alert {\n background-color: #E53E3E;\n }\n}\n```\n", - "references": [ - { - "name": "Tailwind Documentation", - "url": "https://tailwindcss.com/docs/functions-and-directives#responsive" - } - ] - }, - { - "name": "@screen", - "description": "The `@screen` directive allows you to create media queries that reference your breakpoints by **name** instead of duplicating their values in your own CSS:\n```css\n@screen sm {\n /* ... */\n}\n```\n…gets transformed into this:\n```css\n@media (min-width: 640px) {\n /* ... */\n}\n```\n", - "references": [ - { - "name": "Tailwind Documentation", - "url": "https://tailwindcss.com/docs/functions-and-directives#screen" - } - ] - }, - { - "name": "@variants", - "description": "Generate `hover`, `focus`, `active` and other **variants** of your own utilities by wrapping their definitions in the `@variants` directive:\n```css\n@variants hover, focus {\n .btn-brand {\n background-color: #3182CE;\n }\n}\n```\n", - "references": [ - { - "name": "Tailwind Documentation", - "url": "https://tailwindcss.com/docs/functions-and-directives#variants" - } - ] - } - ] -} diff --git a/server/deno.json b/server/deno.json index 382c5aa..af603a9 100644 --- a/server/deno.json +++ b/server/deno.json @@ -17,28 +17,18 @@ "**/deno_cache_ro/*" ], "lint": { - "rules": { - "tags": ["fresh", "recommended"], - "exclude": ["require-await"] - } + "rules": { "tags": ["fresh", "recommended"], "exclude": ["require-await"] } }, "imports": { - "$fresh/": "https://deno.land/x/fresh@1.6.5/", - "preact": "https://esm.sh/preact@10.19.2", - "preact/": "https://esm.sh/preact@10.19.2/", - "@preact/signals": "https://esm.sh/*@preact/signals@1.2.1", - "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.0", - "tailwindcss": "npm:tailwindcss@3.4.1", - "tailwindcss/": "npm:/tailwindcss@3.4.1/", - "tailwindcss/plugin": "npm:/tailwindcss@3.4.1/plugin.js", - "$std/": "https://deno.land/std@0.220.1/", + "$fresh/": "https://deno.land/x/fresh@1.6.8/", + "preact": "https://esm.sh/preact@10.19.6", + "preact/": "https://esm.sh/preact@10.19.6/", + "@preact/signals": "https://esm.sh/*@preact/signals@1.2.2", + "@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1", + "$std/": "https://deno.land/std@0.223.0/", "ulidx": "https://esm.sh/ulidx@2.3.0" }, - "compilerOptions": { - "jsx": "react-jsx", - "jsxImportSource": "preact" - }, - + "compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" }, "unstable": ["kv"], "nodeModulesDir": false } diff --git a/server/fresh.config.ts b/server/fresh.config.ts index 7b52d54..4ebf778 100644 --- a/server/fresh.config.ts +++ b/server/fresh.config.ts @@ -1,12 +1,11 @@ import { defineConfig } from "$fresh/server.ts"; -import tailwind from "$fresh/plugins/tailwind.ts"; import { 监听地址 } from "./pmims/conf.ts"; import { onListen, 获取端口 } from "./pmims/mod.ts"; export default function getConfig() { return defineConfig({ - plugins: [tailwind()], + plugins: [], server: { port: 获取端口(), diff --git a/server/pmims/conf.ts b/server/pmims/conf.ts index 7f6b54d..91386cb 100644 --- a/server/pmims/conf.ts +++ b/server/pmims/conf.ts @@ -1,5 +1,5 @@ // 程序版本号 -export const P_VERSION = "pmim-server v0.1.4"; +export const P_VERSION = "pmim-server v0.1.5"; // 日志前缀 export const P_LOG = "pmims"; diff --git a/server/tailwind.config.ts b/server/tailwind.config.ts deleted file mode 100644 index 99dba8f..0000000 --- a/server/tailwind.config.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { type Config } from "tailwindcss"; - -export default { - content: [ - "{routes,islands,components}/**/*.{ts,tsx}", - ], -} satisfies Config;