Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maxchehab/quickfix
The best stupid idea for fixing problems in node modules.
https://github.com/maxchehab/quickfix
command-line-tool node npm
Last synced: 2 days ago
JSON representation
The best stupid idea for fixing problems in node modules.
- Host: GitHub
- URL: https://github.com/maxchehab/quickfix
- Owner: maxchehab
- Created: 2017-11-15T22:13:21.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-07T09:16:37.000Z (about 2 years ago)
- Last Synced: 2025-01-13T02:06:45.243Z (9 days ago)
- Topics: command-line-tool, node, npm
- Language: JavaScript
- Homepage:
- Size: 336 KB
- Stars: 269
- Watchers: 7
- Forks: 20
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Why?
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](https://media.giphy.com/media/11FRmJRii0I8iA/giphy.gif)
But **wait**.
* Wait
* Wait
* 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)
```bash
$ yarn add --dev quickfix
```Add `npm-scripts` and add `quickfix` as a `postinstall` hook in your `package.json`:
``` json
{
"scripts": {
"quickfix": "quickfix",
"quickfix:push": "quickfix push",
"postinstall": "quickfix"
}
}
```After making changes in `node_modules` run the command:
```bash
$ yarn quickfix:push
```
To update changes after installing a workspace using quickfix run:```bash
$ yarn quickfix
```### Global
```bash
$ yarn global add quickfix
```Add `quickfix` as a `postinstall` hook in your `package.json`:
``` json
{
"postinstall": "quickfix"
}
```After making changes in `node_modules` run the command:
```bash
$ quickfix push
```To update changes after installing a workspace using quickfix run:
```bash
$ quickfix
```