forked from neonious/lowsync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.ts
More file actions
34 lines (23 loc) · 817 Bytes
/
test.ts
File metadata and controls
34 lines (23 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { installModules } from './common/src/pkgman/install';
import { join } from 'path';
import chalk from 'chalk';
process.on('unhandledRejection', (reason, p) => {
console.error(
chalk.white.bgRed('Unhandled Rejection at: Promise' + p, 'reason:', reason)
);
});
installModules({
destPath: join(__dirname, 'finalinstall'),
installPackages: ['lodash'],
path: join(__dirname, 'internalnodemodules')
});
/*
user machen lowsync pkg install ....
ls holt existierende name/version dict von MC
macht getzip (dict,new installs) und holt ein buffer obj, was ich an
POST /api/PkgManSetModules {...new pkg name/vers} schicke
bei lowsync pkg uninstall mach ich dasselbe und schicke
POST /api/PkgManSetModules [deleted pkg names]
mit lowsync pkg ls mache ich
POST /api/PkgManList => { name:version }
*/