Skip to content

Commit

Permalink
chore(tool): remove build-robots-txt command
Browse files Browse the repository at this point in the history
  • Loading branch information
caugner committed Feb 3, 2025
1 parent f3702ec commit 838aece
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
"build:legacy::curriculum": "cross-env NODE_ENV=production NODE_OPTIONS=\"--no-warnings=ExperimentalWarning --loader ts-node/esm\" node build/build-curriculum.ts",
"build:legacy::docs": "cross-env NODE_ENV=production NODE_OPTIONS=\"--no-warnings=ExperimentalWarning --loader ts-node/esm\" node build/cli.ts -n",
"build:legacy:blog": "cross-env NODE_ENV=production NODE_OPTIONS=\"--no-warnings=ExperimentalWarning --loader ts-node/esm\" node build/build-blog.ts",
"build:legacy:prepare": "yarn build:client && yarn build:ssr && yarn tool:legacy popularities && yarn tool:legacy spas && yarn tool:legacy gather-git-history && yarn tool:legacy build-robots-txt",
"build:prepare": "yarn build:client && yarn build:ssr && yarn tool:legacy build-robots-txt",
"build:legacy:prepare": "yarn build:client && yarn build:ssr && yarn tool:legacy popularities && yarn tool:legacy spas && yarn tool:legacy gather-git-history",
"build:prepare": "yarn build:client && yarn build:ssr",
"build:ssr": "cross-env NODE_ENV=production NODE_OPTIONS=\"--no-warnings=ExperimentalWarning --loader ts-node/esm\" node ssr/prepare.ts && webpack --mode=production --config=ssr/webpack.config.js",
"build:sw": "cd client/pwa && yarn && yarn build:prod",
"build:sw-dev": "cd client/pwa && yarn && yarn build",
Expand Down
24 changes: 0 additions & 24 deletions tool/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,11 @@ import { buildDocument, gatherGitHistory, buildSPAs } from "../build/index.js";
import { isValidLocale } from "../libs/locale-utils/index.js";
import type { Doc } from "../libs/types/document.js";
import {
ALWAYS_ALLOW_ROBOTS,
BUILD_OUT_ROOT,
CONTENT_ROOT,
CONTENT_TRANSLATED_ROOT,
} from "../libs/env/index.js";
import { runMakePopularitiesFile } from "./popularities.js";
import { runBuildRobotsTxt } from "./build-robots-txt.js";
import { syncAllTranslatedContent } from "./sync-translated-content.js";
import { macroUsageReport } from "./macro-usage-report.js";
import * as kumascript from "../kumascript/index.js";
Expand Down Expand Up @@ -869,28 +867,6 @@ program
})
)

.command(
"build-robots-txt",
"Generate a robots.txt in the build root depending ALWAYS_ALLOW_ROBOTS"
)
.option("--outfile <path>", "name of the generated file", {
default: path.join(BUILD_OUT_ROOT, "robots.txt"),
})
.action(
tryOrExit(async ({ options, logger }: BuildRobotsTxtActionParameters) => {
const { outfile } = options;
await runBuildRobotsTxt(outfile);
logger.info(
chalk.yellow(
`Generated ${path.relative(
".",
outfile
)} based on ALWAYS_ALLOW_ROBOTS=${ALWAYS_ALLOW_ROBOTS}`
)
);
})
)

.command("spas", "Build (SSR) all the skeleton apps for single page apps")
.action(
tryOrExit(async ({ options }) => {
Expand Down

0 comments on commit 838aece

Please sign in to comment.