rollup-plugin-zephyr 0.0.13 → 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/dist/lib/rollup-plugin-zephyr.js +16 -35
- package/dist/lib/rollup-plugin-zephyr.js.map +1 -1
- package/dist/lib/utils/get-assets-map.js +4 -15
- package/dist/lib/utils/get-assets-map.js.map +1 -1
- package/dist/lib/utils/get-dash-data.js +2 -54
- package/dist/lib/utils/get-dash-data.js.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +3 -3
- package/.eslintrc.json +0 -25
- package/jest.config.ts +0 -11
- package/project.json +0 -34
- package/tsconfig.json +0 -22
- package/tsconfig.lib.json +0 -11
- package/tsconfig.spec.json +0 -14
|
@@ -45,7 +45,7 @@ function withZephyr() {
|
|
|
45
45
|
(0, zephyr_edge_contract_1.ze_log)('Got application configuration: ', { username, email, EDGE_URL });
|
|
46
46
|
(0, zephyr_edge_contract_1.ze_log)(`Got build id: ${buildId}`);
|
|
47
47
|
if (!buildId)
|
|
48
|
-
return (0, zephyr_edge_contract_1.ze_error)('
|
|
48
|
+
return (0, zephyr_edge_contract_1.ze_error)("BU10019", 'Could not get build id.');
|
|
49
49
|
const pluginOptions = {
|
|
50
50
|
pluginName: 'rollup-plugin-zephyr',
|
|
51
51
|
application_uid,
|
|
@@ -80,46 +80,27 @@ function withZephyr() {
|
|
|
80
80
|
const zeStart = Date.now();
|
|
81
81
|
yield (function zephyr_upload(props) {
|
|
82
82
|
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
83
|
-
(0, zephyr_edge_contract_1.ze_log)('zephyr agent started
|
|
83
|
+
(0, zephyr_edge_contract_1.ze_log)('zephyr agent started...');
|
|
84
84
|
const { state, bundle } = props;
|
|
85
85
|
const _state = yield state;
|
|
86
86
|
if (!_state)
|
|
87
|
-
return (0, zephyr_edge_contract_1.ze_error)('
|
|
87
|
+
return (0, zephyr_edge_contract_1.ze_error)("BU10020", 'Could not initialize Zephyr Agent.');
|
|
88
88
|
const { appConfig, hash_set, pluginOptions } = _state;
|
|
89
|
-
const { username, email } = appConfig;
|
|
90
89
|
const assetsMap = (0, get_assets_map_1.getAssetsMap)(bundle);
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
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,
|
|
96
103
|
});
|
|
97
|
-
const [, , envs] = yield Promise.all([
|
|
98
|
-
(0, zephyr_agent_1.zeUploadSnapshot)(pluginOptions, snapshot),
|
|
99
|
-
(function upload_assets() {
|
|
100
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
101
|
-
const missingAssets = (0, zephyr_agent_1.get_missing_assets)({ assetsMap, hash_set });
|
|
102
|
-
const upload_success = yield (0, zephyr_agent_1.zeUploadAssets)(pluginOptions, {
|
|
103
|
-
missingAssets,
|
|
104
|
-
assetsMap,
|
|
105
|
-
count: Object.keys(bundle).length,
|
|
106
|
-
});
|
|
107
|
-
if (upload_success && missingAssets.length) {
|
|
108
|
-
yield (0, zephyr_agent_1.update_hash_list)(pluginOptions.application_uid, assetsMap);
|
|
109
|
-
}
|
|
110
|
-
return upload_success;
|
|
111
|
-
});
|
|
112
|
-
})(),
|
|
113
|
-
(function upload_build_stats_nd_enable_envs() {
|
|
114
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
115
|
-
const dashData = (0, get_dash_data_1.getDashData)({ appConfig, pluginOptions });
|
|
116
|
-
return (0, zephyr_agent_1.zeUploadBuildStats)(dashData);
|
|
117
|
-
});
|
|
118
|
-
})(),
|
|
119
|
-
]);
|
|
120
|
-
if (!envs)
|
|
121
|
-
return (0, zephyr_edge_contract_1.ze_error)('[zephyr]: Could not get envs');
|
|
122
|
-
return (0, zephyr_agent_1.zeEnableSnapshotOnEdge)({ pluginOptions, envs_jwt: envs.value, zeStart });
|
|
123
104
|
});
|
|
124
105
|
})({ state: _state, bundle });
|
|
125
106
|
console.log('zephyr agent done in', Date.now() - zeStart, 'ms');
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rollup-plugin-zephyr.js","sourceRoot":"","sources":["../../src/lib/rollup-plugin-zephyr.ts"],"names":[],"mappings":";;;;AACA,+
|
|
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,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC;IAC5D,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC1D,IAAI,OAAO,OAAO,CAAC,KAAK,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9E,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC;AACvB,CAAC,CAAC;AAEF,SAAgB,UAAU;IACxB,IAAI,MAAyC,CAAC;IAE9C,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,UAAU,EAAE,CAAO,OAAqB,EAAE,EAAE;YAC1C,MAAM,G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,MAAM,aAAa,GAAG,IAAA,iCAAkB,EAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,CAAC;oBAClE,MAAM,IAAA,qBAAM,EAAC;wBACX,aAAa;wBACb,MAAM,EAAE;4BACN,SAAS;4BACT,aAAa;4BACb,UAAU,EAAE,OAAO,CAAC,GAAa;4BACjC,KAAK,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,MAAM;yBAClC;wBACD,WAAW,EAAX,2BAAW;wBACX,SAAS;wBACT,OAAO;wBACP,YAAY,EAAE,SAAS,CAAC,YAAY;qBACrC,CAAC,CAAC;gBAEL,CAAC;aAAA,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;YAE9B,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,OAAO,EAAE,IAAI,CAAC,CAAC;QAClE,CAAC,CAAA;KACF,CAAC;AACJ,CAAC;AAxGD,gCAwGC"}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getAssetsMap = void 0;
|
|
4
4
|
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
|
-
|
|
5
|
+
function getAssetsMap(assets) {
|
|
6
|
+
return (0, zephyr_agent_1.buildAssetsMap)(assets, extractBuffer, getAssetType);
|
|
7
|
+
}
|
|
8
|
+
exports.getAssetsMap = getAssetsMap;
|
|
6
9
|
const extractBuffer = (asset) => {
|
|
7
10
|
switch (asset.type) {
|
|
8
11
|
case 'chunk':
|
|
@@ -16,18 +19,4 @@ const extractBuffer = (asset) => {
|
|
|
16
19
|
}
|
|
17
20
|
};
|
|
18
21
|
const getAssetType = (asset) => asset.type;
|
|
19
|
-
function getAssetsMap(assets) {
|
|
20
|
-
return Object.keys(assets).reduce((memo, filepath) => {
|
|
21
|
-
const asset = assets[filepath];
|
|
22
|
-
const buffer = extractBuffer(asset);
|
|
23
|
-
if (!buffer && buffer !== '') {
|
|
24
|
-
(0, zephyr_edge_contract_1.ze_log)(`unknown asset type: ${getAssetType(asset)}`);
|
|
25
|
-
return memo;
|
|
26
|
-
}
|
|
27
|
-
const assetMap = (0, zephyr_agent_1.getZeBuildAsset)({ filepath, content: buffer });
|
|
28
|
-
memo[assetMap.hash] = assetMap;
|
|
29
|
-
return memo;
|
|
30
|
-
}, {});
|
|
31
|
-
}
|
|
32
|
-
exports.getAssetsMap = getAssetsMap;
|
|
33
22
|
//# sourceMappingURL=get-assets-map.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-assets-map.js","sourceRoot":"","sources":["../../../src/lib/utils/get-assets-map.ts"],"names":[],"mappings":";;;AACA,+
|
|
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"}
|
|
@@ -1,61 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getDashData = void 0;
|
|
4
|
-
const
|
|
4
|
+
const zephyr_agent_1 = require("zephyr-agent");
|
|
5
5
|
function getDashData({ pluginOptions, appConfig }) {
|
|
6
|
-
|
|
7
|
-
const version = (0, zephyr_edge_contract_1.createSnapshotId)(pluginOptions);
|
|
8
|
-
return {
|
|
9
|
-
id: pluginOptions.application_uid,
|
|
10
|
-
name: pluginOptions.app.name,
|
|
11
|
-
// name: pluginOptions.mfConfig?.name,
|
|
12
|
-
edge: { url: EDGE_URL },
|
|
13
|
-
app: Object.assign({}, pluginOptions.app, {
|
|
14
|
-
buildId: pluginOptions.zeConfig.buildId,
|
|
15
|
-
}),
|
|
16
|
-
version,
|
|
17
|
-
git: pluginOptions.git,
|
|
18
|
-
// remote: pluginOptions.mfConfig?.filename,
|
|
19
|
-
// remotes: Object.keys(pluginOptions.mfConfig?.remotes || {}),
|
|
20
|
-
context: {
|
|
21
|
-
isCI: pluginOptions.isCI,
|
|
22
|
-
},
|
|
23
|
-
dependencies: [],
|
|
24
|
-
devDependencies: [],
|
|
25
|
-
optionalDependencies: [],
|
|
26
|
-
metadata: {},
|
|
27
|
-
overrides: [
|
|
28
|
-
/* {
|
|
29
|
-
"id": "react-dom",
|
|
30
|
-
"name": "react-dom",
|
|
31
|
-
"version": "18.2.0",
|
|
32
|
-
"location": "react-dom",
|
|
33
|
-
"applicationID": "react-dom"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"id": "react",
|
|
37
|
-
"name": "react",
|
|
38
|
-
"version": "18.2.0",
|
|
39
|
-
"location": "react",
|
|
40
|
-
"applicationID": "react"
|
|
41
|
-
}*/
|
|
42
|
-
],
|
|
43
|
-
consumes: [],
|
|
44
|
-
modules: [
|
|
45
|
-
/* {
|
|
46
|
-
"id": "GreenRecos:GreenRecos",
|
|
47
|
-
"name": "GreenRecos",
|
|
48
|
-
"applicationID": "GreenRecos",
|
|
49
|
-
"requires": [
|
|
50
|
-
"react"
|
|
51
|
-
],
|
|
52
|
-
"file": "./src/app/team-green-recos.tsx"
|
|
53
|
-
}*/
|
|
54
|
-
],
|
|
55
|
-
sha: pluginOptions.git.commit,
|
|
56
|
-
// todo: @deprecate
|
|
57
|
-
buildHash: pluginOptions.git.commit,
|
|
58
|
-
};
|
|
6
|
+
return (0, zephyr_agent_1.zeGetDashData)({ pluginOptions, appConfig });
|
|
59
7
|
}
|
|
60
8
|
exports.getDashData = getDashData;
|
|
61
9
|
//# sourceMappingURL=get-dash-data.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-dash-data.js","sourceRoot":"","sources":["../../../src/lib/utils/get-dash-data.ts"],"names":[],"mappings":";;;
|
|
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"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.14",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": "^2",
|
|
10
10
|
"rollup": "^4",
|
|
11
|
-
"zephyr-agent": "0.0.
|
|
12
|
-
"zephyr-edge-contract": "0.0.
|
|
11
|
+
"zephyr-agent": "0.0.14",
|
|
12
|
+
"zephyr-edge-contract": "0.0.14"
|
|
13
13
|
},
|
|
14
14
|
"keywords": [
|
|
15
15
|
"rollup",
|
package/.eslintrc.json
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": ["../../.eslintrc.json"],
|
|
3
|
-
"ignorePatterns": ["!**/*"],
|
|
4
|
-
"overrides": [
|
|
5
|
-
{
|
|
6
|
-
"files": ["*.ts", "*.tsx", "*.js", "*.jsx"],
|
|
7
|
-
"rules": {}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"files": ["*.ts", "*.tsx"],
|
|
11
|
-
"rules": {}
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"files": ["*.js", "*.jsx"],
|
|
15
|
-
"rules": {}
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"files": ["*.json"],
|
|
19
|
-
"parser": "jsonc-eslint-parser",
|
|
20
|
-
"rules": {
|
|
21
|
-
"@nx/dependency-checks": "error"
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
]
|
|
25
|
-
}
|
package/jest.config.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
export default {
|
|
3
|
-
displayName: 'rollup-plugin-zephyr',
|
|
4
|
-
preset: '../../jest.preset.js',
|
|
5
|
-
testEnvironment: 'node',
|
|
6
|
-
transform: {
|
|
7
|
-
'^.+\\.[tj]s$': ['ts-jest', { tsconfig: '<rootDir>/tsconfig.spec.json' }],
|
|
8
|
-
},
|
|
9
|
-
moduleFileExtensions: ['ts', 'js', 'html'],
|
|
10
|
-
coverageDirectory: '../../coverage/libs/rollup-plugin-zephyr',
|
|
11
|
-
};
|
package/project.json
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "rollup-plugin-zephyr",
|
|
3
|
-
"$schema": "../../node_modules/nx/schemas/project-schema.json",
|
|
4
|
-
"sourceRoot": "libs/rollup-plugin-zephyr/src",
|
|
5
|
-
"projectType": "library",
|
|
6
|
-
"tags": [],
|
|
7
|
-
"targets": {
|
|
8
|
-
"build": {
|
|
9
|
-
"executor": "@nx/js:tsc",
|
|
10
|
-
"outputs": ["{options.outputPath}"],
|
|
11
|
-
"options": {
|
|
12
|
-
"rootDir": "libs/rollup-plugin-zephyr/src",
|
|
13
|
-
"outputPath": "libs/rollup-plugin-zephyr/dist",
|
|
14
|
-
"tsConfig": "libs/rollup-plugin-zephyr/tsconfig.lib.json",
|
|
15
|
-
"main": "libs/rollup-plugin-zephyr/src/index.ts"
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
"nx-release-publish": {
|
|
19
|
-
"options": {
|
|
20
|
-
"packageRoot": "dist\\{projectRoot}"
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"lint": {
|
|
24
|
-
"executor": "@nx/eslint:lint"
|
|
25
|
-
},
|
|
26
|
-
"test": {
|
|
27
|
-
"executor": "@nx/jest:jest",
|
|
28
|
-
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
|
|
29
|
-
"options": {
|
|
30
|
-
"jestConfig": "libs/rollup-plugin-zephyr/jest.config.ts"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "../../tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"forceConsistentCasingInFileNames": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"noImplicitOverride": true,
|
|
8
|
-
"noPropertyAccessFromIndexSignature": true,
|
|
9
|
-
"noImplicitReturns": true,
|
|
10
|
-
"noFallthroughCasesInSwitch": true
|
|
11
|
-
},
|
|
12
|
-
"files": [],
|
|
13
|
-
"include": [],
|
|
14
|
-
"references": [
|
|
15
|
-
{
|
|
16
|
-
"path": "./tsconfig.lib.json"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
"path": "./tsconfig.spec.json"
|
|
20
|
-
}
|
|
21
|
-
]
|
|
22
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"outDir": "../../dist/out-tsc",
|
|
6
|
-
"declaration": true,
|
|
7
|
-
"types": ["node"]
|
|
8
|
-
},
|
|
9
|
-
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
|
|
10
|
-
"include": ["src/**/*.ts"]
|
|
11
|
-
}
|
package/tsconfig.spec.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"outDir": "../../dist/out-tsc",
|
|
5
|
-
"module": "commonjs",
|
|
6
|
-
"types": ["jest", "node"]
|
|
7
|
-
},
|
|
8
|
-
"include": [
|
|
9
|
-
"jest.config.ts",
|
|
10
|
-
"src/**/*.test.ts",
|
|
11
|
-
"src/**/*.spec.ts",
|
|
12
|
-
"src/**/*.d.ts"
|
|
13
|
-
]
|
|
14
|
-
}
|