Skip to content

fix create-app script#135

Merged
patricklx merged 2 commits into
mainfrom
create-test-for-create-app
Jun 9, 2026
Merged

fix create-app script#135
patricklx merged 2 commits into
mainfrom
create-test-for-create-app

Conversation

@patricklx

@patricklx patricklx commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Update the test-create-app script to include error handling and output checks.

fixes #134

Update the test-create-app script to include error handling and output checks.

Rename .github/script/test-create-app.sh to scripts/test-create-app.sh

Add test step for create-app in CI workflow

Fix script to use local ember-tui path

Update test script for create-app workflow

Update GITHUB_RAW_BASE URL to main branch

Add content-tag to development dependencies installation

Update dependency installation command in create-app.js

Fix create-app test: download babel.config.mjs and add missing dependencies

- Download babel.config.mjs from ember-tui-demo to fix babel configuration
- Add @babel/plugin-proposal-decorators to dependencies list
- Add ember-native-devtools to dependencies list
- Update test script to use node instead of npx and improve process handling

Fix test-create-app.sh script

- Changed test approach from running the app to verifying structure
- The app hangs when started (no TTY in CI), so we verify:
  - App structure is created correctly
  - Template contains expected content
  - Build completes successfully
- Added missing basic-test.gts file for future test downloads

Delete ember-tui-demo/tests/basic-test.gts

Update test file download to example-test.gts

Simplify app creation script by removing checks

Removed structure verification tests for app creation.

Increase sleep duration before killing APP_PID

fix: mark node built-in modules as external in vite config

This prevents Vite from trying to bundle node:fs and other node built-in modules, which was causing the 'Failed to load url node:fs' error in the create-app test.

Update GITHUB_RAW_BASE URL for create-app.js

Clean up and install dependencies in test script

Remove unnecessary files and install dependencies for the app.

Fix script to create app and install dependencies

Add Babel syntax plugin for TypeScript support

pass from app

fix lint

fix

fix

run test

run test

Fix test-create-app script to use packed .tgz instead of linking

- Build ember-tui before creating test app
- Pack ember-tui as .tgz file
- Install from packed .tgz instead of using pnpm install with directory
- This approach works better in CI environments

Revert glimmerRuntime parameter from setup function

- Remove glimmerRuntime parameter from setup() function
- Move SimpleDynamicAttribute patching back to module level in setup.ts
- Remove glimmerRuntime import and parameter usage from app.ts and globalSetup.js
- Restore original setup() function signature without parameters

Add log file from test run

Delete ember-tui-demo/log.txt

Update test script to use loader.mjs like start script

Remove NODE_OPTIONS from test script

update
@patricklx patricklx force-pushed the create-test-for-create-app branch from 9c62e5e to f2de279 Compare June 9, 2026 14:27
Repository owner deleted a comment from git-online-helper Bot Jun 9, 2026
@patricklx patricklx merged commit da53a27 into main Jun 9, 2026
1 check passed
@patricklx patricklx added the bug Something isn't working label Jun 9, 2026
@github-actions github-actions Bot mentioned this pull request Jun 9, 2026
@patricklx patricklx changed the title create test for create-app fix create-app script Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create-app doesn't create a functioning app

1 participant