-
Notifications
You must be signed in to change notification settings - Fork 103
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
Make it easy to find dist (build) files. #150
Comments
The distributables are available through cdnjs, is there a particular reason you need them in the projects repo? |
I checked the cdnjs earlier. Not all versions (including the latest) available there. No particular reason; just to keep my lib always updated to the latest. |
The distributables on cdnjs are supposed to be updated automatically at npm publish iirc. Looks like something is broken. @nkbt any ideas? |
We could use the |
Maybe it takes some time for cdnjs to crawl and update packages?
|
Questions:
|
Current release is 2.1.0 (https://github.com/stampit-org/stampit/releases). Current published release on NPM is 2.1.0 (https://www.npmjs.com/package/stampit) Latest available build on CDNJS is 2.0.3 (https://cdnjs.com/libraries/stampit) We do not link prominently to CDNJS in the README. We do need to provide a /dist/ folder, at the very least for bower. Bower was built to prevent developers from having to fetch files from all over the planet, including from CDNJS. IMHO it also just makes sense to have a committed copy of stampit.js and stampit.min.js included with every release we tag. |
Build artifacts are usually not checked into source control, but I also don't see a problem with this for small library projects |
The Bower distribution is up and running with all of the releases: https://github.com/stampit-org/stampit-bower, and we have re-registered our Bower package to point there. |
<3 |
Let's get this issue closed. I think all we need to do now is link prominently to the dist options in the README. |
Wonderful! Thank you very much. On Thu, 23 Jul 2015 03:27 Eric Elliott notifications@github.com wrote:
|
Cool! Many thanks to @sethlivingston, @ericelliott, and the guys. OK, from now on: npm FTW!! I guess the link to cdnjs would be pretty much useful if someone (like me) wants to fiddle around with Stampit in some JS playground like https://jsfiddle.net/. 👍 |
Let's get this wrapped up by addressing CDNJS:
|
@sethlivingston CDNJS should have a UMD, but aren't we already compiling a UMD for CDNJS? =) |
I believe @sethlivingston made a rational proposal. CDNJS better contain UMD modules, not the CommonJS as it is now. Or CDNJS better be CommonJS thing? |
CDNJS needs to host the UMD modules. |
@sethlivingston Can you address the posting the bower disctibution to CDNJS please? |
I created a PR with CDNJS (cdnjs/cdnjs#5201) that tells CDNJS to pull from stampit-org/bower. When the PR has been approved, I will (finally!) close this issue. |
The PR has been merged. The UMD version of stampit 2.1 will be available on CDNJS in the next 24 hours, and no further action is required for CDNJS. When we update stampit-bower, CDNJS will be updated within an hour. |
Works like a charm in JSFiddle now. Many thanks! 🤘 |
Glad to hear, @dwiyatci, and thank you for testing that. |
Wonderful ending! |
The Bower release repo is down/no longer supported? |
It was superseded with stampit, and incorporated into stampit repo.
Why?
…On Thu, 2 Mar 2017, 23:22 Harm van der Werf ***@***.***> wrote:
The Bower release repo
<https://github.com/stampit-org/stampit-bower/issues> is down/no longer
supported?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABjCLxnlnGJ8H3T083YBr_61FPHo0Pdvks5rhrSUgaJpZM4FVISg>
.
|
Not according to Bower it seems. Bower dependency line in Result in cmd:
|
Could you please explain what does that output mean? I'm not a bower user. |
Sure. It seems like the "stampit" package is linked to the wrong repo. I'm not sure if I'm right, but it seems you need to unregister/re-register to the |
Since you're specifying the strict stampit version ("3.0.0"), would copying a dist file help? |
Ok. I'll try reregister in 24. It's midnight here. |
Sure thing. I took your advice and used it like this: This works! So I'm pretty sure a re-registering will work. Doesn't seem a |
Personally, I would encourage to use npm over bower.
Thanks for reporting. I'll fix asap.
…On Thu, 2 Mar 2017, 23:41 Harm van der Werf ***@***.***> wrote:
Sure thing. I took your advice and used it like this:
"stampit": "git://github.com/stampit-org/stampit.git#3.1.2"
This works!
Without the repo link it doesn't, even with a version of 3.1.2
So I'm pretty sure a re-registering will work. Doesn't seem a bower.json
in the repo is required, but I'm not sure about that.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABjCLysTaDdbR5KP55iBbrl5P9b3nrKfks5rhrjegaJpZM4FVISg>
.
|
Yeah, I hear that more often, but I'm working often with tasks like https://github.com/stephenplusplus/grunt-wiredep. So maybe I need to switch to an NPM variant, but I don't really see why Bower is such a bad thing actually. |
Hi @harm-less I'm thinking of staying off bower specific repo/support because bower is so cool that you can install any package like this: reduxjs/redux#1181 (comment) In stampit's case it's like this:
Or maybe like this (I didn't try yet):
AFAIK bower is mostly used for the browser side package management. Is it your case too? |
Created an anniversary PR #300 to explain how to install stampit via bower. |
@harm-less Looks like I fixed bower. Now |
@koresar Thanks a bunch, Bower has been revived (somewhat)! I'm indeed using Stampit within a browser. So Bower is a more logical choice indeed. However, when I temporarely started using It would of course be best if the Bower repo also natively supported the most used/stable versions of Stampit there (like Angular does), but I think that will not be handy for your guys to maintain. Just an FYI, at one of my own repos I have a Grunt task (task info) that does the releasing including the necessary changes for NPM and Bower automatically. Maybe an idea for the future if you want to keep it a bit easier to maintain. Last question, why is 2.0.3 much bigger in size than 3.1.*? A large optimization? P.s.: Congrats on the anniversary 👍 |
I revived the bower stampit at ~ 2017-03-05T13:00:00Z UTC If you want me to publish all the previous stampit versions (including v2.0.3) to bower - tell me.
AFAIK it does now (starting yesterday). We have a build system via rollup which generates few kind of builds. Check these out: https://unpkg.com/stampit@3.1.2/dist/ |
The master works fine, but you can't get another version:
Nice build script! So if you can make some versions available as tags in the Bower repo, Bower will be able to pick it up for you. |
Ah, I see what you mean. Sorry!!! I forgot to push the git tags. :( > git push --follow-tags
Counting objects: 7, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (7/7), done.
Writing objects: 100% (7/7), 1.14 KiB | 0 bytes/s, done.
Total 7 (delta 0), reused 0 (delta 0)
To https://github.com/stampit-org/stampit-bower.git
* [new tag] v1.0.2 -> v1.0.2
* [new tag] v1.1.0 -> v1.1.0
* [new tag] v1.2.0 -> v1.2.0
* [new tag] v2.0.2 -> v2.0.2
* [new tag] v2.1.0 -> v2.1.0
* [new tag] v3.0.6 -> v3.0.6
* [new tag] v3.1.2 -> v3.1.2 Now this works fine: Please try again. |
Awesome! Now it works like Bower (and I) expects ;) So far my experience with Stampit has been great! In practice it luckily makes a lot of sense as it seemed like it had a steep learning curve when I was reading about it. So thanks for this awesome library, you've gained a prototypal enhousiast ;) |
Glad to hear!
Cheers mate
…On Tue, 7 Mar 2017, 07:27 Harm van der Werf ***@***.***> wrote:
Awesome! Now it works like Bower (and I) expects ;)
I'm only missing 2.0.3, but I'll use 2.0.2 instead, that's probably no
problem.
So far my experience with Stampit has been great! In practice it luckily
makes a lot of sense as it seemed like it had a steep learning curve when I
was reading about it. So thanks for this awesome library, you've gained a
prototypal enhousiast ;)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#150 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABjCL4geDzzi8cqRFg-UMaZaHbz5MjcLks5rjGwZgaJpZM4FVISg>
.
|
Link prominently to all dist options in the README:
Original message
Hi guys,
could we have consistency of always having the dist file(s) included for each release? I mean, in the latest release v2.1.0, for example, it doesn't have this
dist
folder which containsstampit.js
andstampit.min.js
.Cheers
The text was updated successfully, but these errors were encountered: