create-mendix-widget-gleam 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.mjs +45 -1
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -102,6 +102,51 @@ export async function main(args) {
|
|
|
102
102
|
// git이 없어도 계속 진행
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
+
// Gleam → JS 컴파일
|
|
106
|
+
console.log(`\n${BOLD}Gleam 컴파일 중...${RESET}\n`);
|
|
107
|
+
try {
|
|
108
|
+
execSync("gleam build --target javascript", {
|
|
109
|
+
cwd: targetDir,
|
|
110
|
+
stdio: "inherit",
|
|
111
|
+
});
|
|
112
|
+
console.log(`\n${GREEN}✓${RESET} Gleam 컴파일 완료`);
|
|
113
|
+
} catch {
|
|
114
|
+
console.error(
|
|
115
|
+
`\n${YELLOW}⚠ Gleam 컴파일 실패. 프로젝트 디렉토리에서 직접 실행하세요:${RESET}`,
|
|
116
|
+
);
|
|
117
|
+
console.error(` ${CYAN}gleam build --target javascript${RESET}\n`);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
// 의존성 설치
|
|
121
|
+
console.log(`\n${BOLD}의존성 설치 중...${RESET}\n`);
|
|
122
|
+
try {
|
|
123
|
+
execSync("gleam run -m glendix/install", {
|
|
124
|
+
cwd: targetDir,
|
|
125
|
+
stdio: "inherit",
|
|
126
|
+
});
|
|
127
|
+
console.log(`\n${GREEN}✓${RESET} 의존성 설치 완료`);
|
|
128
|
+
} catch {
|
|
129
|
+
console.error(
|
|
130
|
+
`\n${YELLOW}⚠ 의존성 설치 실패. 프로젝트 디렉토리에서 직접 실행하세요:${RESET}`,
|
|
131
|
+
);
|
|
132
|
+
console.error(` ${CYAN}gleam run -m glendix/install${RESET}\n`);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// 프로덕션 빌드
|
|
136
|
+
console.log(`\n${BOLD}위젯 빌드 중...${RESET}\n`);
|
|
137
|
+
try {
|
|
138
|
+
execSync("gleam run -m glendix/build", {
|
|
139
|
+
cwd: targetDir,
|
|
140
|
+
stdio: "inherit",
|
|
141
|
+
});
|
|
142
|
+
console.log(`\n${GREEN}✓${RESET} 위젯 빌드 완료`);
|
|
143
|
+
} catch {
|
|
144
|
+
console.error(
|
|
145
|
+
`\n${YELLOW}⚠ 빌드 실패. 프로젝트 디렉토리에서 직접 실행하세요:${RESET}`,
|
|
146
|
+
);
|
|
147
|
+
console.error(` ${CYAN}gleam run -m glendix/build${RESET}\n`);
|
|
148
|
+
}
|
|
149
|
+
|
|
105
150
|
// 완료 메시지
|
|
106
151
|
console.log(`
|
|
107
152
|
${GREEN}${BOLD}프로젝트가 생성되었습니다!${RESET}
|
|
@@ -109,7 +154,6 @@ ${GREEN}${BOLD}프로젝트가 생성되었습니다!${RESET}
|
|
|
109
154
|
${BOLD}다음 단계:${RESET}
|
|
110
155
|
|
|
111
156
|
${CYAN}cd ${names.kebabCase}${RESET}
|
|
112
|
-
${CYAN}gleam run -m glendix/install${RESET} ${DIM}# 의존성 설치${RESET}
|
|
113
157
|
${CYAN}gleam run -m glendix/dev${RESET} ${DIM}# 개발 서버 시작${RESET}
|
|
114
158
|
${CYAN}gleam run -m glendix/build${RESET} ${DIM}# 프로덕션 빌드${RESET}
|
|
115
159
|
`);
|