Closed NullVoxPopuli closed 9 months ago
I was trying to run this in a codespace but the build keeps crashing. Either Webpack hangs forever
building... [@embroider/webpack]
or it eventually spits this out
SyntaxError: Bad control character in string literal in JSON at position 182711
at JSON.parse (<anonymous>)
at /workspaces/todomvc/examples/emberjs/todomvc/node_modules/.pnpm/thread-loader@3.0.4_webpack@5.88.2/node_modules/thread-loader/dist/WorkerPool.js:144:30
at Socket.onChunk (/workspaces/todomvc/examples/emberjs/todomvc/node_modules/.pnpm/thread-loader@3.0.4_webpack@5.88.2/node_modules/thread-loader/dist/readBuffer.js:40:9)
at Socket.emit (node:events:514:28)
at addChunk (node:internal/streams/readable:343:12)
at readableAddChunk (node:internal/streams/readable:316:9)
at Readable.push (node:internal/streams/readable:253:10)
at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
If you use node 20 or node 18.18, you'll have that issue.
Issue report here: https://github.com/nodejs/node/issues/49911
If you use node > 16 && < 18.18, you'll have success. If using volta, this'll be chosen for you
I was messing with this tonight to test out the Firefox framework detector stuff. Here's some issues I found
backburner.js.js
with duplicate extensions, but the detector looks for /backburner\.js$/
only. does polaris use this name, or is it a config issue in this project?repo.save()
but i think it wants to call repo.persist()
. the change doesn't survive a refreshdoes polaris use this name, or is it a config issue in this project?
its unrelated to Polaris, backburner.js, on disk, does actually have .js twice. it's weird. but I think older versions did not? Unsure.
double clicking doesn't let me edit a todo-item toggle-all calls
Is there a shared test suite for all the implementations?
I think that would help
@tcjr any other changes you'd like to see?
I added some tests!
Here is the actual implementation, removing all the boilerplate, if folks want to have something a bit more reviewable: https://github.com/NullVoxPopuli/todomvc-ember-polaris-tests-only/pull/1
@flashdesignory
did you update my remote? the work is done
git log should show you:
* 4f3696ac - fix another bug
| (7 weeks ago) <NullVoxPopuli>
| HEAD -> upgrade-ember, origin/upgrade-ember
to run:
cd examples/emberjs/todomvc
pnpm i
pnpm start # dev mode
to build for production
cd examples/emberjs/todomvc
pnpm i
rm -rf dist
pnpm build:production # this is what's committed
I've removed a comment that I didn't have enough context on, so your git log should show
* eef5a421 - Remove comment and rebuild
| (16 seconds ago) <NullVoxPopuli>
| HEAD -> upgrade-ember, origin/upgrade-ember
To run the production / built assets that are pushed in the dist directory
cd examples/emberjs/todomvc/dist
npx http-server # visit http://localhost:8080
thanks @NullVoxPopuli for the instructions on how to run! 🙏 I was testing the standalone pr, since that's more isolated. I'll try this branch with your instructions
@NullVoxPopuli - app looks great and your instructions helped!
Found one tiny bug:
what's supposed to be the behavior when clicking the toggle-all button when on the completed view?
I think the list of displayed todo items should update. I'm not sure if there's an official behavior, but this is what I've been using for the completed screen:
This is maybe just my opinion and not necessarily the correct one 🤷
@flashdesignory thanks!
I believe I've fixed it now
Updates the ember version of the todo app to the latest ember conventions.
there are some a11y issues, like a lack of
<form>
when we have form-like behavior, but I don't know how much flexibility the provided CSS gives usI tried to run the tests according to these docs: https://github.com/tastejs/todomvc/tree/master/tests
but I got this error:
did I do something wrong? as todomvc too out of date? :sweat_smile: (like, do I need super old node?)