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
- Host: GitHub
- URL: https://github.com/qddegtya/pm
- Owner: qddegtya
- License: mit
- Created: 2021-01-31T13:35:43.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-31T16:04:33.000Z (almost 2 years ago)
- Last Synced: 2025-03-02T09:45:35.965Z (over 1 year ago)
- Topics: lerna, lernajs, monorepo, tool
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
💡 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