@ms-cloudpack/cli 0.1.1 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.json +70 -1
- package/CHANGELOG.md +30 -2
- package/lib/commands/start/startAppServer.js +8 -2
- package/lib/commands/start/startAppServer.js.map +1 -1
- package/lib/commands/start/startBundleServer.js +39 -26
- package/lib/commands/start/startBundleServer.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.json
CHANGED
|
@@ -2,7 +2,76 @@
|
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
3
|
"entries": [
|
|
4
4
|
{
|
|
5
|
-
"date": "
|
|
5
|
+
"date": "Thu, 26 May 2022 02:50:09 GMT",
|
|
6
|
+
"tag": "@ms-cloudpack/cli_v0.2.1",
|
|
7
|
+
"version": "0.2.1",
|
|
8
|
+
"comments": {
|
|
9
|
+
"patch": [
|
|
10
|
+
{
|
|
11
|
+
"author": "beachball",
|
|
12
|
+
"package": "@ms-cloudpack/cli",
|
|
13
|
+
"comment": "Bump @ms-cloudpack/bundler to v0.1.4",
|
|
14
|
+
"commit": "b50a4c1bf77e6c76ee8e148650ef2173df4a0ae2"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"author": "beachball",
|
|
18
|
+
"package": "@ms-cloudpack/cli",
|
|
19
|
+
"comment": "Bump @ms-cloudpack/package-utilities to v0.4.1",
|
|
20
|
+
"commit": "b50a4c1bf77e6c76ee8e148650ef2173df4a0ae2"
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"date": "Wed, 25 May 2022 21:40:45 GMT",
|
|
27
|
+
"tag": "@ms-cloudpack/cli_v0.2.0",
|
|
28
|
+
"version": "0.2.0",
|
|
29
|
+
"comments": {
|
|
30
|
+
"minor": [
|
|
31
|
+
{
|
|
32
|
+
"author": "dzearing@microsoft.com",
|
|
33
|
+
"package": "@ms-cloudpack/cli",
|
|
34
|
+
"commit": "c81fea1af8bedcd81366fbddb199dd2c0e6cbaa7",
|
|
35
|
+
"comment": "Updating the page to emit the right script url."
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
"author": "beachball",
|
|
39
|
+
"package": "@ms-cloudpack/cli",
|
|
40
|
+
"comment": "Bump @ms-cloudpack/bundler to v0.1.3",
|
|
41
|
+
"commit": "c81fea1af8bedcd81366fbddb199dd2c0e6cbaa7"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"author": "beachball",
|
|
45
|
+
"package": "@ms-cloudpack/cli",
|
|
46
|
+
"comment": "Bump @ms-cloudpack/package-utilities to v0.4.0",
|
|
47
|
+
"commit": "c81fea1af8bedcd81366fbddb199dd2c0e6cbaa7"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"author": "beachball",
|
|
51
|
+
"package": "@ms-cloudpack/cli",
|
|
52
|
+
"comment": "Bump @ms-cloudpack/path-utilities to v0.3.0",
|
|
53
|
+
"commit": "c81fea1af8bedcd81366fbddb199dd2c0e6cbaa7"
|
|
54
|
+
}
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"date": "Mon, 23 May 2022 23:22:13 GMT",
|
|
60
|
+
"tag": "@ms-cloudpack/cli_v0.1.2",
|
|
61
|
+
"version": "0.1.2",
|
|
62
|
+
"comments": {
|
|
63
|
+
"patch": [
|
|
64
|
+
{
|
|
65
|
+
"author": "beachball",
|
|
66
|
+
"package": "@ms-cloudpack/cli",
|
|
67
|
+
"comment": "Bump @ms-cloudpack/bundler to v0.1.2",
|
|
68
|
+
"commit": "13e46036a001233485b4950f80eaee2d62f5458b"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"date": "Sat, 21 May 2022 00:31:32 GMT",
|
|
6
75
|
"tag": "@ms-cloudpack/cli_v0.1.1",
|
|
7
76
|
"version": "0.1.1",
|
|
8
77
|
"comments": {
|
package/CHANGELOG.md
CHANGED
|
@@ -1,12 +1,40 @@
|
|
|
1
1
|
# Change Log - @ms-cloudpack/cli
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Thu, 26 May 2022 02:50:09 GMT and should not be manually modified.
|
|
4
4
|
|
|
5
5
|
<!-- Start content -->
|
|
6
6
|
|
|
7
|
+
## 0.2.1
|
|
8
|
+
|
|
9
|
+
Thu, 26 May 2022 02:50:09 GMT
|
|
10
|
+
|
|
11
|
+
### Patches
|
|
12
|
+
|
|
13
|
+
- Bump @ms-cloudpack/bundler to v0.1.4
|
|
14
|
+
- Bump @ms-cloudpack/package-utilities to v0.4.1
|
|
15
|
+
|
|
16
|
+
## 0.2.0
|
|
17
|
+
|
|
18
|
+
Wed, 25 May 2022 21:40:45 GMT
|
|
19
|
+
|
|
20
|
+
### Minor changes
|
|
21
|
+
|
|
22
|
+
- Updating the page to emit the right script url. (dzearing@microsoft.com)
|
|
23
|
+
- Bump @ms-cloudpack/bundler to v0.1.3
|
|
24
|
+
- Bump @ms-cloudpack/package-utilities to v0.4.0
|
|
25
|
+
- Bump @ms-cloudpack/path-utilities to v0.3.0
|
|
26
|
+
|
|
27
|
+
## 0.1.2
|
|
28
|
+
|
|
29
|
+
Mon, 23 May 2022 23:22:13 GMT
|
|
30
|
+
|
|
31
|
+
### Patches
|
|
32
|
+
|
|
33
|
+
- Bump @ms-cloudpack/bundler to v0.1.2
|
|
34
|
+
|
|
7
35
|
## 0.1.1
|
|
8
36
|
|
|
9
|
-
Sat, 21 May 2022 00:31:
|
|
37
|
+
Sat, 21 May 2022 00:31:32 GMT
|
|
10
38
|
|
|
11
39
|
### Patches
|
|
12
40
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// import type { Session } from './types.js';
|
|
2
2
|
import path from 'path';
|
|
3
3
|
import { slash } from '@ms-cloudpack/path-utilities';
|
|
4
|
-
import { createImportMap } from '@ms-cloudpack/package-utilities';
|
|
4
|
+
import { createImportMap, getPackageDefinition } from '@ms-cloudpack/package-utilities';
|
|
5
5
|
import { createExpressApp } from '@ms-cloudpack/create-express-app';
|
|
6
6
|
/**
|
|
7
7
|
* The app server hosts the appropriate routes for the web app, primarily returning html content
|
|
@@ -13,12 +13,18 @@ import { createExpressApp } from '@ms-cloudpack/create-express-app';
|
|
|
13
13
|
*/
|
|
14
14
|
export async function startAppServer(session, bundleServerUrl) {
|
|
15
15
|
const importMap = await createImportMap(session.resolveMap, bundleServerUrl);
|
|
16
|
+
const definition = await getPackageDefinition(session.appPath, true);
|
|
16
17
|
const { server, port } = await createExpressApp([5000, 5001, 5002, 5003], (app) => {
|
|
17
18
|
// Set up the express app routes.
|
|
18
19
|
app.get('*', async (req, res) => {
|
|
20
|
+
if (!definition) {
|
|
21
|
+
res.status(500).send(`There was no package.json located at "${session.appPath}".`);
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
19
24
|
const requestPath = slash(req.path.substring(1));
|
|
20
25
|
const requestExt = path.extname(requestPath);
|
|
21
|
-
|
|
26
|
+
// TODO: this should derive which scripts load for each route. getEntryScript(requestPath);
|
|
27
|
+
const entryScript = `${bundleServerUrl}/${definition.name}@${definition.version}/lib/index.js`;
|
|
22
28
|
console.log(`App server: Request: ${requestPath}, ext: ${requestExt}, ${port}`);
|
|
23
29
|
res.cookie('cloudpack-session-id', session.id);
|
|
24
30
|
res.set('Content-Security-Policy', `connect-src 'self' ws:;`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startAppServer.js","sourceRoot":"","sources":["../../../src/commands/start/startAppServer.ts"],"names":[],"mappings":"AAAA,6CAA6C;AAC7C,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"startAppServ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GAAG,CAAC,wBAAwB,WAAW,UAAU,UAAU,KAAK,IAAI,EAAE,CAAC,CAAC;YAEhF,GAAG,CAAC,MAAM,CAAC,sBAAsB,EAAE,OAAO,CAAC,EAAE,CAAC,CAAC;YAC/C,GAAG,CAAC,GAAG,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,CAAC;YAE9D,GAAG,CAAC,IAAI,CAAC;;;qCAGsB,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;;;uCAGhC,WAAW;;;OAG3C,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO;QACL,KAAK,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,KAAK,EAAE;QAC3B,IAAI;KACL,CAAC;AACJ,CAAC"}
|
|
@@ -20,9 +20,11 @@ export async function startBundleServer(session) {
|
|
|
20
20
|
app.get('*', async (req, res) => {
|
|
21
21
|
const requestPath = slash(req.path.substring(1));
|
|
22
22
|
const { packageName, version, filePath } = parseRequestInfo(requestPath);
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
|
|
23
|
+
const packageEntry = resolveMap[packageName];
|
|
24
|
+
const packagePath = !!version && packageEntry?.version === version
|
|
25
|
+
? packageEntry?.path
|
|
26
|
+
: packageEntry?.scopedVersions?.[version]?.path;
|
|
27
|
+
const force = req.query.force !== undefined;
|
|
26
28
|
console.log(`BundleServer: Request: "${packageName}@${version}${filePath}"`);
|
|
27
29
|
// If the package is missing, invalid arguments.
|
|
28
30
|
if (!requestPath || !packageName) {
|
|
@@ -38,23 +40,26 @@ export async function startBundleServer(session) {
|
|
|
38
40
|
res.status(404).send(`Unrecognized package "${packageName}".`);
|
|
39
41
|
return;
|
|
40
42
|
}
|
|
41
|
-
res.redirect(`/${packageName}@${resolvedPackage.version}
|
|
43
|
+
res.redirect(`/${packageName}@${resolvedPackage.version}${filePath}`);
|
|
42
44
|
return;
|
|
43
45
|
}
|
|
44
46
|
// If it's an unrecognized package, 404.
|
|
45
47
|
if (!packagePath) {
|
|
46
48
|
console.log(`BundleServer: Response (404): "${packageName}@${version}${filePath}"`);
|
|
47
|
-
res
|
|
49
|
+
res
|
|
50
|
+
.status(404)
|
|
51
|
+
.send(`The requested package "${packageName}@${version}${filePath}" was not found in the resolve map.`);
|
|
48
52
|
return;
|
|
49
53
|
}
|
|
50
54
|
// Create an identifier for the bundle.
|
|
55
|
+
const isExternal = isExternalPackage(packagePath);
|
|
51
56
|
const bundleId = hash({
|
|
52
57
|
name: packageName,
|
|
53
58
|
version: isExternal ? version : packagePath,
|
|
54
59
|
mode: session.mode,
|
|
55
60
|
});
|
|
56
61
|
// Derive where the output should be.
|
|
57
|
-
const outputPath = path.join(os.tmpdir(), 'cloudpack-output', `${filenamify(packageName)}-${
|
|
62
|
+
const outputPath = path.join(os.tmpdir(), 'cloudpack-output', `${filenamify(packageName)}-${version}-${bundleId}`);
|
|
58
63
|
let action = createdBundles[bundleId];
|
|
59
64
|
// If we haven't completed this bundle, enqueue it or piggyback on an existing run.
|
|
60
65
|
if (!action || force) {
|
|
@@ -64,25 +69,33 @@ export async function startBundleServer(session) {
|
|
|
64
69
|
pendingAction = pendingBundles[bundleId] = new Promise((resolve) => {
|
|
65
70
|
// Async helper so that we can await and call resolve.
|
|
66
71
|
async function createBundle() {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
packagePath,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
72
|
+
try {
|
|
73
|
+
console.log(`BundleServer: No previous action found, bundling: "${packageName}@${version}${filePath}"`);
|
|
74
|
+
await ensureDir(outputPath);
|
|
75
|
+
// This check shouldn't be required because we throw above if packagePath is undefined,
|
|
76
|
+
// but TypeScript insists it is necessary.
|
|
77
|
+
if (packagePath) {
|
|
78
|
+
const bundlerResult = await bundlePackage({
|
|
79
|
+
packagePath,
|
|
80
|
+
outputPath,
|
|
81
|
+
outputType: 'library',
|
|
82
|
+
});
|
|
83
|
+
console.log(`BundleServer: Bundle complete: ${outputPath}`);
|
|
84
|
+
createdBundles[bundleId] = {
|
|
85
|
+
id: bundleId,
|
|
86
|
+
packageName: packageName,
|
|
87
|
+
packageVersion: version,
|
|
88
|
+
packagePath,
|
|
89
|
+
outputPath,
|
|
90
|
+
result: bundlerResult.errors?.length == 0 ? 'success' : 'errors',
|
|
91
|
+
errors: bundlerResult.errors,
|
|
92
|
+
warnings: bundlerResult.warnings,
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
finally {
|
|
97
|
+
delete pendingBundles[bundleId];
|
|
98
|
+
}
|
|
86
99
|
return createdBundles[bundleId];
|
|
87
100
|
}
|
|
88
101
|
// Call the async function and tie it in with the promise.
|
|
@@ -108,7 +121,7 @@ export async function startBundleServer(session) {
|
|
|
108
121
|
}
|
|
109
122
|
});
|
|
110
123
|
});
|
|
111
|
-
console.log(`
|
|
124
|
+
console.log(`BundleServer: started (http://localhost:${port})`);
|
|
112
125
|
return {
|
|
113
126
|
close: () => {
|
|
114
127
|
writeJsonSync(bundleLookupPath, createdBundles);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startBundleServer.js","sourceRoot":"","sources":["../../../src/commands/start/startBundleServer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAgB,MAAM,kCAAkC,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAC;AACrD,OAAO,U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BAA4B;gBAC5B,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC,CAAC;aAC/C;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,OAAO,CAAC,GAAG,CAAC,2CAA2C,IAAI,GAAG,CAAC,CAAC;IAEhE,OAAO;QACL,KAAK,EAAE,GAAG,EAAE;YACV,aAAa,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC;YAChD,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC;QACD,IAAI;KACL,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ms-cloudpack/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "The Cloudpack command line interface - a tool for managing fast inner and outer looping in web apps.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -16,11 +16,11 @@
|
|
|
16
16
|
"cloudpack": "./lib/cloudpack.js"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@ms-cloudpack/bundler": "^0.1.
|
|
19
|
+
"@ms-cloudpack/bundler": "^0.1.4",
|
|
20
20
|
"@ms-cloudpack/create-express-app": "^0.1.0",
|
|
21
21
|
"@ms-cloudpack/json-utilities": "^0.0.3",
|
|
22
|
-
"@ms-cloudpack/package-utilities": "^0.
|
|
23
|
-
"@ms-cloudpack/path-utilities": "^0.
|
|
22
|
+
"@ms-cloudpack/package-utilities": "^0.4.1",
|
|
23
|
+
"@ms-cloudpack/path-utilities": "^0.3.0",
|
|
24
24
|
"commander": "^9.1.0",
|
|
25
25
|
"filenamify": "^5.1.0",
|
|
26
26
|
"fs-extra": "^10.1.0",
|