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
Crossplatform build system #160
Comments
Yeah, this is a huge problem that we ran into yesterday. Now that we're using jspm, we can't use jquery-sparkline because it won't build on windows. That's a shame, because it's a great library, but we're going to have to look at an alternative package now |
Why build it at all? The repo is explicitly for development, not for production distribution. All these tools that conflate the two are broken. If you want to use it on windows, just download it http://omnipotent.net/jquery.sparkline/2.1.2/jquery.sparkline.min.js.gz - simple. I'm sure whatever build system you're using is capable of that. If someone wants to package it and upload it to a distribution service, then great, but that's should have little to do with the github repo. |
@gwatts, thanks for reply. After a small research I found two different questions: One is that user @imsky who published jquery.sparkline to npm didn't include build artefacts in it. Our issue can be solved either by including build artefacts there or by pushing alternative jquery.sparkline into npm. Second question is that build tool for this lib is a bit hard to use on Windows and in general is not a usual way of building js libraries nowadays. But build tool is a very personal thing so if author used to make and don't want to change it I can totally understand it. So I will talk to @imsky if he can include builded version too. |
I used Makefiles as they were convenient for me at the time, and very simple. If someone wants to put the effort into an npm based build setup and package.json that works cross-platform, that'd be fine with me. The one thing I don't want is built artifacts in this source repo (eg. dist/jquery.sparkline.js) |
My mistake - I'll look into regenerating the package with build artifacts. |
Thanks @imsky. That would be really helpful for windows users. @gwatts I did a prototype with build script written in javascript #165. Although with having artefacts in npm package I am not sure if it solves any real problem. I don't think there are a lot of windows developers who want to contribute. So I did it mostly as a proof of concept.
Totally agree with it. |
Following up on this - let me know if it's still necessary. |
@imsky Yes, it would be really helpful if you can regenerate a package to include build artifacts. |
OK, will do tonight |
Done. v2.3.2 should include the full and minified artifacts. For any subsequent PRs, please submit them to https://github.com/imsky/jquery.sparkline |
Thanks @imsky. Everything works great, even on windows |
What do you think about replacing build system based on makefile and shell commands with something cross-platform? I am mostly talking about Windows users who don't have these great tools.
I know it is a big change in workflow but it has two advantages:
NPM itself may be a good candidate for the build tool because it has a way to explicitly specify tools as dependencies (no need to install uglify-js separately) and in general is convenient for javascript projects.
What do you think regarding it?
The text was updated successfully, but these errors were encountered: