An open API service indexing awesome lists of open source software.

https://github.com/qddegtya/pm

📦 A tiny package manager
https://github.com/qddegtya/pm

lerna lernajs monorepo tool

Last synced: 21 days ago
JSON representation

📦 A tiny package manager

Awesome Lists containing this project

README

          




pm







💡 Monorepo Tiny Package Manager = Packages + Handles.




You may not need lerna.






# About

📦 a tiny package manager.

# Quick Start

### Step 1

```
$ npm install -D @atools/pm
```

### Step 2

```
"scripts": {
"pm_install": "./node_modules/.bin/pm run install"
}
```

### Advanced Usage

> .pmrc.js

```javascript
const path = require("path");
module.exports = {
root: path.join(__dirname, "./_fixtures/packages"),
hooks: {
cmd: {
beforeExec: function (cmd) {
if (cmd === "npm i") {
return "cnpm ii";
} else if (cmd === "npm uninstall") {
return "cnpm uninstall";
}
},
},
},
};
```

# Internal Handles

* cmd / install
* cmd / uninstall