프로젝트 초기 설정: 패키지 및 구성 파일 추가

This commit is contained in:
2025-12-27 04:19:37 +00:00
parent af35491b2d
commit b445a6df68
30 changed files with 284 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
import path from 'node:path';
import { fileURLToPath } from 'node:url';
const args = process.argv.slice(2);
const profileFlagIndex = args.indexOf('--profile');
const profile = profileFlagIndex >= 0 ? args[profileFlagIndex + 1] : process.env.PROFILE;
if (!profile) {
console.error('Missing profile. Use --profile or set PROFILE.');
process.exit(1);
}
const scriptDir = path.dirname(fileURLToPath(import.meta.url));
const repoRoot = path.resolve(scriptDir, '../..');
const outputDir = path.join(repoRoot, 'dist', profile);
console.log(`[build-scripts] build:server placeholder for profile: ${profile}`);
console.log(`[build-scripts] Expected output: ${outputDir}`);
+12
View File
@@ -0,0 +1,12 @@
{
"name": "@sammo-ts/build-scripts",
"private": true,
"version": "0.0.0",
"scripts": {
"build": "tsc -p tsconfig.json",
"dev": "node -e \"console.log('dev not configured')\"",
"lint": "node -e \"console.log('lint not configured')\"",
"test": "node -e \"console.log('test not configured')\"",
"build:server": "node ./build-server.mjs"
}
}
+1
View File
@@ -0,0 +1 @@
export {};
+9
View File
@@ -0,0 +1,9 @@
{
"extends": "../../tsconfig.base.json",
"compilerOptions": {
"outDir": "dist",
"rootDir": "src",
"composite": true
},
"include": ["src"]
}