0.4.3 • Published 9 months ago
oopm v0.4.3
oopm
OOMOL Package Manager
Installation
pnpm add oopm
# or
pnpm add oopm -gUsage
oopm pack ./path/to/package
oopm install
oopm install package-name package-name2@version
oopm install ./path/to/package/
oopm install ./path/to/package.tgz
oopm publish
oopm publish ./path/to/packageAPI
import { pack, publish, install } from "oopm";
// pack(path: string, ignore: string[] = ["node_modules", ".git", ".DS_Store"])
await pack("./path/to/package");
await pack("./path/to/package", ["node_modules", "dist"]);
// publish(path: string, registry: string, token: string)
await publish("./path/to/package", "REGISTRY", "TOKEN");
// install(options: InstallAllOptions | InstallFileOptions | InstallPackageOptions)
// InstallAllOptions -> { distDir: string, all: true, workdir: string, token?: string }
// InstallFileOptions -> { distDir: string, file: string }
// InstallPackageOptions -> { distDir: string, workdir: string, deps: DepRaw[], token?: string, save: boolean }
// DepRaw -> { name: string, version?: string }
await install({
distDir: "./path/to/dist",
all: true,
workdir: "./path/to/workdir",
token: "TOKEN",
registry: "REGISTRY"
});
await install({
distDir: "./path/to/dist",
file: "./path/to/package.tgz"
});
await install({
distDir: "./path/to/dist",
workdir: "./path/to/workdir",
deps: [
{ name: "package-name", version: "1.0.0" },
{ name: "package-name2" }
],
token: "TOKEN",
save: true,
registry: "REGISTRY"
});0.3.9
12 months ago
0.3.15
10 months ago
0.3.14
11 months ago
0.3.13
11 months ago
0.3.12
11 months ago
0.3.11
11 months ago
0.3.10
11 months ago
0.3.0
1 year ago
0.2.0
1 year ago
0.3.6
12 months ago
0.3.5
1 year ago
0.3.8
12 months ago
0.3.7
12 months ago
0.4.1
9 months ago
0.3.2
1 year ago
0.4.0
10 months ago
0.3.1
1 year ago
0.4.3
9 months ago
0.3.4
1 year ago
0.4.2
9 months ago
0.3.3
1 year ago
0.1.2
1 year ago
0.1.4
1 year ago
0.1.3
1 year ago
0.1.1
1 year ago
0.1.0
1 year ago
0.0.0
13 years ago