-
Notifications
You must be signed in to change notification settings - Fork 146
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
Multi-packages split #327
Multi-packages split #327
Conversation
This comment has been minimized.
This comment has been minimized.
This is my PR, see :
EDIT :
|
135 files change because : (I will try to count files changed)
= 113 files
= 124 files 124 is near of 135, that seem good. |
@vladikoff Do you have news about @madarche ? No activity since 2 months :( I Just need to know if I need to make my change on my repos or here. |
@mozilla Sorry, but i don't have any news of a maintener of this repository (for my several PR since 2 months). |
I shall take a look at this during the week |
Hello all, I'm sorry for the absence. I've been trying hard to to devote some time to convict all this time. I'm back for as much as I can. |
First, I'm all for the proposed change: This goes in the right direction for making convict simpler and easier to maintain and contribute to. And we should release convict@6 when this PR is merged. Here are some remarks:
|
CHECKLIST : in progress.
|
moment is no longer a dependencie of convict
validator is no longer a dependencie of convict
These files will be missing if we download the package with npm and try to run lint but I think is not usefull to run eslint in node_module instead of github folder. |
You are right, those files will be missing if those packages are downloaded from the NPM registry to be tested! We, developers of Convict, are always working from the Git repository, but that might be useful for someone evaluating the convict packages from So I withdraw this remark. Sorry! And again thanks for the good insight. |
This reverts commit de09126. #327 (comment)
I agree with that
I don't think if we have several package in one we should add each format name. Because some people can extend/add format in validator package. Or maybe do something dynamically like that : convict.addFormats(require("convict-format-with-validator")({
"currency": "isCurrency",
"email": "isEmail"
}));
// or :
convict.addFormats(require("convict-format-with-validator")([ "currency", "email" ]));
// a function will add first uppercase and "is" to convert the format as validator function "currency" => "isCurrency" |
I'm 100% convinced! 😀 As for the names, I like |
@madarche done :D |
@madarche done |
@A-312 this is all very good, thanks! So I'm merging your work into In the next following days I'll be doing some very little edits in this branch and I'll be using this branch on some projects, before finally merging into |
fix: #321
fix: #317
validator and moment is no longer a dependencie of convict
WARNING :
Now, you should publish with
lerna publish
instead ofnpm publish