GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — What's the best way to install pre-commit for a npm/javascript project · Issue #1439 · pre-commit/pre-commit

What's the best way to install pre-commit for a npm/javascript project #1439

New issue
Copy link
New issue
Copy link
Open
Open
What's the best way to install pre-commit for a npm/javascript project#1439
Copy link
Labels
question

Description

@struys
struys
opened on May 6, 2020
Issue body actions

Curious if there's good examples of how to best do this, I would be happy to write up docs for it.

Is the answer make it an npm package?

Reacted by Sorin Sbarnea, Gabriel Tiburcio and Jimmie Högklint

Activity

  1. struys
    added
    question
    on May 6, 2020
  2. asottile commented on May 7, 2020

    @asottile
    asottile
    on May 7, 2020
    Member
    More actions

    that's a good question, I suspect we could build a package which does something similar to install-local.py but writes to node_modules/.bin or whatever?

    at my last employment, even for node projects, most developers did brew install pre-commit (and developed on their laptops) -- I myself don't work on any node projects so I'd be interested to hear from others that have this set up

  3. asottile commented on Sep 23, 2020

    @asottile
    asottile
    on Sep 23, 2020
    Member
    More actions

    in #1616 I'm making a zipapp, it's a pure-python executable zip which should be portable enough to stick into an npm package if desired

  4. dmwelch commented on Oct 8, 2021

    @dmwelch
    dmwelch
    on Oct 8, 2021
    More actions

    This isn't related, right? https://www.npmjs.com/package/pre-commit

  5. asottile commented on Oct 9, 2021

    @asottile
    asottile
    on Oct 9, 2021
    Member
    More actions

    correct, entirely unrelated

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    question

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.