-
-
Notifications
You must be signed in to change notification settings - Fork 22
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
Request: Publish binaries as NPM package #19
Comments
I am not sure this is a good idea. Tweego can be used in projects on systems that do not even use Using There already are some other projects around that have tweego setups similar to what you are requesting, e.g., ChapelR/tweego-setup. |
To clarify, I'm not suggesting the current distribution channel be removed, just that the binaries be mirrored on npmjs. Nothing would change for folks that don't use NPM. That being said, given the audience that Tweego is targeting I think you'd be hard pressed to find a user that doesn't already have NPM installed. The example you shared requires users to manually install Tweego on their system and set the $PATH, which adds friction. NPM would be a convenience so you only need to run a single command to have a working dev environment. Also it would ensure your dev tools are versioned together, so the builds run the same on each system. Just for a simple project I find myself using 3 other NPM tools ( To me, it's not important what language the tool was written in, it's about the use case. Tweego is a tool for building web pages, and NPM is the defacto package manager for web developers. Related: https://www.npmjs.com/package/go-npm |
@mattrossman Perhaps you have valid points, however:
I think I qualify here as I use tweego often and rarely on systems where I am using
I agree that example is dated and could be better but the point I was trying to make is nothing is keeping you from repackaging tweego and distributing it yourself on I appreciate the clarification. |
Good idea, I've never published on npm before but I'll look into how I might repackage it :) |
I've been resistant to this idea in the past for various reasons, but I suppose an NPM package wouldn't be the end of the world. I'll look into it. |
I've put together a working example here: https://github.com/mattrossman/tweego-node Right now it just downloads version 2.1.1 but ideally the node package versions would mirror the Tweego version. |
You will likely want to look at something like: https://api.github.com/repos/tmedwards/tweego/releases The package could also be hosted at GitHub, e.g.:
I am not sure but I believe these can even be made private so @mattrossman could solve this just for himself and @tmedwards could come up with a more permanent solution later, etc. |
It would be super handy to be able to bootstrap a Tweego project with a simple
npm install tweego
and then be able to set up a
package.json
with scripts likeThis would make projects more portable since the Tweego dependency would be clearly defined and automatically pulled along with any other web development tools like
live-server
on annpm install
, rather than requiring users to manually download the appropriate binary and add it to their PATH.The text was updated successfully, but these errors were encountered: