-
Notifications
You must be signed in to change notification settings - Fork 279
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
Publish to npm #560
Comments
Is there a model for this we can follow? Specifically, the fact that this is a module that requires a webserver to host it. I think it would be cool to do this. I notice that code.org does it: https://www.npmjs.com/package/@code-dot-org/bramble cc @Pomax, @cadecairos |
technically we don't even need to publish to NPM's registry, we just need to point to our location in the package.json dependencies. We can just make thimble require |
However, there are build steps required, which would still need to get run for that to be useful. How does one overcome that without checking in build artifacts in the tree? |
you can make that an npm postinstall in specifically our brackets' package.json to make the build run as part of the general install process though. |
That's an interesting thought. What about the runtime aspect? You wouldn't start an |
You wouldn't, you'd make brackets start up as part of starting up thimble. so here you'd have a
(with |
Excellent, we're getting somewhere. Some further thoughts:
|
|
I think we should move forward with this. I'm specifically concerned about version skew between what Thimble needs (i.e., what is available on the Bramble iframe API, basically which version it is) vs. what Brackets is currently running (i.e., This pattern is something we've done before, for example, with the make-api (server) and make-api-client lib. I wonder if we learned any lessons from that approach that we could improve on here (cc'ing @cadecairos and @simonwex). Basically, what we're going to end-up with is:
To this point, we haven't done anything about versioning. We just push A lot of people seem to deal with this problem by having versioned URLs of one form or another. Should we add a version to the URL we push to S3? Instead of just loading https://mozillalivepreview.net/production/dist/, maybe we should do https://mozillalivepreview.net/production/dist/version/ ? I'm raising this now because pretty soon I want to start doing the rest of the patches necessary for offline and service workers, and having this solved will eliminate or reduce issues we have to solve when we get there. |
hm, we could start with "not publishing to npm" but making sure we version things in git, so we can do |
We should publish and version bramble in npm (and git) so that users can just
npm install
it directly into their projects.The text was updated successfully, but these errors were encountered: