@flydocs/cli 0.6.0-alpha.20 → 0.6.0-alpha.21
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/cli.js +28 -2
- package/package.json +1 -1
- package/template/.flydocs/config.json +1 -1
- package/template/.flydocs/version +1 -1
- package/template/manifest.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -15,7 +15,7 @@ var CLI_VERSION, CLI_NAME, PACKAGE_NAME, POSTHOG_API_KEY;
|
|
|
15
15
|
var init_constants = __esm({
|
|
16
16
|
"src/lib/constants.ts"() {
|
|
17
17
|
"use strict";
|
|
18
|
-
CLI_VERSION = "0.6.0-alpha.
|
|
18
|
+
CLI_VERSION = "0.6.0-alpha.21";
|
|
19
19
|
CLI_NAME = "flydocs";
|
|
20
20
|
PACKAGE_NAME = "@flydocs/cli";
|
|
21
21
|
POSTHOG_API_KEY = "phc_v1MSJTQDFkMS90CBh3mxIz3v8bYCCnKU6v1ir6bz0Xn";
|
|
@@ -1475,12 +1475,36 @@ ${entry}
|
|
|
1475
1475
|
printStatus(`Added ${entry} to .gitignore`);
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
|
-
|
|
1478
|
+
async function ensurePlatformIgnores(targetDir) {
|
|
1479
|
+
for (const filename of PLATFORM_IGNORE_FILES) {
|
|
1480
|
+
const filePath = join11(targetDir, filename);
|
|
1481
|
+
if (!await pathExists(filePath)) continue;
|
|
1482
|
+
const content = await readFile6(filePath, "utf-8");
|
|
1483
|
+
if (content.includes("# FlyDocs")) continue;
|
|
1484
|
+
const section = "\n# FlyDocs \u2014 exclude from builds and deploys\n" + FLYDOCS_DEPLOY_EXCLUSIONS.join("\n") + "\n";
|
|
1485
|
+
await appendFile(filePath, section, "utf-8");
|
|
1486
|
+
printStatus(`Added FlyDocs exclusions to ${filename}`);
|
|
1487
|
+
}
|
|
1488
|
+
}
|
|
1489
|
+
var PLATFORM_IGNORE_FILES, FLYDOCS_DEPLOY_EXCLUSIONS, FLYDOCS_GITIGNORE_ENTRIES, FULL_GITIGNORE_TEMPLATE;
|
|
1479
1490
|
var init_gitignore = __esm({
|
|
1480
1491
|
"src/lib/gitignore.ts"() {
|
|
1481
1492
|
"use strict";
|
|
1482
1493
|
init_fs_ops();
|
|
1483
1494
|
init_ui();
|
|
1495
|
+
PLATFORM_IGNORE_FILES = [
|
|
1496
|
+
".gcloudignore",
|
|
1497
|
+
".dockerignore",
|
|
1498
|
+
".vercelignore",
|
|
1499
|
+
".npmignore"
|
|
1500
|
+
];
|
|
1501
|
+
FLYDOCS_DEPLOY_EXCLUSIONS = [
|
|
1502
|
+
".flydocs/",
|
|
1503
|
+
".claude/",
|
|
1504
|
+
".cursor/",
|
|
1505
|
+
"flydocs/",
|
|
1506
|
+
"AGENTS.md"
|
|
1507
|
+
];
|
|
1484
1508
|
FLYDOCS_GITIGNORE_ENTRIES = [
|
|
1485
1509
|
".env",
|
|
1486
1510
|
".env.local",
|
|
@@ -2566,6 +2590,7 @@ var init_install = __esm({
|
|
|
2566
2590
|
printStatus(".env.example");
|
|
2567
2591
|
}
|
|
2568
2592
|
await ensureGitignore(targetDir);
|
|
2593
|
+
await ensurePlatformIgnores(targetDir);
|
|
2569
2594
|
console.log();
|
|
2570
2595
|
console.log("Detecting project stack...");
|
|
2571
2596
|
const stack = await detectStack(targetDir);
|
|
@@ -3143,6 +3168,7 @@ var init_update = __esm({
|
|
|
3143
3168
|
printInfo("No framework detected in package.json");
|
|
3144
3169
|
}
|
|
3145
3170
|
await migrateGitignore(targetDir);
|
|
3171
|
+
await ensurePlatformIgnores(targetDir);
|
|
3146
3172
|
console.log();
|
|
3147
3173
|
console.log("Checking for deprecated files...");
|
|
3148
3174
|
await handleLegacyContext(targetDir);
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.6.0-alpha.
|
|
1
|
+
0.6.0-alpha.21
|
package/template/manifest.json
CHANGED