Merge claude/project-starter-build: ipal-kit create (project starter)
ipal-kit create <domain> generates a new site from the reference site (bin ipal-kit, /starter entry, gzipped template bundle built at prepublishOnly, starter:gate); exact pins of the plugin's own four dependencies (D15, nodemailer 10.3.1); the single-language / non-pl-default refusal; reference/ @starter:if markers, packageManager, cookieCrawl. Conflicts resolved: - reference/src/instrumentation.ts: the starter's multi-line ipalEnvRules with the @starter:if markers (the doctor's cookieCrawl comment line merged above assertEnv already). - reference/ipal-doctor.json: the doctor's version, keeping the four live-seo silences (until 2026-11-30) — the starter's side was the pre-silence copy. - docs/agent/skills/ipal-reference/resources/api.md: both /starter and /doctor. - docs/CHANGELOG.md: both sides in both hunks; one Unreleased section. - docs/agent/reference-site/INDEX.md: regenerated with pnpm reference:index.
This commit is contained in:
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env node
|
||||
// ipal-kit — the plugin's command line.
|
||||
// pnpm dlx @intecion/ipal-kit@<version> create intecion.com → a new client site (docs/project-starter.md)
|
||||
// pnpm exec ipal-kit create intecion.com --dir ../intecioncom-web --answers answers.json
|
||||
// `pnpm dlx <package>` runs the bin named after the package, so every subcommand lives here.
|
||||
// The other tools keep their own bins: ipal-skills, ipal-blocks, ipal-tokens.
|
||||
|
||||
import { dirname, join } from 'node:path'
|
||||
import { fileURLToPath, pathToFileURL } from 'node:url'
|
||||
|
||||
const USAGE = `Usage: ipal-kit <command> [options]
|
||||
create <domain> a new client site from the reference site (ipal-kit create --help)
|
||||
|
||||
Other tools: ipal-skills, ipal-blocks, ipal-tokens`
|
||||
|
||||
const [command, ...args] = process.argv.slice(2)
|
||||
if (command !== 'create') {
|
||||
console.log(USAGE)
|
||||
process.exit(command === undefined || command === '--help' || command === '-h' ? 0 : 1)
|
||||
}
|
||||
const pkgRoot = join(dirname(fileURLToPath(import.meta.url)), '..')
|
||||
const { runCreateCli } = await import(pathToFileURL(join(pkgRoot, 'dist', 'modules', 'starter', 'cli.js')).href)
|
||||
process.exit(await runCreateCli(args))
|
||||
Reference in New Issue
Block a user