Fix prettier formatting of ember-cli-build.js generated by blueprint#4
Fix prettier formatting of ember-cli-build.js generated by blueprint#4kategengler merged 13 commits intomainfrom
Conversation
|
@copilot It fails because |
Fixed in 17fa1f0. The issue was that |
|
@copilot This still fails with |
Fixed in ee8444f. Replaced the prettier invocation with a Node.js one-liner that removes consecutive blank lines directly — no external tool dependency needed: node -e "const fs=require('fs'),f='ember-cli-build.js';fs.writeFileSync(f,fs.readFileSync(f,'utf8').replace(/\n{3,}/g,'\n\n'));"Node.js is always available in any Ember project, so this works regardless of what's installed in |
|
@copilot The tutorial now fails on a lint rule: |
Done in 35a7391. Added
|
|
@copilot CI fails with corrupt patch |
Fixed in 432e8f2. The second patch in |
Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/9bf04b91-8d22-40cc-9ffb-5f144bcf7be1 Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
…id workspace resolution failure Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/a4ec274a-a2a9-460b-b6e0-5e182eafe2da Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
…ettier dependency) Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/142c473a-dc23-454e-aeda-231856edc23a Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
…ns on fetch() calls Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/c58ca7c0-f7a1-47c6-9065-c17ebc4d2214 Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
…xt in second patch of ch-08 Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/53ef86e9-8219-4a12-8647-01922f490fbc Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
432e8f2 to
89541c9
Compare
|
@copilot This is failing to apply a patch |
…comePage (blueprint 6.12.0 no longer emits @extension prop) Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/c39ee684-554a-4d7c-992b-035e52df3443 Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
…and add missing class-closing context line Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/4f6ae032-85bd-40a9-966e-f18209daa0e2 Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
Fixed in 48767e6. The two patches in chapter 11 had bare empty lines (
Both patches now apply cleanly via |
|
@copilot Another patch does not apply |
…lines (chapter 9 adds id to routes/index.js) Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/bd4fe9a9-923e-4cf4-9d02-254d194e0f9c Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
Fixed in abf4039. The |
|
@copilot It is failing on another prettier violation |
…e -e fix to also clean double blank lines in store.js Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/221324fc-b877-4e9a-a34c-0ab7a2d83bdc Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
Fixed in b92afeb. The generated |
|
@copilot This is still an issue |
Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/df39f9fc-3e83-4b1d-aec3-a78976672806 Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
|
@copilot Instead of doing that manual manipulation of the files to remove double empty lines, run |
Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/7f3f470e-7d7a-4758-8e59-51cc7cb4581f Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
|
@copilot it complains that concurrently is not found |
Agent-Logs-Url: https://github.com/ember-cli/super-rentals-tutorial-classic/sessions/6b19d100-bc7b-4f45-8ce1-e09336f7185f Co-authored-by: kategengler <444218+kategengler@users.noreply.github.com>
Summary
The beta and release CI builds were failing because
ember-cli-build.js, generated byember newusing@ember-tooling/classic-build-app-blueprint@6.12.0, has a double blank line beforereturn app.toTree()that prettier now rejects.Root cause: The blueprint's EJS template produces two consecutive blank lines when
warpDriveis enabled (which is the default since--no-ember-datais not passed). This double blank line violates prettier's formatting rules (singleQuote: trueconfig in the generated.prettierrc.js), causingpnpm lint:formatto fail.Changes
In
src/markdown/tutorial/part-1/01-orientation.md:run:commandblock after the.prettierignorepatch that runspnpm exec prettier ember-cli-build.js --writeto fix the formatting beforepnpm testis calledgit add ember-cli-build.jsto the existing commit block so the formatted file is included in the amended initial commit