Rename to storebound (plugin, CLI, config file, credentials folder, repo)

This commit is contained in:
CRTkafa 2026-10-10 12:35:26 +00:00
parent ecb3dc3dc3
commit 0ca1d464e4
52 changed files with 171 additions and 171 deletions

View file

@ -1,5 +1,5 @@
// Copies the templates into the current project without overwriting anything, and makes sure .crt-ship/ is ignored.
// crt-ship init [--dir .]
// Copies the templates into the current project without overwriting anything, and makes sure .storebound/ is ignored.
// storebound init [--dir .]
import { appendFileSync, copyFileSync, existsSync, mkdirSync, readFileSync, writeFileSync } from 'node:fs';
import { dirname, join, resolve } from 'node:path';
import type { Args } from './lib/args';
@ -7,14 +7,14 @@ import { log } from './lib/log';
const T = join(import.meta.dir, '..', 'templates');
const FILES: [string, string][] = [
['crt-ship.config.ts', 'crt-ship.config.ts'],
['storebound.config.ts', 'storebound.config.ts'],
['listing.md', 'store/listing.md'],
['appstore.md', 'store/appstore.md'],
['shots-copy.json', 'store/shots/copy.json'],
['app-privacy.md', 'store/app-privacy.md'],
['declarations.md', 'store/declarations.md'],
['privacy-policy.html', 'store/privacy-policy.html'],
['credentials.example.json', '.crt-ship/credentials.json'],
['credentials.example.json', '.storebound/credentials.json'],
];
export async function run(args: Args): Promise<void> {
@ -28,10 +28,10 @@ export async function run(args: Args): Promise<void> {
}
const gi = join(root, '.gitignore');
const cur = existsSync(gi) ? readFileSync(gi, 'utf8') : '';
if (!/^\/?\.crt-ship\/?$/m.test(cur)) {
if (cur) appendFileSync(gi, `${cur.endsWith('\n') ? '' : '\n'}# crt-ship: credentials, fonts, temp files\n.crt-ship/\n`);
else writeFileSync(gi, '# crt-ship: credentials, fonts, temp files\n.crt-ship/\n');
log('init', '.gitignore: added .crt-ship/');
if (!/^\/?\.storebound\/?$/m.test(cur)) {
if (cur) appendFileSync(gi, `${cur.endsWith('\n') ? '' : '\n'}# storebound: credentials, fonts, temp files\n.storebound/\n`);
else writeFileSync(gi, '# storebound: credentials, fonts, temp files\n.storebound/\n');
log('init', '.gitignore: added .storebound/');
}
log('init', 'next: edit crt-ship.config.ts and .crt-ship/credentials.json, then `crt-ship check`');
log('init', 'next: edit storebound.config.ts and .storebound/credentials.json, then `storebound check`');
}