-
Notifications
You must be signed in to change notification settings - Fork 12
Conversation
@PeterDaveHello Could you please test it out? 😄 |
hmmmmmm ... I am afraid that I can not do it soon, but will do it after 2 weeks if you don't mind, currently working on some very important works, sorry. |
@PeterDaveHello So, could you test it out and give me feedback? 😄 I know time passes quickly. ⌛ |
oooooooops, 3 more days please ... btw, would you like to move this project to cdnjs organization? |
😄
@PeterDaveHello Sure! Maybe, can I get a little shiny donation? 😀 |
@IonicaBizau What does the donation actually mean here bro? |
@PeterDaveHello Some money on PayPal is always welcome! 😸 |
Ha, I really hope so I can do, but actually, I don't even get any money from this project yet. |
|
Can not handle(even let the user know) conflicts, would you like to fix it in this version or not? |
I will check it out.
It's better to fix it now since this is major release. |
@PeterDaveHello Why doesn't the above package pass the test? |
Which one? Do you have its dump? |
@PeterDaveHello |
I can not help without the dump, in fact, all the rules are in cdnjs's repo, you can check it out. |
The test error says:
@PeterDaveHello I don't really understand why this appears -- I added the blank line at the end and removed the 2 spaces on each line, still, it appears. Why? |
How about give me the raw/bump to debug! |
Okokok: ·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
···············································································································································································································✗·····················································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
·····································································································································································································································································
······················································································································································································································································
oclazyload
✗ oclazyload: format check
» oclazyload: package.json wrong format, correct one should be like this.
(Remove the first 2 spaces of each line and include blank line at end if you copy and paste this example)
{
"name": "oclazyload",
"version": "1.0.2",
"description": "Load modules on demand (lazy load) with angularJS",
"main": "dist/ocLazyLoad.js",
"author": "Olivier Combe <olivier.combe@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ocombe/ocLazyLoad",
"directories": {
"example": "examples"
},
"repository": {
"type": "git",
"url": "git://github.com/ocombe/ocLazyLoad.git"
},
"keywords": [
"lazy load",
"lazy-load",
"load on demand",
"module",
"angular",
"angularJS"
],
"bugs": {
"url": "https://github.com/ocombe/ocLazyLoad/issues"
},
"npmName": "oclazyload",
"npmFileMap": [
{
"basePath": "/dist",
"files": [
"*/"
]
}
],
"filename": "modules"
}
// valid-packages-test.js:158
✗ Broken » 14077 honored ∙ 1 broken (26.116s)
npm ERR! Test failed. See above for more details.
npm ERR! not ok code 0 |
Could you give the dump of package.json? |
$ cat ajax/libs/oclazyload/package.json
{
"name": "oclazyload",
"version": "1.0.2",
"description": "Load modules on demand (lazy load) with angularJS",
"main": "dist/ocLazyLoad.js",
"author": "Olivier Combe <olivier.combe@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ocombe/ocLazyLoad",
"directories": {
"example": "examples"
},
"repository": {
"type": "git",
"url": "git://github.com/ocombe/ocLazyLoad.git"
},
"keywords": [
"lazy load",
"lazy-load",
"load on demand",
"module",
"angular",
"angularJS"
],
"bugs": {
"url": "https://github.com/ocombe/ocLazyLoad/issues"
},
"npmName": "oclazyload",
"npmFileMap": [
{
"basePath": "/dist",
"files": [
"**/*"
]
}
],
"filename": "modules"
}
|
What's its md5 hash? c158f5f8b6375f1599ea86a86e0a158f? 59b6e9b10e03bef47986b9cf1df18adf? |
@PeterDaveHello Hmm, how to calculate that hash? $ md5sum ~/cdnjs/ajax/libs/oclazyload/package.json
3acaff315b09a6d75e6a340f466670dd /home/ionicabizau/cdnjs/ajax/libs/oclazyload/package.json |
Looks different, so I think you should better upload it to google drive or dropbox or somewhere else to let me download and test it, thanks! |
Isn't this enough? $ cat ~/cdnjs/ajax/libs/oclazyload/package.json
{
"name": "oclazyload",
"version": "1.0.2",
"description": "Load modules on demand (lazy load) with angularJS",
"main": "dist/ocLazyLoad.js",
"author": "Olivier Combe <olivier.combe@gmail.com>",
"license": "MIT",
"homepage": "https://github.com/ocombe/ocLazyLoad",
"directories": {
"example": "examples"
},
"repository": {
"type": "git",
"url": "git://github.com/ocombe/ocLazyLoad.git"
},
"keywords": [
"lazy load",
"lazy-load",
"load on demand",
"module",
"angular",
"angularJS"
],
"bugs": {
"url": "https://github.com/ocombe/ocLazyLoad/issues"
},
"npmName": "oclazyload",
"npmFileMap": [
{
"basePath": "/dist",
"files": [
"**/*"
]
}
],
"filename": "modules"
}
|
No is not. You can try to copy and paste, I can't get the same md5. |
hmmmm ... should remove the last blank line. |
@PeterDaveHello Pushed a fix to pull first from It's just a |
Actually, it should end with a new line character. Why? |
We use JSON.stringify too, I think JSON.stringify didn't bite, see: https://github.com/cdnjs/cdnjs/blob/master/auto-update.js#L185 if (stable.is(version) && semver.gt(version, pkg.version)) {
pkg.version = version;
fs.writeFileSync(libPatha, JSON.stringify(pkg, null, 2) + '\n', 'utf8');
} https://github.com/cdnjs/autoupdate/blob/master/updaters/git.js#L60 if(allFiles.length !==0 && stable.is(tag) && semver.gt(tag, package.version)){
console.log('Updated package.json to version'.green, tag);
var packagePath = path.normalize(path.join(__dirname, '../../cdnjs', 'ajax', 'libs', package.name, 'package.json')),
packageJSON = JSON.parse(fs.readFileSync(packagePath, 'utf8'));
packageJSON.version = tag;
fs.writeFileSync(packagePath, JSON.stringify(packageJSON, undefined, 2) + '\n');
} We don't have to have a empty new line at the end of file, that doesn't make sense, some coding style even disallow it, and most of the libs don't do that, for examples: |
Exactly! So I need to handle that little |
@PeterDaveHello Now it should work. The tests are passing. 😄 |
👍 |
@PeterDaveHello If you like, we can move it in @cdnjs. 🎉 Got stable! |
@IonicaBizau Let's do it. We can discuss the detail on gitter 👍 |
Hey @PeterDaveHello @Piicksarn @maruilian11! ✨ Could you please test these changes and give me feedback? I'm going to release the new version this week. 🎉 |
hmmmm ... I need more time, working on other important issue right now. |
@PeterDaveHello Good idea! |
Nice 👍 @ryankirkman: @IonicaBizau wanna post the info about the new version of importer on twitter, would you please help him? I have no permission on it~ |
@ryankirkman Yeah, an update would be welcome! 😄 |
Certainly gentlemen, here it is: https://twitter.com/cdnjs/status/650938062713688065 Thank you @IonicaBizau ! |
@ryankirkman thanks |
@ryankirkman @PeterDaveHello Thanks, guys! ✨ Sorry it took so long to release the new version. |
@IonicaBizau no problem! |
clp
. Fixed Use CLP as arguments parser #9.