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
Question: When does the available locales array get created in the file system? #1
Comments
@adammcarth Thank you for your interest in this repo Adam. Right now, when you run It is important to understand that this But as I create that file whenever I build and publish a new version of the package, I am using a dev dependency of Therefore, as of today, If that's the case, that
Yes, if you want to be sure that the
Well, I wasn't aware that there is a Could you please provide a resource for that? Is it a feature supported both by NPM and yarn? Anyway, I am on my way to document this package with a README, I am just searching for a good JSDoc to Markdown generator so that I can automate this process. If you could advise a tool for this, it would be helpful too! I hope I was esplicative and clear enough. If you have an idea and want to contribute to this, for now, simple and tiny project, that will also be appreciated. Thank you! |
@adammcarth I have added a README file. Let me know if you find it clear. |
@adammcarth I plan to close this issue, please, let me know if there is anything else I could clarify for you about how the creation of the locales with |
Sorry for taking so long to get back to you @tonix-tuft! You answered all my questions, so feel free to close this :) I personally think that generating the locales automatically on You can checkout the (limited) documentation here. It's valid for npm and yarn. It's actually very simple, you just place a command inside your package.json and it will automatically get executed after your package is installed. // package.json
{
"scripts": {
...
"generate-locales": "...",
"postinstall": "generate-locales"
}
} I would definitely consider using this package for our React Native apps if the process of generating that locale file was more future proof! Cheers, Adam. |
Thank you Adam! I will check the link you posted. The only doubt I have is that What happens if the Also, For now, I am closing this issue, if I come up with something I will write another comment here.
Note that if you add |
Hi Anton,
I came here from this comment - thanks for creating and sharing your package with us.
I have a question that I haven't been able to easily determine by looking through the code.
When does the
res
folder get created (at which point the momentjs locales files is also made)? I was thinking it might have been apostinstall
script in thepackage.json
file, but I couldn't see anything.Is it up to the developers to manually run the script which creates this
res
folder/files as part of their build steps?The text was updated successfully, but these errors were encountered: