@relative-ci/cli 5.0.0-alpha.15
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 +9 -0
- package/README.md +32 -0
- package/bin/index.js +12 -0
- package/lib/cjs/index.js +78 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/package.json +1 -0
- package/lib/esm/index.js +49 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/package.json +1 -0
- package/lib/types/index.d.ts +1 -0
- package/package.json +71 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright 2018 Viorel Cojocaru, contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<a href="https://relative-ci.com">
|
|
2
|
+
<img alt="RelativeCI" src="https://raw.githubusercontent.com/relative-ci/agent/master/assets/relative-ci--logo.png" width="96" />
|
|
3
|
+
</a>
|
|
4
|
+
|
|
5
|
+
# RelativeCI CLI agent
|
|
6
|
+
|
|
7
|
+
> Send bundle stats and CI build information to [RelativeCI](https://relative-ci.com?utm_source=github&utm_medium=agent).
|
|
8
|
+
|
|
9
|
+
To get started, follow [RelativeCI Setup guide CLI](https://relative-ci.com/documentation/setup/agent/cli?utm_source=github&utm_medium=agent).
|
|
10
|
+
|
|
11
|
+
[](https://www.npmjs.com/package/@relative-ci/cli)
|
|
12
|
+
[](https://www.npmjs.com/package/@relative-ci/cli)
|
|
13
|
+
[](https://socket.dev/npm/package/@relative-ci/cli)
|
|
14
|
+
[](https://github.com/relative-ci/agent/actions/workflows/ci.yml)
|
|
15
|
+
[](https://github.com/relative-ci/agent/actions/workflows/codeql.yml)
|
|
16
|
+
|
|
17
|
+
### Otger packages
|
|
18
|
+
|
|
19
|
+
#### [`@relative-ci/webpack-plugin`](https://github.com/relative-ci/agent/tree/master/packages/webpack-plugin)
|
|
20
|
+
|
|
21
|
+
[](https://www.npmjs.com/package/@relative-ci/webpack-plugin)
|
|
22
|
+
[](https://www.npmjs.com/package/@relative-ci/webpack-plugin)
|
|
23
|
+
[](https://socket.dev/npm/package/@relative-ci/webpack-plugin)
|
|
24
|
+
[](https://github.com/relative-ci/agent/actions/workflows/ci.yml)
|
|
25
|
+
[](https://github.com/relative-ci/agent/actions/workflows/codeql.yml)
|
|
26
|
+
|
|
27
|
+
To get started, follow [RelativeCI Setup guide for webpack-plugin](https://relative-ci.com/documentation/setup/agent/webpack-plugin?utm_source=github&utm_medium=agent).
|
|
28
|
+
|
|
29
|
+
## Other agents
|
|
30
|
+
|
|
31
|
+
- [GitHub action](https://github.com/relative-ci/cli-action)
|
|
32
|
+
- [CircleCI orbit (soon)](https://github.com/relative-ci/roadmap/issues/46)
|
package/bin/index.js
ADDED
package/lib/cjs/index.js
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var path = require('node:path');
|
|
4
|
+
var _ = require('lodash');
|
|
5
|
+
var fsExtra = require('fs-extra');
|
|
6
|
+
var cosmiconfig = require('cosmiconfig');
|
|
7
|
+
var yargs = require('yargs/yargs');
|
|
8
|
+
var helpers = require('yargs/helpers');
|
|
9
|
+
var core = require('@relative-ci/core');
|
|
10
|
+
var loadEnv = require('@relative-ci/core/env');
|
|
11
|
+
var ingest = require('@relative-ci/core/ingest');
|
|
12
|
+
var LOCALES = require('@relative-ci/core/locales/en');
|
|
13
|
+
|
|
14
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
|
+
|
|
16
|
+
function _interopNamespace(e) {
|
|
17
|
+
if (e && e.__esModule) return e;
|
|
18
|
+
var n = Object.create(null);
|
|
19
|
+
if (e) {
|
|
20
|
+
Object.keys(e).forEach(function (k) {
|
|
21
|
+
if (k !== 'default') {
|
|
22
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
23
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
24
|
+
enumerable: true,
|
|
25
|
+
get: function () { return e[k]; }
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
n.default = e;
|
|
31
|
+
return Object.freeze(n);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
var path__default = /*#__PURE__*/_interopDefault(path);
|
|
35
|
+
var ___default = /*#__PURE__*/_interopDefault(_);
|
|
36
|
+
var yargs__default = /*#__PURE__*/_interopDefault(yargs);
|
|
37
|
+
var loadEnv__default = /*#__PURE__*/_interopDefault(loadEnv);
|
|
38
|
+
var ingest__default = /*#__PURE__*/_interopDefault(ingest);
|
|
39
|
+
var LOCALES__namespace = /*#__PURE__*/_interopNamespace(LOCALES);
|
|
40
|
+
|
|
41
|
+
async function cli(processArgs) {
|
|
42
|
+
const args = await yargs__default.default(helpers.hideBin(processArgs))
|
|
43
|
+
.usage('Usage: $0 OPTIONS')
|
|
44
|
+
.option('config-dir', { describe: 'Config directory', default: '', alias: 'c' })
|
|
45
|
+
.option('commit', { describe: 'Commit SHA', default: '' })
|
|
46
|
+
.option('commit-message', { describe: 'Commit message', default: '', alias: 'commitMessage' })
|
|
47
|
+
.option('branch', { describe: 'Branch name', default: '' })
|
|
48
|
+
.option('pr', { describe: 'Pull Request number', default: '' })
|
|
49
|
+
.option('slug', { describe: 'Project slug', default: '' })
|
|
50
|
+
.help()
|
|
51
|
+
.argv;
|
|
52
|
+
const searchConfig = cosmiconfig.cosmiconfigSync('relativeci', {
|
|
53
|
+
searchStrategy: 'global',
|
|
54
|
+
}).search('config-dir' in args ? args['config-dir'] : undefined);
|
|
55
|
+
core.debug('Config', searchConfig);
|
|
56
|
+
if (!searchConfig) {
|
|
57
|
+
throw new Error(LOCALES__namespace.CLI_MISSING_CONFIGURATION_ERROR);
|
|
58
|
+
}
|
|
59
|
+
const { config } = searchConfig;
|
|
60
|
+
if (!___default.default.get(config, 'webpack.stats')) {
|
|
61
|
+
throw new Error(LOCALES__namespace.CLI_INVALID_CONFIGURATION_ERROR);
|
|
62
|
+
}
|
|
63
|
+
// Load webpack stats file relative to the config file
|
|
64
|
+
const webpackArtifactFilepath = path__default.default.join(path__default.default.dirname(searchConfig.filepath), ___default.default.get(config, 'webpack.stats'));
|
|
65
|
+
if (!fsExtra.pathExistsSync(webpackArtifactFilepath)) {
|
|
66
|
+
throw new Error(LOCALES__namespace.CLI_MISSING_STATS_FILE_ERROR);
|
|
67
|
+
}
|
|
68
|
+
const data = fsExtra.readJSONSync(webpackArtifactFilepath);
|
|
69
|
+
core.validateWebpackStats(data);
|
|
70
|
+
core.debug('CLI arguments', args);
|
|
71
|
+
const params = loadEnv__default.default(args, { includeCommitMessage: config.includeCommitMessage });
|
|
72
|
+
const artifactsData = core.filterArtifacts([{ key: core.SOURCE_WEBPACK_STATS, data }]);
|
|
73
|
+
const response = await ingest__default.default(artifactsData, params, config);
|
|
74
|
+
core.logResponse(response);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
module.exports = cli;
|
|
78
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":["yargs","hideBin","cosmiconfigSync","debug","LOCALES","_","path","pathExistsSync","readJSONSync","validateWebpackStats","loadEnv","filterArtifacts","SOURCE_WEBPACK_STATS","ingest","logResponse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBe,eAAe,GAAG,CAAC,WAA0B,EAAA;IAC1D,MAAM,IAAI,GAAG,MAAMA,sBAAK,CAACC,eAAO,CAAC,WAAW,CAAC;SAC1C,KAAK,CAAC,mBAAmB;AAEzB,SAAA,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;AAE9E,SAAA,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;AACxD,SAAA,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;AAC5F,SAAA,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;AACzD,SAAA,MAAM,CAAC,IAAI,EAAE,EAAE,QAAQ,EAAE,qBAAqB,EAAE,OAAO,EAAE,EAAE,EAAE;AAC7D,SAAA,MAAM,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,OAAO,EAAE,EAAE,EAAE;AAExD,SAAA,IAAI;AACJ,SAAA,IAAI;AAEP,IAAA,MAAM,YAAY,GAAGC,2BAAe,CAAC,YAAY,EAAE;AACjD,QAAA,cAAc,EAAE,QAAQ;AACzB,KAAA,CAAC,CAAC,MAAM,CAAC,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"commonjs"}
|
package/lib/esm/index.js
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import path from 'node:path';
|
|
2
|
+
import _ from 'lodash';
|
|
3
|
+
import { pathExistsSync, readJSONSync } from 'fs-extra';
|
|
4
|
+
import { cosmiconfigSync } from 'cosmiconfig';
|
|
5
|
+
import yargs from 'yargs/yargs';
|
|
6
|
+
import { hideBin } from 'yargs/helpers';
|
|
7
|
+
import { debug, validateWebpackStats, filterArtifacts, SOURCE_WEBPACK_STATS, logResponse } from '@relative-ci/core';
|
|
8
|
+
import loadEnv from '@relative-ci/core/env';
|
|
9
|
+
import ingest from '@relative-ci/core/ingest';
|
|
10
|
+
import * as LOCALES from '@relative-ci/core/locales/en';
|
|
11
|
+
|
|
12
|
+
async function cli(processArgs) {
|
|
13
|
+
const args = await yargs(hideBin(processArgs))
|
|
14
|
+
.usage('Usage: $0 OPTIONS')
|
|
15
|
+
.option('config-dir', { describe: 'Config directory', default: '', alias: 'c' })
|
|
16
|
+
.option('commit', { describe: 'Commit SHA', default: '' })
|
|
17
|
+
.option('commit-message', { describe: 'Commit message', default: '', alias: 'commitMessage' })
|
|
18
|
+
.option('branch', { describe: 'Branch name', default: '' })
|
|
19
|
+
.option('pr', { describe: 'Pull Request number', default: '' })
|
|
20
|
+
.option('slug', { describe: 'Project slug', default: '' })
|
|
21
|
+
.help()
|
|
22
|
+
.argv;
|
|
23
|
+
const searchConfig = cosmiconfigSync('relativeci', {
|
|
24
|
+
searchStrategy: 'global',
|
|
25
|
+
}).search('config-dir' in args ? args['config-dir'] : undefined);
|
|
26
|
+
debug('Config', searchConfig);
|
|
27
|
+
if (!searchConfig) {
|
|
28
|
+
throw new Error(LOCALES.CLI_MISSING_CONFIGURATION_ERROR);
|
|
29
|
+
}
|
|
30
|
+
const { config } = searchConfig;
|
|
31
|
+
if (!_.get(config, 'webpack.stats')) {
|
|
32
|
+
throw new Error(LOCALES.CLI_INVALID_CONFIGURATION_ERROR);
|
|
33
|
+
}
|
|
34
|
+
// Load webpack stats file relative to the config file
|
|
35
|
+
const webpackArtifactFilepath = path.join(path.dirname(searchConfig.filepath), _.get(config, 'webpack.stats'));
|
|
36
|
+
if (!pathExistsSync(webpackArtifactFilepath)) {
|
|
37
|
+
throw new Error(LOCALES.CLI_MISSING_STATS_FILE_ERROR);
|
|
38
|
+
}
|
|
39
|
+
const data = readJSONSync(webpackArtifactFilepath);
|
|
40
|
+
validateWebpackStats(data);
|
|
41
|
+
debug('CLI arguments', args);
|
|
42
|
+
const params = loadEnv(args, { includeCommitMessage: config.includeCommitMessage });
|
|
43
|
+
const artifactsData = filterArtifacts([{ key: SOURCE_WEBPACK_STATS, data }]);
|
|
44
|
+
const response = await ingest(artifactsData, params, config);
|
|
45
|
+
logResponse(response);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { cli as default };
|
|
49
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;AAqBe,eAAe,GAAG,CAAC,WAA0B,EAAA;IAC1D,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC;SAC1C,KAAK,CAAC,mBAAmB;AAEzB,SAAA,MAAM,CAAC,YAAY,EAAE,EAAE,QAAQ,EAAE,kBAAkB,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;AAE9E,SAAA,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,EAAE,EAAE;AACxD,SAAA,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,gBAAgB,EAAE,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;AAC5F,SAAA,MAAM,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,EAAE;AAC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,EAAE,MAAM,CAAC,oBAAoB,EAAE,CAAC;AACnF,IAAA,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,EAAE,GAAG,EAAE,oBAAoB,EAAE,IAAI,EAAE,CAAC,CAAC;IAE5E,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC;IAC5D,WAAW,CAAC,QAAQ,CAAC;AACvB;;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"type":"module"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function cli(processArgs: Array<string>): Promise<void>;
|
package/package.json
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@relative-ci/cli",
|
|
3
|
+
"version": "5.0.0-alpha.15",
|
|
4
|
+
"description": "Send bundle stats and CI build information to RelativeCI CLI",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"webpack",
|
|
7
|
+
"vitejs",
|
|
8
|
+
"rspack",
|
|
9
|
+
"rollup",
|
|
10
|
+
"bundle-size",
|
|
11
|
+
"bundle-analyzer",
|
|
12
|
+
"bundle-stats",
|
|
13
|
+
"stats",
|
|
14
|
+
"bundle",
|
|
15
|
+
"size",
|
|
16
|
+
"assets",
|
|
17
|
+
"chunks",
|
|
18
|
+
"modules"
|
|
19
|
+
],
|
|
20
|
+
"repository": "https://github.com/relative-ci/agent",
|
|
21
|
+
"bugs": {
|
|
22
|
+
"url": "https://github.com/relative-ci/agent/issues"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://relative-ci.com/documentation/setup/agent/cli",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"author": {
|
|
27
|
+
"name": "Viorel Cojocaru",
|
|
28
|
+
"email": "vio@relative-ci.com",
|
|
29
|
+
"url": "https://relative-ci.com"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">= 18.0.0"
|
|
33
|
+
},
|
|
34
|
+
"main": "./lib/cjs/index.js",
|
|
35
|
+
"module": "./lib/esm/index.js",
|
|
36
|
+
"types": "./lib/types/index.d.ts",
|
|
37
|
+
"bin": {
|
|
38
|
+
"relative-ci": "bin/index.js",
|
|
39
|
+
"relative-ci-agent": "bin/index.js"
|
|
40
|
+
},
|
|
41
|
+
"scripts": {
|
|
42
|
+
"build": "npm run clean && tsc && rollup -c && npm run build-type",
|
|
43
|
+
"build-type": "echo '{\"type\":\"commonjs\"}' > lib/cjs/package.json && echo '{\"type\":\"module\"}' > lib/esm/package.json",
|
|
44
|
+
"clean": "rimraf ./lib",
|
|
45
|
+
"lint": "eslint .",
|
|
46
|
+
"test": "vitest src --passWithNoTests --run"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@rollup/plugin-commonjs": "28.0.3",
|
|
50
|
+
"@rollup/plugin-node-resolve": "16.0.0",
|
|
51
|
+
"@rollup/plugin-replace": "6.0.2",
|
|
52
|
+
"@rollup/plugin-typescript": "12.1.2",
|
|
53
|
+
"@tsconfig/node18": "18.2.4",
|
|
54
|
+
"@types/fs-extra": "11.0.4",
|
|
55
|
+
"@types/lodash": "4.17.16",
|
|
56
|
+
"@types/yargs": "17.0.33",
|
|
57
|
+
"rimraf": "6.0.1",
|
|
58
|
+
"rollup": "4.35.0",
|
|
59
|
+
"rollup-plugin-node-externals": "8.0.0",
|
|
60
|
+
"typescript": "5.8.2",
|
|
61
|
+
"vitest": "3.0.8"
|
|
62
|
+
},
|
|
63
|
+
"dependencies": {
|
|
64
|
+
"@relative-ci/core": "5.0.0-alpha.15",
|
|
65
|
+
"cosmiconfig": "9.0.0",
|
|
66
|
+
"fs-extra": "11.3.0",
|
|
67
|
+
"lodash": "4.17.21",
|
|
68
|
+
"yargs": "17.7.2"
|
|
69
|
+
},
|
|
70
|
+
"gitHead": "dfeab530e9200e052d773105be6911cb6aeda94b"
|
|
71
|
+
}
|