Skip to content
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

Create package.json #1

Merged
merged 1 commit into from
Mar 30, 2021
Merged

Create package.json #1

merged 1 commit into from
Mar 30, 2021

Conversation

jfoclpf
Copy link
Contributor

@jfoclpf jfoclpf commented Mar 29, 2021

Nice list, thanks.
With this newly proposed file I can have this repo as dependency on my npm project and then get easily the latest version of your dist folder. See more info here: https://docs.npmjs.com/cli/v7/commands/npm-install

Nice list, thanks.
With this file I can have this repo as dependency on my npm project and then get easily the latest version of your dist folder. See here:
https://docs.npmjs.com/cli/v7/commands/npm-install
@petarov
Copy link
Owner

petarov commented Mar 29, 2021

Hi,
This is interesting. I haven't thought about npm publishing. I suppose you're using the diet/google-app-ids.json file in your project, right?

@jfoclpf
Copy link
Contributor Author

jfoclpf commented Mar 29, 2021

Hi @petarov , yes, I'm using that json, but now I need to copy-paste it to my project. With package.json I don't need to copy-paste it, I simply download the latest version of it when I update my project with npm update and then I have it locally. And you don't need to publish to npm, you just need that file, as then I can do npm install https://github.com/petarov/google-android-app-ids

or any of these options

npm install git+ssh://git@github.com:npm/cli.git#v1.0.27
npm install git+ssh://git@github.com:npm/cli#pull/273
npm install git+ssh://git@github.com:npm/cli#semver:^5.0
npm install git+https://isaacs@github.com/npm/cli.git
npm install git://github.com/npm/cli.git#v1.0.27
npm install mygithubuser/myproject
npm install github:mygithubuser/myproject

Check: https://docs.npmjs.com/cli/v7/commands/npm-install

@jfoclpf
Copy link
Contributor Author

jfoclpf commented Mar 29, 2021

And after you update the list you just need to do npm version patch to advance in the version, such that others know an update of the list is available

@petarov petarov merged commit 031db87 into petarov:master Mar 30, 2021
@petarov
Copy link
Owner

petarov commented Mar 30, 2021

Very cool! I didn't know about the npm install git:.. thing.
Thank you for your contrib 👍

@jfoclpf
Copy link
Contributor Author

jfoclpf commented Mar 30, 2021

great, I just did

npm install github:petarov/google-android-app-ids

and it worked perfectly as expected.

Perhaps you may want to add a note thereof in readme.md

@petarov
Copy link
Owner

petarov commented Mar 30, 2021

Sure, it's in the latest README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants