create-mendix-widget-gleam 2.0.15 → 2.0.17
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/README.md +1 -1
- package/package.json +1 -1
- package/src/index.mjs +10 -5
- package/template/gleam.toml +1 -1
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ my-widget/
|
|
|
30
30
|
widgets/ # .mpk 위젯 파일 (glendix/widget로 바인딩)
|
|
31
31
|
bindings.json # 외부 React 컴포넌트 바인딩 설정
|
|
32
32
|
package.json # npm 의존성 (React, 외부 라이브러리 등)
|
|
33
|
-
gleam.toml # Gleam 프로젝트 설정 (glendix >= 2.0.
|
|
33
|
+
gleam.toml # Gleam 프로젝트 설정 (glendix >= 2.0.17 의존성 포함)
|
|
34
34
|
CLAUDE.md # AI 어시스턴트용 프로젝트 컨텍스트
|
|
35
35
|
```
|
|
36
36
|
|
package/package.json
CHANGED
package/src/index.mjs
CHANGED
|
@@ -136,15 +136,17 @@ export async function main(args) {
|
|
|
136
136
|
// git not available — continue
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
// Gleam → JS compilation
|
|
140
|
-
console.log(`\n${BOLD}${t(lang, "progress.gleamCompiling")}${RESET}
|
|
139
|
+
// Gleam → JS compilation (pipe로 Erlang 관련 Unused value warning 숨김)
|
|
140
|
+
console.log(`\n${BOLD}${t(lang, "progress.gleamCompiling")}${RESET}`);
|
|
141
141
|
try {
|
|
142
142
|
execSync("gleam build --target javascript", {
|
|
143
143
|
cwd: targetDir,
|
|
144
|
-
stdio: "
|
|
144
|
+
stdio: "pipe",
|
|
145
145
|
});
|
|
146
|
-
console.log(
|
|
147
|
-
} catch {
|
|
146
|
+
console.log(`${GREEN}✓${RESET} ${t(lang, "progress.gleamCompiled")}`);
|
|
147
|
+
} catch (e) {
|
|
148
|
+
const output = (e.stderr || e.stdout || "").toString();
|
|
149
|
+
if (output) console.error(output);
|
|
148
150
|
console.error(
|
|
149
151
|
`\n${YELLOW}${t(lang, "error.gleamCompileFail")}${RESET}`,
|
|
150
152
|
);
|
|
@@ -223,4 +225,7 @@ ${BOLD}${t(lang, "done.nextSteps")}${RESET}
|
|
|
223
225
|
${CYAN}gleam run -m glendix/build${RESET} ${DIM}${t(lang, "done.prodBuild")}${RESET}
|
|
224
226
|
${CYAN}gleam run -m glendix/marketplace${RESET} ${DIM}${t(lang, "done.marketplace")}${RESET}
|
|
225
227
|
`);
|
|
228
|
+
|
|
229
|
+
// etch TUI 이벤트 서버의 stdin 리스너가 이벤트 루프를 유지하므로 명시적 종료
|
|
230
|
+
process.exit(0);
|
|
226
231
|
}
|
package/template/gleam.toml
CHANGED