Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/actions/code-pushup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ runs:
env:
TSX_TSCONFIG_PATH: .github/actions/code-pushup/tsconfig.json
GH_TOKEN: ${{ inputs.token }}
CP_VERBOSE: true
2 changes: 1 addition & 1 deletion .github/actions/code-pushup/src/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ function createGitHubApiClient(): ProviderAPIClient {
async function run(): Promise<void> {
try {
const options: Options = {
bin: 'npx nx code-pushup --nx-bail --',
bin: 'npx nx code-pushup --nx-bail --',
};

const gitRefs = parseGitRefs();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@example/cli",
"version": "1.2.3",
"scripts": {
"code-pushup": "code-pushup --no-progress"
"code-pushup": "code-pushup"
},
"dependencies": {
"@example/core": "1.2.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@example/core",
"version": "1.2.3",
"scripts": {
"code-pushup": "code-pushup --no-progress"
"code-pushup": "code-pushup"
},
"dependencies": {
"@example/utils": "1.2.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"name": "@example/utils",
"version": "1.2.3",
"scripts": {
"code-pushup": "code-pushup --no-progress"
"code-pushup": "code-pushup"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"projectType": "application",
"targets": {
"code-pushup": {
"command": "npx @code-pushup/cli --no-progress --config=apps/api/code-pushup.config.js"
"command": "npx @code-pushup/cli --config=apps/api/code-pushup.config.js"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"projectType": "application",
"targets": {
"code-pushup": {
"command": "npx @code-pushup/cli --no-progress --config=apps/cms/code-pushup.config.js"
"command": "npx @code-pushup/cli --config=apps/cms/code-pushup.config.js"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"projectType": "application",
"targets": {
"code-pushup": {
"command": "npx @code-pushup/cli --no-progress --config=apps/web/code-pushup.config.js"
"command": "npx @code-pushup/cli --config=apps/web/code-pushup.config.js"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"projectType": "library",
"targets": {
"code-pushup": {
"command": "npx @code-pushup/cli --no-progress --config=libs/ui/code-pushup.config.js"
"command": "npx @code-pushup/cli --config=libs/ui/code-pushup.config.js"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"projectType": "library",
"targets": {
"code-pushup": {
"command": "npx @code-pushup/cli --no-progress --config=libs/utils/code-pushup.config.js"
"command": "npx @code-pushup/cli --config=libs/utils/code-pushup.config.js"
}
}
}
2 changes: 0 additions & 2 deletions e2e/cli-e2e/tests/__snapshots__/help.e2e.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ Commands:


Global Options:
--progress Show progress bar in stdout.
[boolean] [default: false in CI environment, otherwise true]
--verbose When true creates more verbose output. This is helpful w
hen debugging. You may also set CP_VERBOSE env variable
instead. [boolean] [default: false]
Expand Down
18 changes: 4 additions & 14 deletions e2e/cli-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,7 @@ describe('CLI collect', () => {
it('should create report.md', async () => {
const { code } = await executeProcess({
command: 'npx',
args: [
'@code-pushup/cli',
'--no-progress',
'collect',
'--persist.format=md',
],
args: ['@code-pushup/cli', 'collect', '--persist.format=md'],
cwd: dummyDir,
});

Expand All @@ -72,7 +67,7 @@ describe('CLI collect', () => {
it('should write runner outputs if --cache is given', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', '--no-progress', 'collect', '--cache'],
args: ['@code-pushup/cli', 'collect', '--cache'],
cwd: dummyDir,
});

Expand All @@ -94,12 +89,7 @@ describe('CLI collect', () => {
it('should not create reports if --persist.skipReports is given', async () => {
const { code } = await executeProcess({
command: 'npx',
args: [
'@code-pushup/cli',
'--no-progress',
'collect',
'--persist.skipReports',
],
args: ['@code-pushup/cli', 'collect', '--persist.skipReports'],
cwd: dummyDir,
});

Expand All @@ -116,7 +106,7 @@ describe('CLI collect', () => {
it('should print report summary to stdout', async () => {
const { code, stdout } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', '--no-progress', 'collect'],
args: ['@code-pushup/cli', 'collect'],
cwd: dummyDir,
});

Expand Down
1 change: 0 additions & 1 deletion e2e/cli-e2e/tests/print-config.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ describe('CLI print-config', () => {
args: [
'@code-pushup/cli',
'print-config',
'--no-progress',
`--config=${configFilePath(ext)}`,
'--tsconfig=tsconfig.base.json',
'--persist.outputDir=output-dir',
Expand Down
2 changes: 1 addition & 1 deletion e2e/plugin-axe-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ describe('PLUGIN collect report with axe-plugin NPM package', () => {
it('should run plugin over CLI and create report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: defaultSetupDir,
});

Expand Down
4 changes: 2 additions & 2 deletions e2e/plugin-coverage-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ describe('PLUGIN collect report with coverage-plugin NPM package', () => {
it('should run Code coverage plugin which runs tests and creates report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['code-pushup', 'collect', '--no-progress'],
args: ['code-pushup', 'collect'],
cwd: basicDir,
});

Expand All @@ -60,7 +60,7 @@ describe('PLUGIN collect report with coverage-plugin NPM package', () => {
it('should run Code coverage plugin which parses existing lcov report and creates report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: existingDir,
});

Expand Down
6 changes: 3 additions & 3 deletions e2e/plugin-eslint-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ describe('PLUGIN collect report with eslint-plugin NPM package', () => {
it('should run ESLint plugin for flat config and create report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: flatConfigDir,
});

Expand All @@ -81,7 +81,7 @@ describe('PLUGIN collect report with eslint-plugin NPM package', () => {
it('should run ESLint plugin for legacy config and create report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: legacyConfigDir,
env: { ...process.env, ESLINT_USE_FLAT_CONFIG: 'false' },
});
Expand All @@ -99,7 +99,7 @@ describe('PLUGIN collect report with eslint-plugin NPM package', () => {
it('should run ESLint plugin with artifacts options and create eslint-report.json and report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: artifactsConfigDir,
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ describe('plugin-js-packages', () => {
'@code-pushup/cli',
'collect',
'--verbose',
'--no-progress',
`--config=${path.join(
TEST_OUTPUT_DIR,
'npm-repo',
Expand Down
2 changes: 1 addition & 1 deletion e2e/plugin-jsdocs-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe('PLUGIN collect report with jsdocs-plugin NPM package', () => {
it('should run JSDoc plugin for Angular example dir and create report.json', async () => {
const { code } = await executeProcess({
command: 'npx',
args: ['@code-pushup/cli', 'collect', '--no-progress'],
args: ['@code-pushup/cli', 'collect'],
cwd: angularDir,
});

Expand Down
2 changes: 1 addition & 1 deletion e2e/plugin-lighthouse-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('PLUGIN collect report with lighthouse-plugin NPM package', () => {
const { code, stdout } = await executeProcess({
command: 'npx',
// verbose exposes audits with perfect scores that are hidden in the default stdout
args: ['@code-pushup/cli', 'collect', '--no-progress', '--verbose'],
args: ['@code-pushup/cli', 'collect', '--verbose'],
cwd: defaultSetupDir,
});

Expand Down
1 change: 0 additions & 1 deletion e2e/plugin-typescript-e2e/tests/collect.e2e.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ describe('PLUGIN collect report with typescript-plugin NPM package', () => {
args: [
'@code-pushup/cli',
'collect',
'--no-progress',
'--verbose',
`--persist.outputDir=${outputDir}`,
],
Expand Down
2 changes: 1 addition & 1 deletion examples/plugins/code-pushup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import {
* `nx run-collect examples-plugins`
*
* - For all formats use `--persist.format=md,json`
* - For better debugging, use `--verbose --no-progress`
* - For better debugging, use `--verbose`
*
*/

Expand Down
8 changes: 0 additions & 8 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
"options": {
"command": "node packages/cli/src/index.ts",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.read",
Expand All @@ -172,7 +171,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand All @@ -194,7 +192,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand All @@ -220,7 +217,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--onlyPlugins=js-packages",
Expand All @@ -240,7 +236,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand All @@ -266,7 +261,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand All @@ -292,7 +286,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand All @@ -314,7 +307,6 @@
"options": {
"command": "node packages/cli/src/index.ts collect",
"args": [
"--no-progress",
"--verbose",
"--config={projectRoot}/code-pushup.config.ts",
"--cache.write",
Expand Down
56 changes: 0 additions & 56 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@
"glob": "^11.0.1",
"lighthouse": "^12.0.0",
"lighthouse-logger": "2.0.1",
"multi-progress-bars": "^5.0.3",
"nx": "21.4.1",
"ora": "^9.0.0",
"parse-lcov": "^1.0.4",
Expand Down
Loading
Loading