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
CommonJS/RequireJS compatibility, Bower/NPM #6
Conversation
Would you please test this all and also edit the README for usage with all these things as well :D |
Hold your horses for a second. Please consider the following: Example,
Another thing I noticed, for instance
UPDATE: About versions: if no change has been made into the functionality of the code, except for the module implementations, UPDATE: One last thing: do the bower/require/etc implementation credits in the README, and not in all the UPDATE: Please don't move the scripts (eg. affix-native.min.js files) to dist folder, leave them where they are, that's where CDN bot takes new releases from, so it may be a problem. And I don't think they need to be there, the CDN is good enough to have If you're working locally, you can do a quick find replace, but please test everything twice so I make sure our next release (I don't know such stuff and cannot test it), you must know the CDN files must be perfect. Thanks for your attention :) |
Hey. Sorry, I must've been getting a little over-excited. o-o; I did all the tests locally - from Gulp, to the dist, to the RequireJS and such, all the way up. I wanted to make sure that the PR is complete. :) I'll fix the Readme and Once I commited that, I'll let you know! Kind regards, Ingwie PS: You are very welcome! |
oH i just noticed that I had a misunderstanding in the part of the readme. I'll add that in. In fact, I actually put it into |
Please check my updates to the above comment. FYI: I'm still updating that comment with further instructions, so please stick to it. |
I kinda did the doc-comment out of habbit. x) I'll fix that up for sure. Abut the However, if you prefer, I can change that behaviour to write |
The file naming must remain the same for |
Here you are! :) Pushed my changes as requested.
I also have a 0.9.7 tag on my local repo, but I have a feeling that this isn't popping up in the PR... |
Thank you, I'll check your repo and post here any comments. You should NOT worry about versioning in terms of my code, you should only check the versioning of your own NPM/REQUIRE/Bower implementation stuff. |
I want you to know, I have no problem having your name in the files, just that adding all people's name in the file would create a huge list overtime. Makes sense to have a list of contributors in the README, or a simple link to repository contributors :) |
Gotcha. :) Just wasn't sure about a good aproach to leave a tiny trail ^^ Gonna add that in. |
No need to be sad about my decision on naming, I think it's fair for all. |
Would this stuff require work with CDN files as well? Does it have an |
It does automatically fall back. Take a look into the files themselves. If Besides, the |
Please add YOUR name to all your files, example below, I will delete it from my files after merge, as said above. // Bootstrap Native Javascript // Bower/npm/Require implementation by Your Name |
Ohh, I get it. I only added "Edited by". Let me fix that into a proper line. |
Now it reads:
That this one look right? |
It's alright my friend, just your name should be in your own files only. |
Well I did modify every file in |
All YOUR files should have YOUR name credits (if you include me, it's ok, but not required), my files keep my name only. |
Alright, got it. Will push the commit in a sec. Also sorry if I confuse things; english is not my native language. I am actually german. ^^ |
No rush, take your time, test everything twice. |
If you care to put your name on it, I will let you know a much better way. |
Oh it's fine. :) There you are. The code is ready to merge. If you have anything else on your mind, let me know. |
OK now, last thing: please consider editing the html files, write a new section in the UPDATE: take your time, no need to rush. It's @#$% week-end :) |
CommonJS/RequireJS compatibility, Bower/NPM
I will! I am just going to do a last confirmation, and give out the HTML fix. I also spotted a little issue in my exporting function. Those, however, are fixed in less than a minute. You are very welcome! I'll be happy to use this in my project - and it is going to help me a lot! |
Alright, let me know when this is all tested, can you please provide some screenshots? I need to know this works perfect before I push a new version to the CDN. |
You can check my new project README :) |
Alright, I've made some changes to your files, checking everything, and waiting for your fix. |
bootstrap.native
can berequire()
'd now, and if loaded via a<script ...>
tag, it just turns back to it's old behaviour. In an environment withoutwindow
being defined, a factory function is returned. Otherwise, the actual plugin.cd
into the folder, you can create minified versions using Gulp. Thedist/
folder contains the latest snapshot..json
files should be correct.To use gulp:
And this will create a new distribution from
lib/
intodist/
.