Skip to content

Commit

Permalink
更新(依赖): deno 1.42.4, 移除 tailwindcss
Browse files Browse the repository at this point in the history
  • Loading branch information
secext2022 committed Apr 22, 2024
1 parent 76a4db1 commit 5367bda
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 89 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,21 @@ jonesianus) 软件
- <https://juejin.cn/post/7343902899095060499>
- <https://blog.csdn.net/secext2022/article/details/136520721>

## 例行更新维护策略

适用于本仓库 (pmim). 当下列条件任意一条满足时, 本仓库的软件需要发布新的维护版本
(版本号 `x.y.z` 其中 `z` + 1). "更新所有依赖" 并重新编译 (构建):

- deno 发布新版本 (版本号 `x.y.z` 其中 `x``y` 变化)

- 各依赖或本仓库发布重要的安全更新 (修复比较严重的安全漏洞)

当前重要依赖的版本号:

- deno 1.42.4

<https://github.com/denoland/deno>

## 相关代码仓库

| 名称 | 说明 | 主要编程语言 (框架/库) | LICENSE |
Expand Down
3 changes: 1 addition & 2 deletions server/.vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"recommendations": [
"denoland.vscode-deno",
"bradlc.vscode-tailwindcss"
"denoland.vscode-deno"
]
}
5 changes: 1 addition & 4 deletions server/.vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,5 @@
},
"[javascript]": {
"editor.defaultFormatter": "denoland.vscode-deno"
},
"css.customData": [
".vscode/tailwind.json"
]
}
}
55 changes: 0 additions & 55 deletions server/.vscode/tailwind.json

This file was deleted.

26 changes: 8 additions & 18 deletions server/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"tailwindcss": "npm:[email protected]",
"tailwindcss/": "npm:/[email protected]/",
"tailwindcss/plugin": "npm:/[email protected]/plugin.js",
"$std/": "https://deno.land/[email protected]/",
"$fresh/": "https://deno.land/x/[email protected]/",
"preact": "https://esm.sh/[email protected]",
"preact/": "https://esm.sh/[email protected]/",
"@preact/signals": "https://esm.sh/*@preact/[email protected]",
"@preact/signals-core": "https://esm.sh/*@preact/[email protected]",
"$std/": "https://deno.land/[email protected]/",
"ulidx": "https://esm.sh/[email protected]"
},
"compilerOptions": {
"jsx": "react-jsx",
"jsxImportSource": "preact"
},

"compilerOptions": { "jsx": "react-jsx", "jsxImportSource": "preact" },
"unstable": ["kv"],
"nodeModulesDir": false
}
3 changes: 1 addition & 2 deletions server/fresh.config.ts
Original file line number Diff line number Diff line change
@@ -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: 获取端口(),
Expand Down
2 changes: 1 addition & 1 deletion server/pmims/conf.ts
Original file line number Diff line number Diff line change
@@ -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";

Expand Down
7 changes: 0 additions & 7 deletions server/tailwind.config.ts

This file was deleted.

0 comments on commit 5367bda

Please sign in to comment.