create-jant 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/template/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/2b35d4d42e3c9f6b5ad5b5579a7b1470c66e69f6b33a31e3f5a0095cc6d18656.sqlite +0 -0
- package/template/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/2b35d4d42e3c9f6b5ad5b5579a7b1470c66e69f6b33a31e3f5a0095cc6d18656.sqlite-shm +0 -0
- package/template/.wrangler/state/v3/d1/miniflare-D1DatabaseObject/2b35d4d42e3c9f6b5ad5b5579a7b1470c66e69f6b33a31e3f5a0095cc6d18656.sqlite-wal +0 -0
- package/template/dist/jant_site/.vite/manifest.json +11 -11
- package/template/dist/jant_site/assets/{bun-sqlite-dialect-BWV3vi5M.js → bun-sqlite-dialect-CNhCOeTr.js} +1 -1
- package/template/dist/jant_site/assets/{index-Ci0xc6Nf.js → index-Bv9H7Ogz.js} +1 -1
- package/template/dist/jant_site/assets/{index-1W2qyrUB.js → index-_6gYRMnO.js} +2 -2
- package/template/dist/jant_site/assets/{node-sqlite-dialect-BIKLSDk7.js → node-sqlite-dialect-DwtGkLDa.js} +1 -1
- package/template/dist/jant_site/assets/{worker-entry-BKg_RCoW.js → worker-entry-CDcVGah9.js} +8 -8
- package/template/dist/jant_site/index.js +1 -1
- package/template/node_modules/.vite/deps/_metadata.json +5 -5
- package/template/node_modules/.vite/deps_jant_site/_metadata.json +37 -37
- package/template/node_modules/.vite/deps_jant_site/unenv_node_inspector.js +3 -3
- package/template/node_modules/.vite/deps_jant_site/unenv_node_inspector_promises.js +3 -3
- package/template/node_modules/.vite/deps_jant_site/unenv_node_readline.js +3 -3
- package/template/node_modules/@jant/core/CHANGELOG.md +6 -0
- package/template/node_modules/@jant/core/dist/tailwind.d.ts +12 -0
- package/template/node_modules/@jant/core/dist/tailwind.d.ts.map +1 -0
- package/template/node_modules/@jant/core/dist/tailwind.js +15 -0
- package/template/node_modules/@jant/core/package.json +5 -2
- package/template/node_modules/@jant/core/src/tailwind.ts +20 -0
- package/template/node_modules/autoprefixer/node_modules/.bin/autoprefixer +5 -1
- package/template/package.json +2 -2
- package/template/src/style.css +1 -1
- package/template/tailwind.config.ts +9 -5
- package/template/vite.config.ts +9 -0
- package/template/node_modules/@jant/core/src/plugin.ts +0 -26
package/dist/index.js
CHANGED
|
@@ -8,7 +8,7 @@ import path from "path";
|
|
|
8
8
|
import { fileURLToPath } from "url";
|
|
9
9
|
var __filename = fileURLToPath(import.meta.url);
|
|
10
10
|
var __dirname = path.dirname(__filename);
|
|
11
|
-
var CORE_VERSION = "0.2.
|
|
11
|
+
var CORE_VERSION = "0.2.10";
|
|
12
12
|
var TEMPLATE_DIR = fs.existsSync(path.resolve(__dirname, "../template")) ? path.resolve(__dirname, "../template") : path.resolve(__dirname, "../../../templates/jant-site");
|
|
13
13
|
function isValidProjectName(name) {
|
|
14
14
|
return /^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/.test(name);
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/bun-sqlite-dialect.mjs": {
|
|
3
|
-
"file": "assets/bun-sqlite-dialect-
|
|
3
|
+
"file": "assets/bun-sqlite-dialect-CNhCOeTr.js",
|
|
4
4
|
"name": "bun-sqlite-dialect",
|
|
5
5
|
"src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/bun-sqlite-dialect.mjs",
|
|
6
6
|
"isDynamicEntry": true,
|
|
7
7
|
"imports": [
|
|
8
|
-
"_worker-entry-
|
|
8
|
+
"_worker-entry-CDcVGah9.js"
|
|
9
9
|
]
|
|
10
10
|
},
|
|
11
11
|
"../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs": {
|
|
12
|
-
"file": "assets/index-
|
|
12
|
+
"file": "assets/index-_6gYRMnO.js",
|
|
13
13
|
"name": "index",
|
|
14
14
|
"src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/index.mjs",
|
|
15
15
|
"isDynamicEntry": true,
|
|
16
16
|
"imports": [
|
|
17
|
-
"_worker-entry-
|
|
17
|
+
"_worker-entry-CDcVGah9.js"
|
|
18
18
|
]
|
|
19
19
|
},
|
|
20
20
|
"../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs": {
|
|
21
|
-
"file": "assets/node-sqlite-dialect-
|
|
21
|
+
"file": "assets/node-sqlite-dialect-DwtGkLDa.js",
|
|
22
22
|
"name": "node-sqlite-dialect",
|
|
23
23
|
"src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/kysely-adapter/node-sqlite-dialect.mjs",
|
|
24
24
|
"isDynamicEntry": true,
|
|
25
25
|
"imports": [
|
|
26
|
-
"_worker-entry-
|
|
26
|
+
"_worker-entry-CDcVGah9.js"
|
|
27
27
|
]
|
|
28
28
|
},
|
|
29
29
|
"../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs": {
|
|
30
|
-
"file": "assets/index-
|
|
30
|
+
"file": "assets/index-Bv9H7Ogz.js",
|
|
31
31
|
"name": "index",
|
|
32
32
|
"src": "../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs",
|
|
33
33
|
"isDynamicEntry": true,
|
|
34
34
|
"imports": [
|
|
35
|
-
"_worker-entry-
|
|
35
|
+
"_worker-entry-CDcVGah9.js"
|
|
36
36
|
]
|
|
37
37
|
},
|
|
38
|
-
"_worker-entry-
|
|
39
|
-
"file": "assets/worker-entry-
|
|
38
|
+
"_worker-entry-CDcVGah9.js": {
|
|
39
|
+
"file": "assets/worker-entry-CDcVGah9.js",
|
|
40
40
|
"name": "worker-entry",
|
|
41
41
|
"dynamicImports": [
|
|
42
42
|
"../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/memory-adapter/index.mjs",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"src": "virtual:cloudflare/worker-entry",
|
|
53
53
|
"isEntry": true,
|
|
54
54
|
"imports": [
|
|
55
|
-
"_worker-entry-
|
|
55
|
+
"_worker-entry-CDcVGah9.js"
|
|
56
56
|
]
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-
|
|
1
|
+
import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-CDcVGah9.js';
|
|
2
2
|
import 'node:events';
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/kysely-adapter/bun-sqlite-dialect.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createAdapterFactory, s as sql, a as createKyselyAdapter } from './worker-entry-
|
|
2
|
-
export { g as getKyselyDatabaseType } from './worker-entry-
|
|
1
|
+
import { c as createAdapterFactory, s as sql, a as createKyselyAdapter } from './worker-entry-CDcVGah9.js';
|
|
2
|
+
export { g as getKyselyDatabaseType } from './worker-entry-CDcVGah9.js';
|
|
3
3
|
import 'node:events';
|
|
4
4
|
|
|
5
5
|
//#region src/adapters/kysely-adapter/kysely-adapter.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-
|
|
1
|
+
import { C as CompiledQuery, D as DefaultQueryCompiler, b as DEFAULT_MIGRATION_TABLE, d as DEFAULT_MIGRATION_LOCK_TABLE, s as sql } from './worker-entry-CDcVGah9.js';
|
|
2
2
|
import 'node:events';
|
|
3
3
|
|
|
4
4
|
//#region src/adapters/kysely-adapter/node-sqlite-dialect.ts
|
package/template/dist/jant_site/assets/{worker-entry-BKg_RCoW.js → worker-entry-CDcVGah9.js}
RENAMED
|
@@ -32932,7 +32932,7 @@ async function getBaseAdapter(options, handleDirectDatabase) {
|
|
|
32932
32932
|
acc[key] = [];
|
|
32933
32933
|
return acc;
|
|
32934
32934
|
}, {});
|
|
32935
|
-
const { memoryAdapter } = await import('./index-
|
|
32935
|
+
const { memoryAdapter } = await import('./index-Bv9H7Ogz.js');
|
|
32936
32936
|
adapter = memoryAdapter(memoryDB)(options);
|
|
32937
32937
|
} else if (typeof options.database === "function") adapter = options.database(options);
|
|
32938
32938
|
else adapter = await handleDirectDatabase(options);
|
|
@@ -32948,10 +32948,10 @@ async function getBaseAdapter(options, handleDirectDatabase) {
|
|
|
32948
32948
|
//#region src/db/adapter-kysely.ts
|
|
32949
32949
|
async function getAdapter(options) {
|
|
32950
32950
|
return getBaseAdapter(options, async (opts) => {
|
|
32951
|
-
const { createKyselyAdapter } = await import('./index-
|
|
32951
|
+
const { createKyselyAdapter } = await import('./index-_6gYRMnO.js');
|
|
32952
32952
|
const { kysely, databaseType, transaction } = await createKyselyAdapter(opts);
|
|
32953
32953
|
if (!kysely) throw new BetterAuthError("Failed to initialize database adapter");
|
|
32954
|
-
const { kyselyAdapter } = await import('./index-
|
|
32954
|
+
const { kyselyAdapter } = await import('./index-_6gYRMnO.js');
|
|
32955
32955
|
return kyselyAdapter(kysely, {
|
|
32956
32956
|
type: databaseType || "sqlite",
|
|
32957
32957
|
debugLogs: opts.database && "debugLogs" in opts.database ? opts.database.debugLogs : false,
|
|
@@ -50834,7 +50834,7 @@ const createKyselyAdapter = async (config) => {
|
|
|
50834
50834
|
if ("getConnection" in db) dialect = new MysqlDialect(db);
|
|
50835
50835
|
if ("connect" in db) dialect = new PostgresDialect({ pool: db });
|
|
50836
50836
|
if ("fileControl" in db) {
|
|
50837
|
-
const { BunSqliteDialect } = await import('./bun-sqlite-dialect-
|
|
50837
|
+
const { BunSqliteDialect } = await import('./bun-sqlite-dialect-CNhCOeTr.js');
|
|
50838
50838
|
dialect = new BunSqliteDialect({ database: db });
|
|
50839
50839
|
}
|
|
50840
50840
|
if ("createSession" in db) {
|
|
@@ -50850,7 +50850,7 @@ const createKyselyAdapter = async (config) => {
|
|
|
50850
50850
|
if (error !== null && typeof error === "object" && "code" in error && error.code !== "ERR_UNKNOWN_BUILTIN_MODULE") throw error;
|
|
50851
50851
|
}
|
|
50852
50852
|
if (DatabaseSync && db instanceof DatabaseSync) {
|
|
50853
|
-
const { NodeSqliteDialect } = await import('./node-sqlite-dialect-
|
|
50853
|
+
const { NodeSqliteDialect } = await import('./node-sqlite-dialect-DwtGkLDa.js');
|
|
50854
50854
|
dialect = new NodeSqliteDialect({ database: db });
|
|
50855
50855
|
}
|
|
50856
50856
|
}
|
|
@@ -60600,16 +60600,16 @@ const __vite_import_meta_env__ = {};
|
|
|
60600
60600
|
var loadManifest = () => {
|
|
60601
60601
|
const MANIFEST = { "__manifest__": { default: {
|
|
60602
60602
|
"src/client.ts": {
|
|
60603
|
-
"file": "assets/client-
|
|
60603
|
+
"file": "assets/client-ByDf8JXf.js",
|
|
60604
60604
|
"name": "client",
|
|
60605
60605
|
"src": "src/client.ts",
|
|
60606
60606
|
"isEntry": true,
|
|
60607
60607
|
"css": [
|
|
60608
|
-
"assets/style-
|
|
60608
|
+
"assets/style-CupSZl4A.css"
|
|
60609
60609
|
]
|
|
60610
60610
|
},
|
|
60611
60611
|
"src/style.css": {
|
|
60612
|
-
"file": "assets/style-
|
|
60612
|
+
"file": "assets/style-CupSZl4A.css",
|
|
60613
60613
|
"src": "src/style.css",
|
|
60614
60614
|
"isEntry": true,
|
|
60615
60615
|
"name": "style",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { w as default } from './assets/worker-entry-
|
|
1
|
+
export { w as default } from './assets/worker-entry-CDcVGah9.js';
|
|
2
2
|
import 'node:events';
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hash": "
|
|
2
|
+
"hash": "cb27f538",
|
|
3
3
|
"configHash": "6a80e0af",
|
|
4
|
-
"lockfileHash": "
|
|
5
|
-
"browserHash": "
|
|
4
|
+
"lockfileHash": "e5025660",
|
|
5
|
+
"browserHash": "d0490877",
|
|
6
6
|
"optimized": {
|
|
7
7
|
"@sudodevnull/datastar": {
|
|
8
8
|
"src": "../../../../../node_modules/.pnpm/@sudodevnull+datastar@0.19.9/node_modules/@sudodevnull/datastar/dist/datastar.js",
|
|
9
9
|
"file": "@sudodevnull_datastar.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "653a1130",
|
|
11
11
|
"needsInterop": false
|
|
12
12
|
},
|
|
13
13
|
"basecoat-css/all": {
|
|
14
14
|
"src": "../../../../../node_modules/.pnpm/basecoat-css@0.3.10/node_modules/basecoat-css/dist/js/all.js",
|
|
15
15
|
"file": "basecoat-css_all.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "d6909ee9",
|
|
17
17
|
"needsInterop": true
|
|
18
18
|
}
|
|
19
19
|
},
|
|
@@ -1,187 +1,187 @@
|
|
|
1
1
|
{
|
|
2
|
-
"hash": "
|
|
2
|
+
"hash": "5ef0ab94",
|
|
3
3
|
"configHash": "1efff14b",
|
|
4
|
-
"lockfileHash": "
|
|
5
|
-
"browserHash": "
|
|
4
|
+
"lockfileHash": "e5025660",
|
|
5
|
+
"browserHash": "df132e1d",
|
|
6
6
|
"optimized": {
|
|
7
7
|
"unenv/node/inspector/promises": {
|
|
8
8
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector/promises.mjs",
|
|
9
9
|
"file": "unenv_node_inspector_promises.js",
|
|
10
|
-
"fileHash": "
|
|
10
|
+
"fileHash": "79a6f763",
|
|
11
11
|
"needsInterop": false
|
|
12
12
|
},
|
|
13
13
|
"unenv/node/readline/promises": {
|
|
14
14
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/readline/promises.mjs",
|
|
15
15
|
"file": "unenv_node_readline_promises.js",
|
|
16
|
-
"fileHash": "
|
|
16
|
+
"fileHash": "092b4716",
|
|
17
17
|
"needsInterop": false
|
|
18
18
|
},
|
|
19
19
|
"unenv/node/worker_threads": {
|
|
20
20
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/worker_threads.mjs",
|
|
21
21
|
"file": "unenv_node_worker_threads.js",
|
|
22
|
-
"fileHash": "
|
|
22
|
+
"fileHash": "5dfe00c9",
|
|
23
23
|
"needsInterop": false
|
|
24
24
|
},
|
|
25
25
|
"unenv/node/child_process": {
|
|
26
26
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/child_process.mjs",
|
|
27
27
|
"file": "unenv_node_child_process.js",
|
|
28
|
-
"fileHash": "
|
|
28
|
+
"fileHash": "e497daea",
|
|
29
29
|
"needsInterop": false
|
|
30
30
|
},
|
|
31
31
|
"unenv/mock/proxy-cjs": {
|
|
32
32
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/lib/mock.cjs",
|
|
33
33
|
"file": "unenv_mock_proxy-cjs.js",
|
|
34
|
-
"fileHash": "
|
|
34
|
+
"fileHash": "fb36b463",
|
|
35
35
|
"needsInterop": true
|
|
36
36
|
},
|
|
37
37
|
"unenv/node/perf_hooks": {
|
|
38
38
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/perf_hooks.mjs",
|
|
39
39
|
"file": "unenv_node_perf_hooks.js",
|
|
40
|
-
"fileHash": "
|
|
40
|
+
"fileHash": "63eb56de",
|
|
41
41
|
"needsInterop": false
|
|
42
42
|
},
|
|
43
43
|
"unenv/node/inspector": {
|
|
44
44
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector.mjs",
|
|
45
45
|
"file": "unenv_node_inspector.js",
|
|
46
|
-
"fileHash": "
|
|
46
|
+
"fileHash": "4d5af317",
|
|
47
47
|
"needsInterop": false
|
|
48
48
|
},
|
|
49
49
|
"unenv/node/readline": {
|
|
50
50
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/readline.mjs",
|
|
51
51
|
"file": "unenv_node_readline.js",
|
|
52
|
-
"fileHash": "
|
|
52
|
+
"fileHash": "f0a47bbc",
|
|
53
53
|
"needsInterop": false
|
|
54
54
|
},
|
|
55
55
|
"@cloudflare/unenv-preset/node/process": {
|
|
56
56
|
"src": "../../../../../node_modules/.pnpm/@cloudflare+unenv-preset@2.12.0_unenv@2.0.0-rc.24_workerd@1.20260128.0/node_modules/@cloudflare/unenv-preset/dist/runtime/node/process.mjs",
|
|
57
57
|
"file": "@cloudflare_unenv-preset_node_process.js",
|
|
58
|
-
"fileHash": "
|
|
58
|
+
"fileHash": "fc0317f8",
|
|
59
59
|
"needsInterop": false
|
|
60
60
|
},
|
|
61
61
|
"unenv/node/sqlite": {
|
|
62
62
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/sqlite.mjs",
|
|
63
63
|
"file": "unenv_node_sqlite.js",
|
|
64
|
-
"fileHash": "
|
|
64
|
+
"fileHash": "16fe5803",
|
|
65
65
|
"needsInterop": false
|
|
66
66
|
},
|
|
67
67
|
"unenv/node/dgram": {
|
|
68
68
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/dgram.mjs",
|
|
69
69
|
"file": "unenv_node_dgram.js",
|
|
70
|
-
"fileHash": "
|
|
70
|
+
"fileHash": "e31dcb89",
|
|
71
71
|
"needsInterop": false
|
|
72
72
|
},
|
|
73
73
|
"unenv/node/repl": {
|
|
74
74
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/repl.mjs",
|
|
75
75
|
"file": "unenv_node_repl.js",
|
|
76
|
-
"fileHash": "
|
|
76
|
+
"fileHash": "e937e94d",
|
|
77
77
|
"needsInterop": false
|
|
78
78
|
},
|
|
79
79
|
"unenv/node/tty": {
|
|
80
80
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/tty.mjs",
|
|
81
81
|
"file": "unenv_node_tty.js",
|
|
82
|
-
"fileHash": "
|
|
82
|
+
"fileHash": "a8704d46",
|
|
83
83
|
"needsInterop": false
|
|
84
84
|
},
|
|
85
85
|
"unenv/node/v8": {
|
|
86
86
|
"src": "../../../../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/v8.mjs",
|
|
87
87
|
"file": "unenv_node_v8.js",
|
|
88
|
-
"fileHash": "
|
|
88
|
+
"fileHash": "9f2ac74b",
|
|
89
89
|
"needsInterop": false
|
|
90
90
|
},
|
|
91
91
|
"@cloudflare/unenv-preset/polyfill/performance": {
|
|
92
92
|
"src": "../../../../../node_modules/.pnpm/@cloudflare+unenv-preset@2.12.0_unenv@2.0.0-rc.24_workerd@1.20260128.0/node_modules/@cloudflare/unenv-preset/dist/runtime/polyfill/performance.mjs",
|
|
93
93
|
"file": "@cloudflare_unenv-preset_polyfill_performance.js",
|
|
94
|
-
"fileHash": "
|
|
94
|
+
"fileHash": "4b2887a8",
|
|
95
95
|
"needsInterop": false
|
|
96
96
|
},
|
|
97
97
|
"@lingui/core": {
|
|
98
98
|
"src": "../../../../../node_modules/.pnpm/@lingui+core@5.9.0_@lingui+babel-plugin-lingui-macro@5.9.0_babel-plugin-macros@3.1.0_ty_6f6920476f14c28067c19501b3987170/node_modules/@lingui/core/dist/index.mjs",
|
|
99
99
|
"file": "@lingui_core.js",
|
|
100
|
-
"fileHash": "
|
|
100
|
+
"fileHash": "4fc8310e",
|
|
101
101
|
"needsInterop": false
|
|
102
102
|
},
|
|
103
103
|
"better-auth": {
|
|
104
104
|
"src": "../../../../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/index.mjs",
|
|
105
105
|
"file": "better-auth.js",
|
|
106
|
-
"fileHash": "
|
|
106
|
+
"fileHash": "9f666dff",
|
|
107
107
|
"needsInterop": false
|
|
108
108
|
},
|
|
109
109
|
"better-auth/adapters/drizzle": {
|
|
110
110
|
"src": "../../../../../node_modules/.pnpm/better-auth@1.4.18_drizzle-kit@0.31.8_drizzle-orm@0.45.1_@cloudflare+workers-types@4.20_a31fcad55de5b8c118775528fba151d7/node_modules/better-auth/dist/adapters/drizzle-adapter/index.mjs",
|
|
111
111
|
"file": "better-auth_adapters_drizzle.js",
|
|
112
|
-
"fileHash": "
|
|
112
|
+
"fileHash": "6366f86a",
|
|
113
113
|
"needsInterop": false
|
|
114
114
|
},
|
|
115
115
|
"drizzle-orm": {
|
|
116
116
|
"src": "../../../../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260131.0_gel@2.2.0_kysely@0.28.10/node_modules/drizzle-orm/index.js",
|
|
117
117
|
"file": "drizzle-orm.js",
|
|
118
|
-
"fileHash": "
|
|
118
|
+
"fileHash": "b48ac1ed",
|
|
119
119
|
"needsInterop": false
|
|
120
120
|
},
|
|
121
121
|
"drizzle-orm/d1": {
|
|
122
122
|
"src": "../../../../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260131.0_gel@2.2.0_kysely@0.28.10/node_modules/drizzle-orm/d1/index.js",
|
|
123
123
|
"file": "drizzle-orm_d1.js",
|
|
124
|
-
"fileHash": "
|
|
124
|
+
"fileHash": "ce998d72",
|
|
125
125
|
"needsInterop": false
|
|
126
126
|
},
|
|
127
127
|
"drizzle-orm/sqlite-core": {
|
|
128
128
|
"src": "../../../../../node_modules/.pnpm/drizzle-orm@0.45.1_@cloudflare+workers-types@4.20260131.0_gel@2.2.0_kysely@0.28.10/node_modules/drizzle-orm/sqlite-core/index.js",
|
|
129
129
|
"file": "drizzle-orm_sqlite-core.js",
|
|
130
|
-
"fileHash": "
|
|
130
|
+
"fileHash": "8eea407c",
|
|
131
131
|
"needsInterop": false
|
|
132
132
|
},
|
|
133
133
|
"hono": {
|
|
134
134
|
"src": "../../../../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/index.js",
|
|
135
135
|
"file": "hono.js",
|
|
136
|
-
"fileHash": "
|
|
136
|
+
"fileHash": "5b782fb9",
|
|
137
137
|
"needsInterop": false
|
|
138
138
|
},
|
|
139
139
|
"hono/html": {
|
|
140
140
|
"src": "../../../../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/helper/html/index.js",
|
|
141
141
|
"file": "hono_html.js",
|
|
142
|
-
"fileHash": "
|
|
142
|
+
"fileHash": "dcb081b4",
|
|
143
143
|
"needsInterop": false
|
|
144
144
|
},
|
|
145
145
|
"hono/jsx/jsx-dev-runtime": {
|
|
146
146
|
"src": "../../../../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/jsx/jsx-dev-runtime.js",
|
|
147
147
|
"file": "hono_jsx_jsx-dev-runtime.js",
|
|
148
|
-
"fileHash": "
|
|
148
|
+
"fileHash": "b7d2b7bc",
|
|
149
149
|
"needsInterop": false
|
|
150
150
|
},
|
|
151
151
|
"marked": {
|
|
152
152
|
"src": "../../../../../node_modules/.pnpm/marked@17.0.1/node_modules/marked/lib/marked.esm.js",
|
|
153
153
|
"file": "marked.js",
|
|
154
|
-
"fileHash": "
|
|
154
|
+
"fileHash": "1fce80b4",
|
|
155
155
|
"needsInterop": false
|
|
156
156
|
},
|
|
157
157
|
"sqids": {
|
|
158
158
|
"src": "../../../../../node_modules/.pnpm/sqids@0.3.0/node_modules/sqids/esm/sqids.js",
|
|
159
159
|
"file": "sqids.js",
|
|
160
|
-
"fileHash": "
|
|
160
|
+
"fileHash": "5b879230",
|
|
161
161
|
"needsInterop": false
|
|
162
162
|
},
|
|
163
163
|
"uuidv7": {
|
|
164
164
|
"src": "../../../../../node_modules/.pnpm/uuidv7@1.1.0/node_modules/uuidv7/dist/index.js",
|
|
165
165
|
"file": "uuidv7.js",
|
|
166
|
-
"fileHash": "
|
|
166
|
+
"fileHash": "c4a89416",
|
|
167
167
|
"needsInterop": false
|
|
168
168
|
},
|
|
169
169
|
"vite-ssr-components/hono": {
|
|
170
170
|
"src": "../../../../../node_modules/.pnpm/vite-ssr-components@0.5.2/node_modules/vite-ssr-components/dist/hono/index.js",
|
|
171
171
|
"file": "vite-ssr-components_hono.js",
|
|
172
|
-
"fileHash": "
|
|
172
|
+
"fileHash": "cc3a08d2",
|
|
173
173
|
"needsInterop": false
|
|
174
174
|
},
|
|
175
175
|
"zod": {
|
|
176
176
|
"src": "../../../../../node_modules/.pnpm/zod@4.3.6/node_modules/zod/index.js",
|
|
177
177
|
"file": "zod.js",
|
|
178
|
-
"fileHash": "
|
|
178
|
+
"fileHash": "99ec4e04",
|
|
179
179
|
"needsInterop": false
|
|
180
180
|
},
|
|
181
181
|
"hono/jsx/jsx-runtime": {
|
|
182
182
|
"src": "../../../../../node_modules/.pnpm/hono@4.11.7/node_modules/hono/dist/jsx/jsx-runtime.js",
|
|
183
183
|
"file": "hono_jsx_jsx-runtime.js",
|
|
184
|
-
"fileHash": "
|
|
184
|
+
"fileHash": "761ddce9",
|
|
185
185
|
"needsInterop": false
|
|
186
186
|
}
|
|
187
187
|
},
|
|
@@ -234,14 +234,14 @@
|
|
|
234
234
|
"chunk-CY66HEWY": {
|
|
235
235
|
"file": "chunk-CY66HEWY.js"
|
|
236
236
|
},
|
|
237
|
-
"chunk-
|
|
238
|
-
"file": "chunk-
|
|
237
|
+
"chunk-7GIDCG6B": {
|
|
238
|
+
"file": "chunk-7GIDCG6B.js"
|
|
239
239
|
},
|
|
240
240
|
"chunk-KXKHNKXE": {
|
|
241
241
|
"file": "chunk-KXKHNKXE.js"
|
|
242
242
|
},
|
|
243
|
-
"chunk-
|
|
244
|
-
"file": "chunk-
|
|
243
|
+
"chunk-EBFNORPD": {
|
|
244
|
+
"file": "chunk-EBFNORPD.js"
|
|
245
245
|
},
|
|
246
246
|
"chunk-G3PMV62Z": {
|
|
247
247
|
"file": "chunk-G3PMV62Z.js"
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
noop_default
|
|
3
|
+
} from "./chunk-7GIDCG6B.js";
|
|
1
4
|
import {
|
|
2
5
|
notImplemented,
|
|
3
6
|
notImplementedClass
|
|
4
7
|
} from "./chunk-EBFNORPD.js";
|
|
5
|
-
import {
|
|
6
|
-
noop_default
|
|
7
|
-
} from "./chunk-7GIDCG6B.js";
|
|
8
8
|
import "./chunk-G3PMV62Z.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector.mjs
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
+
import {
|
|
2
|
+
noop_default
|
|
3
|
+
} from "./chunk-7GIDCG6B.js";
|
|
1
4
|
import {
|
|
2
5
|
notImplemented,
|
|
3
6
|
notImplementedClass
|
|
4
7
|
} from "./chunk-EBFNORPD.js";
|
|
5
|
-
import {
|
|
6
|
-
noop_default
|
|
7
|
-
} from "./chunk-7GIDCG6B.js";
|
|
8
8
|
import "./chunk-G3PMV62Z.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/inspector/promises.mjs
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Interface
|
|
3
|
-
} from "./chunk-KXKHNKXE.js";
|
|
4
1
|
import {
|
|
5
2
|
noop_default
|
|
6
3
|
} from "./chunk-7GIDCG6B.js";
|
|
4
|
+
import {
|
|
5
|
+
Interface
|
|
6
|
+
} from "./chunk-KXKHNKXE.js";
|
|
7
7
|
import "./chunk-G3PMV62Z.js";
|
|
8
8
|
|
|
9
9
|
// ../../node_modules/.pnpm/unenv@2.0.0-rc.24/node_modules/unenv/dist/runtime/node/readline.mjs
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind CSS content path helper for @jant/core
|
|
3
|
+
*
|
|
4
|
+
* This helper resolves the absolute path to @jant/core source files,
|
|
5
|
+
* working correctly with pnpm symlinks and npm installations.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Returns the absolute glob path to scan @jant/core source files for Tailwind classes.
|
|
9
|
+
* Uses require.resolve to penetrate pnpm symlinks.
|
|
10
|
+
*/
|
|
11
|
+
export declare function jantContent(): string;
|
|
12
|
+
//# sourceMappingURL=tailwind.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tailwind.d.ts","sourceRoot":"","sources":["../src/tailwind.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH;;;GAGG;AACH,wBAAgB,WAAW,IAAI,MAAM,CAGpC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind CSS content path helper for @jant/core
|
|
3
|
+
*
|
|
4
|
+
* This helper resolves the absolute path to @jant/core source files,
|
|
5
|
+
* working correctly with pnpm symlinks and npm installations.
|
|
6
|
+
*/ import path from "path";
|
|
7
|
+
import { createRequire } from "module";
|
|
8
|
+
const require = createRequire(import.meta.url);
|
|
9
|
+
/**
|
|
10
|
+
* Returns the absolute glob path to scan @jant/core source files for Tailwind classes.
|
|
11
|
+
* Uses require.resolve to penetrate pnpm symlinks.
|
|
12
|
+
*/ export function jantContent() {
|
|
13
|
+
const root = path.dirname(require.resolve("@jant/core/package.json"));
|
|
14
|
+
return path.join(root, "src/**/*.{ts,tsx}");
|
|
15
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jant/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.10",
|
|
4
4
|
"description": "A modern, open-source microblogging platform built on Cloudflare Workers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"types": "./dist/theme/index.d.ts",
|
|
16
16
|
"default": "./dist/theme/index.js"
|
|
17
17
|
},
|
|
18
|
-
"./
|
|
18
|
+
"./tailwind": {
|
|
19
|
+
"types": "./dist/tailwind.d.ts",
|
|
20
|
+
"default": "./dist/tailwind.js"
|
|
21
|
+
},
|
|
19
22
|
"./preset.css": "./src/preset.css",
|
|
20
23
|
"./client": "./dist/client.js",
|
|
21
24
|
"./*": "./*"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Tailwind CSS content path helper for @jant/core
|
|
3
|
+
*
|
|
4
|
+
* This helper resolves the absolute path to @jant/core source files,
|
|
5
|
+
* working correctly with pnpm symlinks and npm installations.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import path from "path";
|
|
9
|
+
import { createRequire } from "module";
|
|
10
|
+
|
|
11
|
+
const require = createRequire(import.meta.url);
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Returns the absolute glob path to scan @jant/core source files for Tailwind classes.
|
|
15
|
+
* Uses require.resolve to penetrate pnpm symlinks.
|
|
16
|
+
*/
|
|
17
|
+
export function jantContent(): string {
|
|
18
|
+
const root = path.dirname(require.resolve("@jant/core/package.json"));
|
|
19
|
+
return path.join(root, "src/**/*.{ts,tsx}");
|
|
20
|
+
}
|
|
@@ -2,7 +2,11 @@
|
|
|
2
2
|
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
3
|
|
|
4
4
|
case `uname` in
|
|
5
|
-
*CYGWIN*)
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
6
10
|
esac
|
|
7
11
|
|
|
8
12
|
if [ -z "$NODE_PATH" ]; then
|
package/template/package.json
CHANGED
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"@lingui/swc-plugin": "^5.10.1",
|
|
25
25
|
"@swc/core": "^1.15.11",
|
|
26
26
|
"@tailwindcss/postcss": "^4.1.18",
|
|
27
|
-
"autoprefixer": "^10.4.
|
|
27
|
+
"autoprefixer": "^10.4.21",
|
|
28
28
|
"basecoat-css": "^0.3.10",
|
|
29
|
-
"postcss": "^8.5.
|
|
29
|
+
"postcss": "^8.5.3",
|
|
30
30
|
"tailwindcss": "^4.1.18",
|
|
31
31
|
"typescript": "^5.9.3",
|
|
32
32
|
"unplugin-swc": "^1.5.9",
|
package/template/src/style.css
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import type { Config } from "tailwindcss";
|
|
2
|
-
import {
|
|
2
|
+
import { jantContent } from "@jant/core/tailwind";
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
content: [
|
|
6
|
+
"./src/**/*.{ts,tsx}",
|
|
7
|
+
jantContent(),
|
|
8
|
+
],
|
|
9
|
+
theme: {
|
|
10
|
+
extend: {},
|
|
11
|
+
},
|
|
12
|
+
plugins: [],
|
|
9
13
|
} satisfies Config;
|
package/template/vite.config.ts
CHANGED
|
@@ -47,12 +47,21 @@ export default defineConfig({
|
|
|
47
47
|
port: 9019,
|
|
48
48
|
host: true,
|
|
49
49
|
allowedHosts: true,
|
|
50
|
+
watch: {
|
|
51
|
+
// 允许 Vite 监听 @jant/core 的变化 (默认会忽略 node_modules)
|
|
52
|
+
ignored: ["!**/node_modules/@jant/core/**"],
|
|
53
|
+
},
|
|
50
54
|
},
|
|
51
55
|
|
|
52
56
|
preview: {
|
|
53
57
|
port: 9019,
|
|
54
58
|
},
|
|
55
59
|
|
|
60
|
+
ssr: {
|
|
61
|
+
// 强制 Vite 处理库内的 CSS 文件
|
|
62
|
+
noExternal: ["@jant/core"],
|
|
63
|
+
},
|
|
64
|
+
|
|
56
65
|
environments: {
|
|
57
66
|
client: {
|
|
58
67
|
build: {
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import plugin from "tailwindcss/plugin";
|
|
2
|
-
import type { Config } from "tailwindcss";
|
|
3
|
-
import path from "path";
|
|
4
|
-
import { createRequire } from "module";
|
|
5
|
-
|
|
6
|
-
// Get require method (ESM compatible)
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
8
|
-
|
|
9
|
-
// ---------------------------------------------------------
|
|
10
|
-
// Core Logic: Dynamically resolve absolute path
|
|
11
|
-
// ---------------------------------------------------------
|
|
12
|
-
// 1. Penetrate pnpm symlinks, find the real physical location of package.json
|
|
13
|
-
const pathRoot = path.dirname(require.resolve("@jant/core/package.json"));
|
|
14
|
-
|
|
15
|
-
// 2. Construct the absolute path to the source directory
|
|
16
|
-
// Tailwind v4 scans absolute paths reliably, no extra config needed
|
|
17
|
-
const contentPath = path.join(pathRoot, "src/**/*.{ts,tsx}");
|
|
18
|
-
|
|
19
|
-
export const jantPlugin: NonNullable<Config["plugins"]>[number] = plugin(
|
|
20
|
-
// Plugin body: can add styles via addBase/addComponents here
|
|
21
|
-
() => {},
|
|
22
|
-
{
|
|
23
|
-
// Key: Auto-inject core library source path into user's content config
|
|
24
|
-
content: [contentPath],
|
|
25
|
-
}
|
|
26
|
-
);
|