Projects STRLCPY dum Commits 492495fa
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    CHANGELOG.md
     1 +## v0.1.11
     2 + 
     3 +- Resolve `node_modules/.bin` in parent directories too
     4 + 
    1 5  ## v0.1.10
    2 6   
    3 7  - Fallback to run binaries in `node_modules/.bin/` when specified script doesn't exist in `package.json`.
    skipped 26 lines
  • ■ ■ ■ ■ ■
    README.md
    skipped 42 lines
    43 43   
    44 44  ## Usage
    45 45   
     46 +`dum <npm_script|bin_script> [...args_to_forward]`: Run npm scripts or scripts in `node_modules/.bin`, like `yarn run`, `npm run`, `npx.
     47 + 
     48 +If you want to pass flags to `dum` itself, like the `-c` flag to change directory, you should put it before the script name, like `dum -c another/directory script_name --forward some_flag`.
     49 + 
     50 +Examples:
     51 + 
    46 52  ```bash
    47 53  dum some-npm-script
    48 54   
    skipped 1 lines
    50 56  # Like npx, but mush faster
    51 57  dum some-npm-package-cli-name --flags will --be forwarded
    52 58   
    53  -# Run `npm i` or `yarn` or `pnpm i` depending on the project
    54  -dum install # or `dum i`
    55  -# Like above but add packages
    56  -dum add react vue -D
    57  - 
    58 59  # Change working directory
    59 60  dum -c packages/sub-package build
    60 61   
    61 62  # More
    62 63  dum --help
     64 +```
     65 + 
     66 +### Install Packages
     67 + 
     68 +Dum is not a package manager yet, but we forward `install`, `add`, `remove` commands to npm, pnpm and yarn automatically:
     69 + 
     70 +```bash
     71 +# Run `npm i` or `yarn` or `pnpm i` depending on the project
     72 +dum install # or `dum i`
     73 +# Like above but add packages
     74 +dum add react vue -D
     75 + 
     76 +dum remove react vue
    63 77  ```
    64 78   
    65 79  ## Limitations
    skipped 15 lines
  • ■ ■ ■ ■ ■
    src/args.rs
    skipped 91 lines
    92 92   dum [OUR_FLAGS] [SCRIPT_NAME] [SCRIPT_ARGS]
    93 93   
    94 94  COMMANDS:
     95 + <script_name> Run an npm script (like npm run) or a script in node_modules/.bin (like npx)
    95 96   run Show a list of available scripts
    96  - run <script_name> Run a script
     97 + run <script_name> Run an npm script
    97 98   add <packages> Add packages to the current project
    98 99   i, install Install dependencies
    99 100   remove <packages> Remove packages from the current project
    skipped 41 lines
Please wait...
Page is in error, reload to recover