146

GitHub - maxchehab/quickfix: The best stupid idea for fixing problems in node mo...

 7 years ago
source link: https://github.com/maxchehab/quickfix
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

You've worked 8,000 million-bazillion hours on 4 cups of coffee a minute trying to fix some stupid bug. It's 2am. If it's not fixed by morning Australia will cease to be a country.

You've found it. It's in a dependency of a dependency of a dependency. You've gone one too many layers deep. Making a mirror is gonna take too much time so you just edit the code directly.

You can't commit node_modules. Your code's gonna be deleted.

Poof. Gone. Never to be seen again.

but wait

But wait.

Hold up.

There's a stupid solution. An amazing, Australia-saving, stupid solution:

$ quickfix push

Quickfix will save your changes to a __quickfix__ folder, and then later you can run quickfix to update your node_modules with your 2am decisions once again.

Boom. Work saved.

Installation

Local (preferred)

$ yarn add --dev quickfix

Add npm-scripts and add quickfix as a postinstall hook in your package.json:

{
  "scripts": {
    "quickfix": "quickfix",
    "quickfix:push": "quickfix push",
    "postinstall": "quickfix"
  }
}

After making changes in node_modules run the command:

$ yarn quickfix:push

To update changes after installing a workspace using quickfix run:

$ yarn quickfix

Global

$ yarn global add quickfix

Add quickfix as a postinstall hook in your package.json:

{
  "postinstall": "quickfix"
}

After making changes in node_modules run the command:

$ quickfix push

To update changes after installing a workspace using quickfix run:

$ quickfix

68747470733a2f2f6d656469612e67697068792e636f6d2f6d656469612f336f726966695471795156613163547049632f67697068792e676966

</article


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK