rollup-plugin-zephyr 0.0.12 → 0.0.14
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/LICENSE +39 -0
- package/README.md +0 -9
- package/dist/index.js.map +1 -0
- package/{src → dist}/lib/rollup-plugin-zephyr.d.ts +2 -1
- package/dist/lib/rollup-plugin-zephyr.js +111 -0
- package/dist/lib/rollup-plugin-zephyr.js.map +1 -0
- package/dist/lib/utils/get-assets-map.d.ts +3 -0
- package/dist/lib/utils/get-assets-map.js +22 -0
- package/dist/lib/utils/get-assets-map.js.map +1 -0
- package/dist/lib/utils/get-dash-data.d.ts +40 -0
- package/dist/lib/utils/get-dash-data.js +9 -0
- package/dist/lib/utils/get-dash-data.js.map +1 -0
- package/dist/package.json +20 -0
- package/package.json +8 -7
- package/src/index.js.map +0 -1
- package/src/lib/rollup-plugin-zephyr.js +0 -187
- package/src/lib/rollup-plugin-zephyr.js.map +0 -1
- /package/{src → dist}/index.d.ts +0 -0
- /package/{src → dist}/index.js +0 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
...
|
|
13
|
+
|
|
14
|
+
END OF TERMS AND CONDITIONS
|
|
15
|
+
|
|
16
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
17
|
+
|
|
18
|
+
To apply the Apache License to your work, attach the following
|
|
19
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
20
|
+
replaced with your own identifying information. (Don't include
|
|
21
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
22
|
+
comment syntax for the file format. We also recommend that a
|
|
23
|
+
file or class name and description of purpose be included on the
|
|
24
|
+
same line as the copyright notice for each file. The "copyright"
|
|
25
|
+
word should be left as is (without quotes).
|
|
26
|
+
|
|
27
|
+
Copyright [2023] [Zephyr Cloud]
|
|
28
|
+
|
|
29
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
30
|
+
you may not use this file except in compliance with the License.
|
|
31
|
+
You may obtain a copy of the License at
|
|
32
|
+
|
|
33
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
34
|
+
|
|
35
|
+
Unless required by applicable law or agreed to in writing, software
|
|
36
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
37
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
38
|
+
See the License for the specific language governing permissions and
|
|
39
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
# rollup-plugin-zephyr
|
|
2
2
|
|
|
3
|
-
This library was generated with [Nx](https://nx.dev).
|
|
4
|
-
|
|
5
|
-
## Building
|
|
6
|
-
|
|
7
|
-
Run `nx build rollup-plugin-zephyr` to build the library.
|
|
8
|
-
|
|
9
|
-
## Running unit tests
|
|
10
|
-
|
|
11
|
-
Run `nx test rollup-plugin-zephyr` to execute the unit tests via [Jest](https://jestjs.io).
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwD;AAA/C,kHAAA,UAAU,OAAA"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { NormalizedOutputOptions, OutputBundle } from 'rollup';
|
|
1
|
+
import { InputOptions, NormalizedOutputOptions, OutputBundle } from 'rollup';
|
|
2
2
|
export declare function withZephyr(): {
|
|
3
3
|
name: string;
|
|
4
|
+
buildStart: (options: InputOptions) => Promise<void>;
|
|
4
5
|
writeBundle: (options: NormalizedOutputOptions, bundle: OutputBundle) => Promise<void>;
|
|
5
6
|
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.withZephyr = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const zephyr_edge_contract_1 = require("zephyr-edge-contract");
|
|
6
|
+
const zephyr_agent_1 = require("zephyr-agent");
|
|
7
|
+
const get_assets_map_1 = require("./utils/get-assets-map");
|
|
8
|
+
const get_dash_data_1 = require("./utils/get-dash-data");
|
|
9
|
+
const getInputFolder = (options) => {
|
|
10
|
+
if (typeof options.input === 'string')
|
|
11
|
+
return options.input;
|
|
12
|
+
if (Array.isArray(options.input))
|
|
13
|
+
return options.input[0];
|
|
14
|
+
if (typeof options.input === 'object')
|
|
15
|
+
return Object.values(options.input)[0];
|
|
16
|
+
return process.cwd();
|
|
17
|
+
};
|
|
18
|
+
function withZephyr() {
|
|
19
|
+
let _state;
|
|
20
|
+
return {
|
|
21
|
+
name: 'with-zephyr',
|
|
22
|
+
buildStart: (options) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
_state = (function zephyr_init() {
|
|
24
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
+
(0, zephyr_edge_contract_1.ze_log)('Setting up zephyr agent configuration.');
|
|
26
|
+
const isCI = false;
|
|
27
|
+
const _zephyrOptions = { wait_for_index_html: false };
|
|
28
|
+
const path_to_execution_dir = getInputFolder(options);
|
|
29
|
+
const [packageJson, gitInfo] = yield Promise.all([
|
|
30
|
+
(0, zephyr_agent_1.getPackageJson)(path_to_execution_dir),
|
|
31
|
+
(0, zephyr_agent_1.getGitInfo)(),
|
|
32
|
+
]);
|
|
33
|
+
const application_uid = (0, zephyr_edge_contract_1.createApplicationUID)({
|
|
34
|
+
org: gitInfo.app.org,
|
|
35
|
+
project: gitInfo.app.project,
|
|
36
|
+
name: packageJson.name,
|
|
37
|
+
});
|
|
38
|
+
yield (0, zephyr_agent_1.checkAuth)();
|
|
39
|
+
const [appConfig, buildId, hash_set] = yield Promise.all([
|
|
40
|
+
(0, zephyr_agent_1.getApplicationConfiguration)({ application_uid }),
|
|
41
|
+
(0, zephyr_agent_1.getBuildId)(application_uid),
|
|
42
|
+
(0, zephyr_agent_1.get_hash_list)(application_uid),
|
|
43
|
+
]);
|
|
44
|
+
const { username, email, EDGE_URL } = appConfig;
|
|
45
|
+
(0, zephyr_edge_contract_1.ze_log)('Got application configuration: ', { username, email, EDGE_URL });
|
|
46
|
+
(0, zephyr_edge_contract_1.ze_log)(`Got build id: ${buildId}`);
|
|
47
|
+
if (!buildId)
|
|
48
|
+
return (0, zephyr_edge_contract_1.ze_error)("BU10019", 'Could not get build id.');
|
|
49
|
+
const pluginOptions = {
|
|
50
|
+
pluginName: 'rollup-plugin-zephyr',
|
|
51
|
+
application_uid,
|
|
52
|
+
buildEnv: 'local',
|
|
53
|
+
username,
|
|
54
|
+
app: {
|
|
55
|
+
name: packageJson.name,
|
|
56
|
+
version: packageJson.version,
|
|
57
|
+
org: gitInfo.app.org,
|
|
58
|
+
project: gitInfo.app.project,
|
|
59
|
+
},
|
|
60
|
+
git: gitInfo.git,
|
|
61
|
+
isCI: isCI,
|
|
62
|
+
zeConfig: {
|
|
63
|
+
user: username,
|
|
64
|
+
edge_url: EDGE_URL,
|
|
65
|
+
buildId: buildId,
|
|
66
|
+
},
|
|
67
|
+
mfConfig: void 0,
|
|
68
|
+
wait_for_index_html: _zephyrOptions === null || _zephyrOptions === void 0 ? void 0 : _zephyrOptions.wait_for_index_html,
|
|
69
|
+
};
|
|
70
|
+
return {
|
|
71
|
+
appConfig,
|
|
72
|
+
buildId,
|
|
73
|
+
hash_set,
|
|
74
|
+
pluginOptions,
|
|
75
|
+
};
|
|
76
|
+
});
|
|
77
|
+
})();
|
|
78
|
+
}),
|
|
79
|
+
writeBundle: (options, bundle) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
80
|
+
const zeStart = Date.now();
|
|
81
|
+
yield (function zephyr_upload(props) {
|
|
82
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
(0, zephyr_edge_contract_1.ze_log)('zephyr agent started...');
|
|
84
|
+
const { state, bundle } = props;
|
|
85
|
+
const _state = yield state;
|
|
86
|
+
if (!_state)
|
|
87
|
+
return (0, zephyr_edge_contract_1.ze_error)("BU10020", 'Could not initialize Zephyr Agent.');
|
|
88
|
+
const { appConfig, hash_set, pluginOptions } = _state;
|
|
89
|
+
const assetsMap = (0, get_assets_map_1.getAssetsMap)(bundle);
|
|
90
|
+
const missingAssets = (0, zephyr_agent_1.get_missing_assets)({ assetsMap, hash_set });
|
|
91
|
+
yield (0, zephyr_agent_1.upload)({
|
|
92
|
+
pluginOptions,
|
|
93
|
+
assets: {
|
|
94
|
+
assetsMap,
|
|
95
|
+
missingAssets,
|
|
96
|
+
outputPath: options.dir,
|
|
97
|
+
count: Object.keys(bundle).length,
|
|
98
|
+
},
|
|
99
|
+
getDashData: get_dash_data_1.getDashData,
|
|
100
|
+
appConfig,
|
|
101
|
+
zeStart,
|
|
102
|
+
uploadConfig: appConfig.uploadConfig,
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
})({ state: _state, bundle });
|
|
106
|
+
console.log('zephyr agent done in', Date.now() - zeStart, 'ms');
|
|
107
|
+
}),
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
exports.withZephyr = withZephyr;
|
|
111
|
+
//# sourceMappingURL=rollup-plugin-zephyr.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;;;AACA,+DAM8B;AAC9B,+CASsB;AACtB,2DAAsD;AACtD,yDAAoD;AASpD,MAAM,cAAc,GAAG,CAAC,OAAqB,EAAU,EAAE;IACvD,IAAI,O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esModule", { value: true });
|
|
3
|
+
exports.getAssetsMap = void 0;
|
|
4
|
+
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
+
function getAssetsMap(assets) {
|
|
6
|
+
return (0, zephyr_agent_1.buildAssetsMap)(assets, extractBuffer, getAssetType);
|
|
7
|
+
}
|
|
8
|
+
exports.getAssetsMap = getAssetsMap;
|
|
9
|
+
const extractBuffer = (asset) => {
|
|
10
|
+
switch (asset.type) {
|
|
11
|
+
case 'chunk':
|
|
12
|
+
return asset.code;
|
|
13
|
+
case 'asset':
|
|
14
|
+
return typeof asset.source === 'string'
|
|
15
|
+
? asset.source
|
|
16
|
+
: new TextDecoder().decode(asset.source);
|
|
17
|
+
default:
|
|
18
|
+
return void 0;
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
const getAssetType = (asset) => asset.type;
|
|
22
|
+
//# sourceMappingURL=get-assets-map.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/utils/get-assets-map.ts"],"names":[],"mappings":";;;AACA,+CAA8C;AAG9C,SAAgB,YAAY,CAAC,MAAoB;IAC/C,OAAO,IAAA,6BAAc,EAAC,MAAM,EAAE,aAAa,EAAE,YAAY,CAAC,CAAA;AAC5D,CAAC;AAFD,oCAEC;AAED,MAAM,aAAa,GAAG,CACpB,KAAgC,EACZ,EAAE;IACtB,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;QACnB,KAAK,OAAO;YACV,OAAO,KAAK,CAAC,IAAI,CAAC;QACpB,KAAK,OAAO;YACV,OAAO,OAAO,KAAK,CAAC,MAAM,KAAK,QAAQ;gBACrC,CAAC,CAAC,KAAK,CAAC,MAAM;gBACd,CAAC,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;QAC7C;YACE,OAAO,KAAK,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAU,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { ZeApplicationConfig, ZephyrPluginOptions } from 'zephyr-edge-contract';
|
|
2
|
+
interface GetDashDataOptions {
|
|
3
|
+
appConfig: ZeApplicationConfig;
|
|
4
|
+
pluginOptions: ZephyrPluginOptions;
|
|
5
|
+
}
|
|
6
|
+
export declare function getDashData({ pluginOptions, appConfig }: GetDashDataOptions): {
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
edge: {
|
|
10
|
+
url: string;
|
|
11
|
+
};
|
|
12
|
+
app: {
|
|
13
|
+
org: string;
|
|
14
|
+
project: string;
|
|
15
|
+
name: string;
|
|
16
|
+
version: string;
|
|
17
|
+
} & {
|
|
18
|
+
buildId: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
version: string;
|
|
21
|
+
git: {
|
|
22
|
+
name?: string | undefined;
|
|
23
|
+
email?: string | undefined;
|
|
24
|
+
branch: string;
|
|
25
|
+
commit: string;
|
|
26
|
+
};
|
|
27
|
+
context: {
|
|
28
|
+
isCI: boolean;
|
|
29
|
+
};
|
|
30
|
+
dependencies: never[];
|
|
31
|
+
devDependencies: never[];
|
|
32
|
+
optionalDependencies: never[];
|
|
33
|
+
metadata: {};
|
|
34
|
+
overrides: never[];
|
|
35
|
+
consumes: never[];
|
|
36
|
+
modules: never[];
|
|
37
|
+
sha: string;
|
|
38
|
+
buildHash: string;
|
|
39
|
+
};
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getDashData = void 0;
|
|
4
|
+
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
+
function getDashData({ pluginOptions, appConfig }) {
|
|
6
|
+
return (0, zephyr_agent_1.zeGetDashData)({ pluginOptions, appConfig });
|
|
7
|
+
}
|
|
8
|
+
exports.getDashData = getDashData;
|
|
9
|
+
//# sourceMappingURL=get-dash-data.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-dash-data.js","sourceRoot":"","sources":["../../../src/lib/utils/get-dash-data.ts"],"names":[],"mappings":";;;AACA,+CAA4C;AAO5C,SAAgB,WAAW,CAAC,EAAC,aAAa,EAAE,SAAS,EAAqB;IACxE,OAAO,IAAA,4BAAa,EAAC,EAAC,aAAa,EAAE,SAAS,EAAC,CAAC,CAAC;AACnD,CAAC;AAFD,kCAEC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rollup-plugin-zephyr",
|
|
3
|
+
"version": "0.0.14",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"dependencies": {
|
|
9
|
+
"tslib": "^2",
|
|
10
|
+
"rollup": "^4",
|
|
11
|
+
"zephyr-agent": "workspace:*",
|
|
12
|
+
"zephyr-edge-contract": "workspace:*"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"rollup",
|
|
16
|
+
"rollup-plugin",
|
|
17
|
+
"zephyr",
|
|
18
|
+
"deploy"
|
|
19
|
+
]
|
|
20
|
+
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
5
8
|
"dependencies": {
|
|
6
|
-
"zephyr-agent": "^0.0.12",
|
|
7
9
|
"tslib": "^2",
|
|
8
10
|
"rollup": "^4",
|
|
9
|
-
"zephyr-
|
|
11
|
+
"zephyr-agent": "0.0.14",
|
|
12
|
+
"zephyr-edge-contract": "0.0.14"
|
|
10
13
|
},
|
|
11
14
|
"keywords": [
|
|
12
15
|
"rollup",
|
|
13
16
|
"rollup-plugin",
|
|
14
17
|
"zephyr",
|
|
15
18
|
"deploy"
|
|
16
|
-
]
|
|
17
|
-
|
|
18
|
-
"type": "commonjs"
|
|
19
|
-
}
|
|
19
|
+
]
|
|
20
|
+
}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../libs/rollup-plugin-zephyr/src/index.ts"],"names":[],"mappings":";;;AAAA,mEAAwD;AAA/C,kHAAA,UAAU,OAAA"}
|
|
@@ -1,187 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withZephyr = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const zephyr_edge_contract_1 = require("zephyr-edge-contract");
|
|
6
|
-
const zephyr_agent_1 = require("zephyr-agent");
|
|
7
|
-
function withZephyr() {
|
|
8
|
-
return {
|
|
9
|
-
name: 'with-zephyr',
|
|
10
|
-
writeBundle: (options, bundle) => tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
11
|
-
const isCI = false;
|
|
12
|
-
const _zephyrOptions = { wait_for_index_html: false };
|
|
13
|
-
const path_to_execution_dir = options.dir;
|
|
14
|
-
const assets = bundle;
|
|
15
|
-
/* hacks end */
|
|
16
|
-
(0, zephyr_edge_contract_1.ze_log)('Configuring with Zephyr');
|
|
17
|
-
const packageJson = (0, zephyr_agent_1.getPackageJson)(path_to_execution_dir);
|
|
18
|
-
(0, zephyr_edge_contract_1.ze_log)('Loaded Package JSON', packageJson);
|
|
19
|
-
if (!packageJson)
|
|
20
|
-
return (0, zephyr_edge_contract_1.ze_error)('Could not find package json');
|
|
21
|
-
const gitInfo = (0, zephyr_agent_1.getGitInfo)();
|
|
22
|
-
(0, zephyr_edge_contract_1.ze_log)('Loaded Git Info', gitInfo);
|
|
23
|
-
if (!gitInfo ||
|
|
24
|
-
!(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.org) ||
|
|
25
|
-
!(gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.app.project) ||
|
|
26
|
-
!(packageJson === null || packageJson === void 0 ? void 0 : packageJson.name))
|
|
27
|
-
return (0, zephyr_edge_contract_1.ze_error)('Could not get git info');
|
|
28
|
-
const application_uid = (0, zephyr_edge_contract_1.createFullAppName)({
|
|
29
|
-
org: gitInfo.app.org,
|
|
30
|
-
project: gitInfo.app.project,
|
|
31
|
-
name: packageJson === null || packageJson === void 0 ? void 0 : packageJson.name,
|
|
32
|
-
});
|
|
33
|
-
(0, zephyr_edge_contract_1.ze_log)('Going to check auth token or get it');
|
|
34
|
-
yield (0, zephyr_agent_1.checkAuth)();
|
|
35
|
-
(0, zephyr_edge_contract_1.ze_log)('Got auth token, going to get application configuration');
|
|
36
|
-
const { username, email, EDGE_URL } = yield (0, zephyr_agent_1.getApplicationConfiguration)({
|
|
37
|
-
application_uid,
|
|
38
|
-
});
|
|
39
|
-
(0, zephyr_edge_contract_1.ze_log)('Got application configuration', { username, email, EDGE_URL });
|
|
40
|
-
(0, zephyr_edge_contract_1.ze_log)('Going to get build id');
|
|
41
|
-
const buildId = yield (0, zephyr_agent_1.getBuildId)(application_uid).catch((err) => {
|
|
42
|
-
logEvent({
|
|
43
|
-
level: 'error',
|
|
44
|
-
action: 'build:get-build-id:error',
|
|
45
|
-
message: `error receiving build number for '${email}'\n
|
|
46
|
-
${err.message}\n`,
|
|
47
|
-
});
|
|
48
|
-
});
|
|
49
|
-
if (!buildId)
|
|
50
|
-
return (0, zephyr_edge_contract_1.ze_error)('[zephyr]: Could not get build id');
|
|
51
|
-
const pluginOptions = {
|
|
52
|
-
pluginName: 'rollup-plugin-zephyr',
|
|
53
|
-
application_uid,
|
|
54
|
-
// todo: isCI
|
|
55
|
-
buildEnv: 'local',
|
|
56
|
-
username,
|
|
57
|
-
app: {
|
|
58
|
-
name: packageJson.name,
|
|
59
|
-
version: packageJson.version,
|
|
60
|
-
org: gitInfo.app.org,
|
|
61
|
-
project: gitInfo.app.project,
|
|
62
|
-
},
|
|
63
|
-
git: gitInfo === null || gitInfo === void 0 ? void 0 : gitInfo.git,
|
|
64
|
-
isCI: isCI,
|
|
65
|
-
zeConfig: {
|
|
66
|
-
user: username,
|
|
67
|
-
edge_url: EDGE_URL,
|
|
68
|
-
buildId: buildId,
|
|
69
|
-
},
|
|
70
|
-
mfConfig: void 0,
|
|
71
|
-
wait_for_index_html: _zephyrOptions === null || _zephyrOptions === void 0 ? void 0 : _zephyrOptions.wait_for_index_html,
|
|
72
|
-
};
|
|
73
|
-
(0, zephyr_edge_contract_1.ze_log)('zephyr agent started.');
|
|
74
|
-
const logEvent = (0, zephyr_agent_1.logger)(pluginOptions);
|
|
75
|
-
const zeStart = Date.now();
|
|
76
|
-
// const assetsMap = await zeBuildAssetsMap(pluginOptions, assets);
|
|
77
|
-
(0, zephyr_edge_contract_1.ze_log)('Building assets map from webpack assets.');
|
|
78
|
-
const extractBuffer = (asset) => {
|
|
79
|
-
switch (asset.type) {
|
|
80
|
-
case 'chunk':
|
|
81
|
-
return asset.code;
|
|
82
|
-
case 'asset':
|
|
83
|
-
return typeof asset.source === 'string'
|
|
84
|
-
? asset.source
|
|
85
|
-
: new TextDecoder().decode(asset.source);
|
|
86
|
-
default:
|
|
87
|
-
return void 0;
|
|
88
|
-
}
|
|
89
|
-
};
|
|
90
|
-
const getAssetType = (asset) => asset.type;
|
|
91
|
-
const assetsMap = Object.keys(assets).reduce((memo, filepath) => {
|
|
92
|
-
const asset = assets[filepath];
|
|
93
|
-
const buffer = extractBuffer(asset);
|
|
94
|
-
if (!buffer && buffer !== '') {
|
|
95
|
-
logEvent({
|
|
96
|
-
action: 'ze:build:assets:unknown-asset-type',
|
|
97
|
-
level: 'error',
|
|
98
|
-
message: `unknown asset type: ${getAssetType(asset)}`,
|
|
99
|
-
});
|
|
100
|
-
return memo;
|
|
101
|
-
}
|
|
102
|
-
const assetMap = (0, zephyr_agent_1.getZeBuildAsset)({ filepath, content: buffer });
|
|
103
|
-
memo[assetMap.hash] = assetMap;
|
|
104
|
-
return memo;
|
|
105
|
-
}, {});
|
|
106
|
-
const snapshot = (0, zephyr_agent_1.createSnapshot)({
|
|
107
|
-
options: pluginOptions,
|
|
108
|
-
assets: assetsMap,
|
|
109
|
-
username,
|
|
110
|
-
email,
|
|
111
|
-
});
|
|
112
|
-
const missingAssets = yield (0, zephyr_agent_1.zeUploadSnapshot)(pluginOptions, snapshot).catch((err) => (0, zephyr_edge_contract_1.ze_error)('Failed to upload snapshot.', err));
|
|
113
|
-
if (typeof missingAssets === 'undefined')
|
|
114
|
-
return (0, zephyr_edge_contract_1.ze_error)('Snapshot upload gave no result, exiting');
|
|
115
|
-
const assetsUploadSuccess = yield (0, zephyr_agent_1.zeUploadAssets)(pluginOptions, {
|
|
116
|
-
missingAssets,
|
|
117
|
-
assetsMap,
|
|
118
|
-
count: Object.keys(assets).length,
|
|
119
|
-
});
|
|
120
|
-
if (!assetsUploadSuccess)
|
|
121
|
-
return (0, zephyr_edge_contract_1.ze_error)('Failed to upload assets.', assetsUploadSuccess);
|
|
122
|
-
const version = (0, zephyr_edge_contract_1.createSnapshotId)(pluginOptions);
|
|
123
|
-
const dashData = {
|
|
124
|
-
id: pluginOptions.application_uid,
|
|
125
|
-
name: packageJson.name,
|
|
126
|
-
// name: pluginOptions.mfConfig?.name,
|
|
127
|
-
edge: { url: EDGE_URL },
|
|
128
|
-
app: Object.assign({}, pluginOptions.app, {
|
|
129
|
-
buildId: pluginOptions.zeConfig.buildId,
|
|
130
|
-
}),
|
|
131
|
-
version,
|
|
132
|
-
git: pluginOptions.git,
|
|
133
|
-
// remote: pluginOptions.mfConfig?.filename,
|
|
134
|
-
// remotes: Object.keys(pluginOptions.mfConfig?.remotes || {}),
|
|
135
|
-
context: {
|
|
136
|
-
isCI: pluginOptions.isCI,
|
|
137
|
-
},
|
|
138
|
-
dependencies: [],
|
|
139
|
-
devDependencies: [],
|
|
140
|
-
optionalDependencies: [],
|
|
141
|
-
metadata: {},
|
|
142
|
-
overrides: [
|
|
143
|
-
/* {
|
|
144
|
-
"id": "react-dom",
|
|
145
|
-
"name": "react-dom",
|
|
146
|
-
"version": "18.2.0",
|
|
147
|
-
"location": "react-dom",
|
|
148
|
-
"applicationID": "react-dom"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"id": "react",
|
|
152
|
-
"name": "react",
|
|
153
|
-
"version": "18.2.0",
|
|
154
|
-
"location": "react",
|
|
155
|
-
"applicationID": "react"
|
|
156
|
-
}*/
|
|
157
|
-
],
|
|
158
|
-
consumes: [],
|
|
159
|
-
modules: [
|
|
160
|
-
/* {
|
|
161
|
-
"id": "GreenRecos:GreenRecos",
|
|
162
|
-
"name": "GreenRecos",
|
|
163
|
-
"applicationID": "GreenRecos",
|
|
164
|
-
"requires": [
|
|
165
|
-
"react"
|
|
166
|
-
],
|
|
167
|
-
"file": "./src/app/team-green-recos.tsx"
|
|
168
|
-
}*/
|
|
169
|
-
],
|
|
170
|
-
sha: pluginOptions.git.commit,
|
|
171
|
-
// todo: @deprecate
|
|
172
|
-
buildHash: pluginOptions.git.commit,
|
|
173
|
-
};
|
|
174
|
-
const envs = yield (0, zephyr_agent_1.zeUploadBuildStats)(dashData);
|
|
175
|
-
if (!envs)
|
|
176
|
-
return (0, zephyr_edge_contract_1.ze_error)('Did not receive envs from build stats upload. Exiting.');
|
|
177
|
-
yield (0, zephyr_agent_1.zeEnableSnapshotOnEdge)(pluginOptions, snapshot, envs.value);
|
|
178
|
-
logEvent({
|
|
179
|
-
level: 'info',
|
|
180
|
-
action: 'build:deploy:done',
|
|
181
|
-
message: `build deployed in ${Date.now() - zeStart}ms`,
|
|
182
|
-
});
|
|
183
|
-
}),
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
exports.withZephyr = withZephyr;
|
|
187
|
-
//# sourceMappingURL=rollup-plugin-zephyr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../../../../libs/rollup-plugin-zephyr/src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;;;AAMA,+DAM8B;AAC9B,+CAasB;AAEtB,SAAgB,UAAU;IACxB,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,WAAW,EAAE,CACX,OAAgC,EAChC,MAAoB,EACpB,EAAE;YACF,MAAM,IAAI,GAAG,KAAK,CAAC;YACnB,MAAM,cAAc,GAAG,EAAE,mBAAmB,EAAE,KAAK,EAAE,CAAC;YACtD,MAAM,qBAAqB,GAAG,OAAO,CAAC,GAAG,CAAC;YAC1C,MAAM,MAAM,GAAG,MAAM,CAAC;YAEtB,eAAe;YAEf,IAAA,6BAAM,EAAC,yBAAyB,CAAC,CAAC;YAClC,MAAM,WAAW,GAAG,IAAA,6BAAc,EAAC,qBAAqB,CAAC,CAAC;YAC1D,IAAA,6BAAM,EAAC,qBAAqB,EAAE,WAAW,CAAC,CAAC;YAC3C,IAAI,CAAC,WAAW;gBAAE,OAAO,IAAA,+BAAQ,EAAC,6BAA6B,CAAC,CAAC;YAEjE,MAAM,OAAO,GAAG,IAAA,yBAAU,GAAE,CAAC;YAC7B,IAAA,6BAAM,EAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;YACnC,IACE,CAAC,OAAO;gBACR,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,GAAG,CAAA;gBACjB,CAAC,CAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,GAAG,CAAC,OAAO,CAAA;gBACrB,CAAC,CAAA,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,IAAI,CAAA;gBAElB,OAAO,IAAA,+BAAQ,EAAC,wBAAwB,CAA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