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

Auto-update databases on a schedule #4

Open
bramus opened this issue Sep 6, 2024 · 3 comments · May be fixed by #11
Open

Auto-update databases on a schedule #4

bramus opened this issue Sep 6, 2024 · 3 comments · May be fixed by #11
Labels
enhancement New feature or request

Comments

@bramus
Copy link
Owner

bramus commented Sep 6, 2024

Use GitHub actions for this – https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#schedule

@bramus
Copy link
Owner Author

bramus commented Sep 10, 2024

Alternative: have the tool, when locally installed, try and update the databases all by itself. That way a new version doesn’t need to be released.

@bramus bramus linked a pull request Sep 12, 2024 that will close this issue
@bramus
Copy link
Owner Author

bramus commented Sep 12, 2024

I quickly knocked something up in #11 to tackle this.

Open questions regarding the implementation:

  • After having updated (with a locally changed package.json as a result), will a successive npm i -g @bramus/caniuse-cli work?
  • Will that actually work on Windows (I have only tested on macOS)?
  • What about yarn?
  • Maybe there are better ways to do this?
    • Requiring npm and invoking things like npm.commands.view doesn’t seem like a viable option, as it’d only work with NPM.

Open questions regarding when to trigger this:

  • Definitely not upfront.
  • Maybe automatically after caniuse was invoked?
    • But only once per week, perhaps
  • On a schedule?
  • Also: give users an option to opt-out?

/cc @tunetheweb

@bramus
Copy link
Owner Author

bramus commented Sep 12, 2024

Some more things I found:

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

Successfully merging a pull request may close this issue.

1 participant