Skip to content

Add Dev Container #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jun 14, 2025
Merged

Add Dev Container #213

merged 3 commits into from
Jun 14, 2025

Conversation

michielbdejong
Copy link
Collaborator

Adding the .devcontainer.json file is harmless to people who don't use it.
I added a note about its availability in the readme.
And I made the following changes

  • add scripts/dev to wrap around the initial install & reset commands (again, the presence of this file should be harmless to people who don't use it)
  • Change export NVM_DIR="$HOME/.nvm" to export NVM_DIR="${NVM_DIR:-$HOME/.nvm}" everywhere, to make this oneliner robust against environments (such as this one) that use a different NVM_DIR than ~/.nvm.
  • add an nvm install command to scripts/add, so that for instance node-solid-server can get its own preferred node version. As far as I know this command is a noop if the requested version from .nvmrc is already available on the host system (but if not then we need to think this through some more).

@michielbdejong
Copy link
Collaborator Author

I added the scripts/watch-css to scripts/dev and that now takes like 15 minutes.

Also, there is a build error:

[source-pane] [solid-panes] /workspaces/solidos/workspaces/solid-panes/src/versionInfo.ts
[source-pane] [solid-panes]   6:2  error  Parsing error: Invalid character

And although I can use CSS+mashlib on http://localhost:3000 as desired, I'm apparently not able to edit solid-panes code and then see the changes reflected. Maybe I should try building mashlib & restarting css manually

Copy link
Member

@timea-solid timea-solid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the improvements.

@bourgeoa bourgeoa merged commit 2452e76 into main Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants