-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
[Author] Add bulmaswatch w/ git auto-update via single package.json #11339
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops 😨 27969f9 CI test failed ❗
@jenil please take a look at CI build https://ci.cdnjs.com/cdnjs/cdnjs/8567 for details 📝 !
Most of the error will have corresponding explanation, so that you will know what's wrong and then try to fix it!
If you cannot understand the error message and need help, feel free to ask our maintainers
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenil congratulations! 6bddb78 CI test passed! ✅
Please wait for the further review from the maintainers!
For the details 📃, please take a look at ➡️ https://ci.cdnjs.com/cdnjs/cdnjs/8568, thank you 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work.
May I ask you how do you send this pull request? via GitHub website or use git command?
I think the commit should squash to one commit, if you use git command, we can help you how to do this.
But if you use GitHub website, it can't squash the commit.
If you want to try to use git command but worried cdnjs's repo is too huge. You could use sparseCheckout, it lets you check out only the files you want. Here is the tutorial: https://github.com/cdnjs/cdnjs/blob/master/documents/sparseCheckout.md
BTY, Would you change the commit message to the followings?
Add bulmaswatch w/ git auto-update via single package.json
close #10823
This will helpful to us to check the git log, and when this PR close, it will close the related issue.
Thank you for your contribution.
ajax/libs/bulmaswatch/package.json
Outdated
"autoupdate": { | ||
"source": "git", | ||
"target": "git://github.com/jenil/bulmaswatch.git", | ||
"fileMap": [{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's let {
move to next line.
Make same format as others.
ajax/libs/bulmaswatch/package.json
Outdated
"files": [ | ||
"bulmaswatch*.+(js|css|map)" | ||
] | ||
}] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's let ]
move to next line.
Make same format as others.
the fileMap
part as the followings:
"fileMap": [
{
"basePath": "",
"files": [
"bulmaswatch*.+(js|css|map)"
]
}
]
Hey @sufuf3! I sent the PR using the Github website. |
No. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops 😨 3c868e5 CI test failed ❗
@jenil please take a look at CI build https://ci.cdnjs.com/cdnjs/cdnjs/8618 for details 📝 !
Most of the error will have corresponding explanation, so that you will know what's wrong and then try to fix it!
If you cannot understand the error message and need help, feel free to ask our maintainers
@hare1039 help squash and correct commit message please. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenil congratulations! f6ff703 CI test passed! ✅
Please wait for the further review from the maintainers!
For the details 📃, please take a look at ➡️ https://ci.cdnjs.com/cdnjs/cdnjs/8624, thank you 😀
ajax/libs/bulmaswatch/package.json
Outdated
"themes" | ||
], | ||
"autoupdate": | ||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The position of this '{' is a little bit not in our format, but the review bot didn't catch it , so I think its fine.
ajax/libs/bulmaswatch/package.json
Outdated
{ | ||
"basePath": "", | ||
"files": [ | ||
"bulmaswatch*.+(js|css|map)" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't use this rule to fetch files from GitHub.
The file structure is [theme_name]/bulmaswatch.min.css
and
[theme_name]/bulmaswatch.min.css.map
I'm not sure what rules should we apply here.
@pvnr0082t Please give some advices on this PR. Should we list all theme_name
s ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hare1039 I forgot the basePath
should be default
@jenil could you modified the auto-update part as the followings? I'm sorry that I not notice the basePath
should be basePath
to get the files.
"autoupdate": {
"source": "git",
"target": "git://github.com/jenil/bulmaswatch.git",
"fileMap": [
{
"basePath": "default",
"files": [
"bulmaswatch*.+(js|css|map)"
]
}
]
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@sufuf3 We only need default
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenil then let's use the auto-update as the followings, this will get all the theme's files:
"autoupdate": {
"source": "git",
"target": "git://github.com/jenil/bulmaswatch.git",
"fileMap": [
{
"basePath": "",
"files": [
"*/bulmaswatch*.+(js|css|map)"
]
}
]
}
And the "filename": "bulmaswatch.min.css",
change to "filename": "default/bulmaswatch.min.css",
let it as the main file.
Thank you.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenil then let's use the auto-update as the followings, this will get all the theme's files:
"autoupdate": {
"source": "git",
"target": "git://github.com/jenil/bulmaswatch.git",
"fileMap": [
{
"basePath": "",
"files": [
"*/bulmaswatch*.+(js|css|map)"
]
}
]
}
And Let's change "filename": "bulmaswatch.min.css",
to "filename": "default/bulmaswatch.min.css",
@jenil any updates here or need help? Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops 😨 6a144e4 CI test failed ❗
@jenil please take a look at CI build https://ci.cdnjs.com/cdnjs/cdnjs/8703 for details 📝 !
Most of the error will have corresponding explanation, so that you will know what's wrong and then try to fix it!
If you cannot understand the error message and need help, feel free to ask our maintainers
Oops, branch is too old, I'll fix it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jenil congratulations! 086c605 CI test passed! ✅
Please wait for the further review from the maintainers!
For the details 📃, please take a look at ➡️ https://ci.cdnjs.com/cdnjs/cdnjs/8706, thank you 😀
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. 💯
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
@hare1039 @cdnjs/library-reviewer please help review this PR, thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@jenil 👍 |
Pull request for issue: #10823
Related issue(s): #11322
Checklist for Pull request or lib adding request issue follows the conventions.
Note that if you are using a distribution purpose repository/package, please also provide the url and other related info like popularity of the source code repo/package.
Profile of the lib
Essential checklist
Auto-update checklist
Git commit checklist