create-fumadocs-app 14.2.0 → 14.3.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.
|
@@ -60,7 +60,7 @@ function tryGitInit(root) {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
// src/versions.js
|
|
63
|
-
var versions = { "fumadocs-core": "14.
|
|
63
|
+
var versions = { "fumadocs-core": "14.3.0", "fumadocs-ui": "14.3.0", "fumadocs-mdx": "11.1.1", "@fumadocs/content-collections": "1.1.5" };
|
|
64
64
|
|
|
65
65
|
// ../create-app-versions/package.json
|
|
66
66
|
var package_default = {
|
|
@@ -70,15 +70,15 @@ var package_default = {
|
|
|
70
70
|
description: "Used to track dependency versions in create-fumadocs-app",
|
|
71
71
|
license: "MIT",
|
|
72
72
|
dependencies: {
|
|
73
|
-
"@content-collections/core": "^0.7.
|
|
73
|
+
"@content-collections/core": "^0.7.3",
|
|
74
74
|
"@content-collections/mdx": "^0.2.0",
|
|
75
75
|
"@content-collections/next": "^0.2.3",
|
|
76
76
|
"@types/mdx": "^2.0.13",
|
|
77
|
-
"@types/node": "22.
|
|
77
|
+
"@types/node": "22.9.0",
|
|
78
78
|
"@types/react": "^18.3.12",
|
|
79
79
|
"@types/react-dom": "^18.3.1",
|
|
80
80
|
autoprefixer: "^10.4.20",
|
|
81
|
-
next: "15.0.
|
|
81
|
+
next: "15.0.3",
|
|
82
82
|
postcss: "^8.4.47",
|
|
83
83
|
react: "^18.3.1",
|
|
84
84
|
"react-dom": "^18.3.1",
|
|
@@ -151,6 +151,10 @@ async function create(options) {
|
|
|
151
151
|
await copy(path.join(sourceDir, `template/+tailwindcss`), dest);
|
|
152
152
|
log("Configured Tailwind CSS");
|
|
153
153
|
}
|
|
154
|
+
if (options.eslint) {
|
|
155
|
+
await copy(path.join(sourceDir, `template/+eslint`), dest);
|
|
156
|
+
log("Configured ESLint");
|
|
157
|
+
}
|
|
154
158
|
const packageJson = createPackageJson(projectName, options);
|
|
155
159
|
await fs.writeFile(path.join(dest, "package.json"), packageJson);
|
|
156
160
|
const readMe = await getReadme(dest, projectName);
|
|
@@ -183,7 +187,7 @@ async function copy(from, to, rename = (s) => s) {
|
|
|
183
187
|
await fs.copyFile(from, to);
|
|
184
188
|
}
|
|
185
189
|
}
|
|
186
|
-
function createPackageJson(projectName,
|
|
190
|
+
function createPackageJson(projectName, options) {
|
|
187
191
|
const packageJson = {
|
|
188
192
|
name: projectName,
|
|
189
193
|
version: "0.0.0",
|
|
@@ -207,31 +211,43 @@ function createPackageJson(projectName, { template, tailwindcss }) {
|
|
|
207
211
|
typescript: package_default.dependencies.typescript
|
|
208
212
|
}
|
|
209
213
|
};
|
|
210
|
-
if (template === "content-collections") {
|
|
211
|
-
|
|
214
|
+
if (options.template === "content-collections") {
|
|
215
|
+
packageJson.dependencies = {
|
|
216
|
+
...packageJson.dependencies,
|
|
212
217
|
"@fumadocs/content-collections": versions["@fumadocs/content-collections"],
|
|
213
218
|
"@content-collections/core": package_default.dependencies["@content-collections/core"],
|
|
214
219
|
"@content-collections/mdx": package_default.dependencies["@content-collections/mdx"],
|
|
215
220
|
"@content-collections/next": package_default.dependencies["@content-collections/next"]
|
|
216
|
-
}
|
|
221
|
+
};
|
|
217
222
|
}
|
|
218
|
-
if (template === "fuma-docs-mdx") {
|
|
219
|
-
|
|
223
|
+
if (options.template === "fuma-docs-mdx") {
|
|
224
|
+
packageJson.scripts = {
|
|
225
|
+
...packageJson.scripts,
|
|
220
226
|
postinstall: "fumadocs-mdx"
|
|
221
|
-
}
|
|
222
|
-
|
|
227
|
+
};
|
|
228
|
+
packageJson.dependencies = {
|
|
229
|
+
...packageJson.dependencies,
|
|
223
230
|
"fumadocs-mdx": versions["fumadocs-mdx"]
|
|
224
|
-
}
|
|
225
|
-
|
|
231
|
+
};
|
|
232
|
+
packageJson.devDependencies = {
|
|
233
|
+
...packageJson.devDependencies,
|
|
226
234
|
"@types/mdx": package_default.dependencies["@types/mdx"]
|
|
227
|
-
}
|
|
235
|
+
};
|
|
228
236
|
}
|
|
229
|
-
if (tailwindcss) {
|
|
230
|
-
|
|
237
|
+
if (options.tailwindcss) {
|
|
238
|
+
packageJson.devDependencies = {
|
|
239
|
+
...packageJson.devDependencies,
|
|
231
240
|
autoprefixer: package_default.dependencies.autoprefixer,
|
|
232
241
|
postcss: package_default.dependencies.postcss,
|
|
233
242
|
tailwindcss: package_default.dependencies.tailwindcss
|
|
234
|
-
}
|
|
243
|
+
};
|
|
244
|
+
}
|
|
245
|
+
if (options.eslint) {
|
|
246
|
+
packageJson.devDependencies = {
|
|
247
|
+
...packageJson.devDependencies,
|
|
248
|
+
eslint: "^8",
|
|
249
|
+
"eslint-config-next": package_default.dependencies.next
|
|
250
|
+
};
|
|
235
251
|
}
|
|
236
252
|
return JSON.stringify(packageJson, void 0, 2);
|
|
237
253
|
}
|
package/dist/create-app.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
create,
|
|
4
4
|
cwd,
|
|
5
5
|
getPackageManager
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PETCUWKU.js";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
@@ -41,6 +41,7 @@ async function main() {
|
|
|
41
41
|
]
|
|
42
42
|
}),
|
|
43
43
|
tailwindcss: () => confirm({ message: "Use Tailwind CSS for styling?" }),
|
|
44
|
+
eslint: () => confirm({ message: "Add default ESLint configuration?" }),
|
|
44
45
|
installDeps: () => confirm({
|
|
45
46
|
message: `Do you want to install packages automatically? (detected as ${manager})`
|
|
46
47
|
})
|
|
@@ -80,6 +81,7 @@ async function main() {
|
|
|
80
81
|
template: options.template,
|
|
81
82
|
outputDir: dest,
|
|
82
83
|
installDeps: options.installDeps,
|
|
84
|
+
eslint: options.eslint,
|
|
83
85
|
log: (message) => {
|
|
84
86
|
log.info(message);
|
|
85
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-fumadocs-app",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.3.0",
|
|
4
4
|
"description": "Create a new documentation site with Fumadocs",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"NextJs",
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@clack/prompts": "^0.7.0",
|
|
23
|
-
"cross-spawn": "^7.0.
|
|
23
|
+
"cross-spawn": "^7.0.5",
|
|
24
24
|
"picocolors": "^1.1.1"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/cross-spawn": "^6.0.6",
|
|
28
|
-
"@types/node": "22.
|
|
28
|
+
"@types/node": "22.9.0",
|
|
29
29
|
"fast-glob": "^3.3.1",
|
|
30
30
|
"eslint-config-custom": "0.0.0",
|
|
31
31
|
"tsconfig": "0.0.0"
|