프로젝트 초기 설정: 패키지 및 구성 파일 추가
This commit is contained in:
@@ -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}`);
|
||||
@@ -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"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
export {};
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"extends": "../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"outDir": "dist",
|
||||
"rootDir": "src",
|
||||
"composite": true
|
||||
},
|
||||
"include": ["src"]
|
||||
}
|
||||
Reference in New Issue
Block a user