create-fumadocs-app 14.7.6 → 15.0.0
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/{chunk-DVIJL7GF.js → chunk-JY54RNOG.js} +48 -41
- package/dist/create-app.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
- package/template/+tailwindcss/app/global.css +5 -3
- package/template/+tailwindcss/postcss.config.mjs +5 -0
- package/template/+tailwindcss/postcss.config.js +0 -6
- package/template/+tailwindcss/tailwind.config.js +0 -14
|
@@ -60,7 +60,7 @@ function tryGitInit(root) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/versions.js
|
|
63
|
-
var versions = { "fumadocs-core": "
|
|
63
|
+
var versions = { "fumadocs-core": "15.0.0", "fumadocs-ui": "15.0.0", "fumadocs-mdx": "11.3.2", "@fumadocs/content-collections": "1.1.7" };
|
|
64
64
|
|
|
65
65
|
// ../create-app-versions/package.json
|
|
66
66
|
var package_default = {
|
|
@@ -74,15 +74,15 @@ var package_default = {
|
|
|
74
74
|
"@content-collections/mdx": "^0.2.0",
|
|
75
75
|
"@content-collections/next": "^0.2.4",
|
|
76
76
|
"@types/mdx": "^2.0.13",
|
|
77
|
-
"@types/node": "22.10.
|
|
77
|
+
"@types/node": "22.10.9",
|
|
78
78
|
"@types/react": "^19.0.7",
|
|
79
79
|
"@types/react-dom": "^19.0.3",
|
|
80
|
-
|
|
81
|
-
next: "15.1.5",
|
|
80
|
+
next: "15.1.6",
|
|
82
81
|
postcss: "^8.5.1",
|
|
83
82
|
react: "^19.0.0",
|
|
84
83
|
"react-dom": "^19.0.0",
|
|
85
|
-
tailwindcss: "^
|
|
84
|
+
tailwindcss: "^4.0.0",
|
|
85
|
+
"@tailwindcss/postcss": "^4.0.0",
|
|
86
86
|
typescript: "^5.7.3"
|
|
87
87
|
}
|
|
88
88
|
};
|
|
@@ -198,49 +198,47 @@ function createPackageJson(projectName, options) {
|
|
|
198
198
|
start: "next start"
|
|
199
199
|
},
|
|
200
200
|
dependencies: {
|
|
201
|
-
|
|
202
|
-
"fumadocs-ui"
|
|
203
|
-
"fumadocs-core": versions["fumadocs-core"],
|
|
204
|
-
react: package_default.dependencies.react,
|
|
205
|
-
"react-dom": package_default.dependencies["react-dom"]
|
|
201
|
+
...pick(package_default.dependencies, ["next", "react", "react-dom"]),
|
|
202
|
+
...pick(versions, ["fumadocs-ui", "fumadocs-core"])
|
|
206
203
|
},
|
|
207
|
-
devDependencies:
|
|
208
|
-
"@types/node"
|
|
209
|
-
"@types/react"
|
|
210
|
-
"@types/react-dom"
|
|
211
|
-
typescript
|
|
212
|
-
|
|
204
|
+
devDependencies: pick(package_default.dependencies, [
|
|
205
|
+
"@types/node",
|
|
206
|
+
"@types/react",
|
|
207
|
+
"@types/react-dom",
|
|
208
|
+
"typescript"
|
|
209
|
+
])
|
|
213
210
|
};
|
|
214
211
|
if (options.template === "content-collections") {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
212
|
+
Object.assign(
|
|
213
|
+
packageJson.dependencies,
|
|
214
|
+
pick(package_default.dependencies, [
|
|
215
|
+
"@content-collections/mdx",
|
|
216
|
+
"@content-collections/core",
|
|
217
|
+
"@content-collections/next"
|
|
218
|
+
]),
|
|
219
|
+
pick(versions, ["@fumadocs/content-collections"])
|
|
220
|
+
);
|
|
222
221
|
}
|
|
223
222
|
if (options.template === "fuma-docs-mdx") {
|
|
224
|
-
packageJson.scripts =
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
...packageJson.devDependencies,
|
|
234
|
-
"@types/mdx": package_default.dependencies["@types/mdx"]
|
|
235
|
-
};
|
|
223
|
+
packageJson.scripts.postinstall = "fumadocs-mdx";
|
|
224
|
+
Object.assign(
|
|
225
|
+
packageJson.dependencies,
|
|
226
|
+
pick(versions, ["fumadocs-mdx"])
|
|
227
|
+
);
|
|
228
|
+
Object.assign(
|
|
229
|
+
packageJson.devDependencies,
|
|
230
|
+
pick(package_default.dependencies, ["@types/mdx"])
|
|
231
|
+
);
|
|
236
232
|
}
|
|
237
233
|
if (options.tailwindcss) {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
234
|
+
Object.assign(
|
|
235
|
+
packageJson.devDependencies,
|
|
236
|
+
pick(package_default.dependencies, [
|
|
237
|
+
"@tailwindcss/postcss",
|
|
238
|
+
"tailwindcss",
|
|
239
|
+
"postcss"
|
|
240
|
+
])
|
|
241
|
+
);
|
|
244
242
|
}
|
|
245
243
|
if (options.eslint) {
|
|
246
244
|
packageJson.devDependencies = {
|
|
@@ -251,6 +249,15 @@ function createPackageJson(projectName, options) {
|
|
|
251
249
|
}
|
|
252
250
|
return JSON.stringify(packageJson, void 0, 2);
|
|
253
251
|
}
|
|
252
|
+
function pick(obj, keys) {
|
|
253
|
+
const result = {};
|
|
254
|
+
for (const key of keys) {
|
|
255
|
+
if (key in obj) {
|
|
256
|
+
result[key] = obj[key];
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return result;
|
|
260
|
+
}
|
|
254
261
|
|
|
255
262
|
export {
|
|
256
263
|
getPackageManager,
|
package/dist/create-app.js
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fumadocs-app",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/cross-spawn": "^6.0.6",
|
|
28
|
-
"@types/node": "22.10.
|
|
28
|
+
"@types/node": "22.10.9",
|
|
29
29
|
"fast-glob": "^3.3.3",
|
|
30
30
|
"eslint-config-custom": "0.0.0",
|
|
31
31
|
"tsconfig": "0.0.0"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// @ts-check
|
|
2
|
-
import { createPreset } from 'fumadocs-ui/tailwind-plugin';
|
|
3
|
-
|
|
4
|
-
/** @type {import('tailwindcss').Config} */
|
|
5
|
-
export default {
|
|
6
|
-
content: [
|
|
7
|
-
'./components/**/*.{ts,tsx}',
|
|
8
|
-
'./app/**/*.{ts,tsx}',
|
|
9
|
-
'./content/**/*.{md,mdx}',
|
|
10
|
-
'./mdx-components.{ts,tsx}',
|
|
11
|
-
'./node_modules/fumadocs-ui/dist/**/*.js',
|
|
12
|
-
],
|
|
13
|
-
presets: [createPreset()],
|
|
14
|
-
};
|