primefaces / primelocale

MIT License
77 stars 109 forks source link

Publish PrimeLocale to npm? #71

Closed 1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP closed 2 months ago

1EDExg0ffyXfTEqdIUAYNZGnCeajIxMWd2vaQeP commented 1 year ago

Would be simpler to use and update to newer versions.

melloware commented 1 year ago

Also has been mentioned on Discord and PrimeTek has put it on their list!

C0ZEN commented 1 year ago

I am so surprised that this is not the case already 🤔

Anders142536 commented 1 year ago

I tried to add this repository to our dependencies via github dependency syntax and the install fails, probably because there is no package.json file. Maybe just add that? I don't think it has to be hosted on npm necessarily.

melloware commented 1 year ago

Do you have instructions on how your included using GitHub syntax and then I can test and add a package.json. Thanks! I didn't know that was possible!

Anders142536 commented 1 year ago

Oh of course, I should have included a link to the documentation in the first message already: https://docs.npmjs.com/cli/v7/configuring-npm/package-json#github-urls

melloware commented 1 year ago

OK I added package.json but didn't test it yet if you want to test it: https://github.com/primefaces/primelocale/blob/main/package.json

Anders142536 commented 1 year ago

npm definitely treats this now as an npm package, but complains about trailing commas. i created a pull request that removes them

melloware commented 1 year ago

You should now be able to do this in your package.json

"dependencies": {
        "primelocale": "primefaces/primelocale",
Anders142536 commented 1 year ago

The only issue we see in this solution now is that our company internal caches for depenency packages will not automatically work with github dependencies. I guess other people will have the same issue, so maybe uploading it to npm repo still makes sense.

melloware commented 1 year ago

Agreed but according to the docs you can add a commit ID hash in your url and it will pull that version. Still not as good as in NPM but better than nothing

melloware commented 10 months ago

React example how to use PrimeLocale: https://stackblitz.com/edit/react-3glwrd?file=src%2FApp.tsx,package.json,src%2Findex.tsx

jerlam06 commented 10 months ago

Agreed but according to the docs you can add a commit ID hash in your url and it will pull that version. Still not as good as in NPM but better than nothing

@melloware What docs are you referring to please?

melloware commented 10 months ago

Sorry it's in the NPM docs for using just a git project like above. I had no idea you could do that.

PrimeTek is aware and is working on getting this released for real on NPMJS.

https://www.pluralsight.com/guides/install-npm-packages-from-gitgithub

PotatoesMaster commented 7 months ago

I guess this package is unofficial then.

melloware commented 7 months ago

It is and I asked him to take it down. It's way out of date and should be released by PrimeTek.

iwnow commented 5 months ago

npm i github:primefaces/primelocale

alexef commented 2 months ago

PrimeTek is aware and is working on getting this released for real on NPMJS.

is there another issue I can track?

melloware commented 2 months ago

@cagataycivici @tugcekucukoglu @cetincakiroglu any update on this?

melloware commented 2 months ago

1.0.0 is now published in NPM!

dbelob commented 2 months ago

1.0.0 is now published in NPM!

Thanks!

@melloware What is the future release strategy for new versions?

melloware commented 2 months ago

For me I can just cut a release whenever anyone needs one but doing it on every change feels right to me.

dbelob commented 2 months ago

doing it on every change feels right to me.

I agree with this opinion.

May be

melloware commented 2 months ago

totally agree with that semver approach!