Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: push-based/user-flow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 7dd0ac27254ea1faa1025c0d692b90a889fd300f
Choose a base ref
..
head repository: push-based/user-flow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d3bb69e7f00933a47979d123a3f9adab5cab8432
Choose a head ref
Showing with 35 additions and 70 deletions.
  1. +1 −1 package.json
  2. +31 −1 packages/user-flow-example/.user-flowrc.json
  3. +0 −65 packages/user-flow-gh-integration/user-flows-esm/order-coffee.uf.mts
  4. +3 −3 tools/md-report-rename.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -16,7 +16,7 @@
"@push-based/user-flow:init": "npm run @push-based/user-flow -- init -v",
"@push-based/user-flow:assert": "npm run @push-based/user-flow -- assert -v",
"@push-based/user-flow:collect": "npm run @push-based/user-flow -- collect -v",
"md-report-test": "npm run @push-based/user-flow -- --rcPath ./packages/user-flow-gh-integration/.user-flowrc.json --ufPath ./packages/user-flow-gh-integration/user-flows-esm --openReport false && ts-node -P ./tools/tsconfig.tools.json ./tools/md-report-rename.ts",
"md-report-test": "npm run @push-based/user-flow -- --rcPath ./packages/user-flow-gh-integration/.user-flowrc.json --openReport false && ts-node -P ./tools/tsconfig.tools.json ./tools/md-report-rename.ts",
"prepare": "husky install"
},
"dependencies": {
32 changes: 31 additions & 1 deletion packages/user-flow-example/.user-flowrc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,37 @@
{
"collect": {
"url": "https://coffee-cart.netlify.app/",
"ufPath": "packages/user-flow-example/user-flows"
"ufPath": "packages/user-flow-example/user-flows",
"budgets": [
{
"resourceSizes": [
{
"resourceType": "total",
"budget": 26
},
{
"resourceType": "script",
"budget": 150
}
],
"resourceCounts": [
{
"resourceType": "third-party",
"budget": 100
}
],
"timings": [
{
"metric": "interactive",
"budget": 5000
},
{
"metric": "first-meaningful-paint",
"budget": 2000
}
]
}
]
},
"persist": {
"outputPath": "dist/user-flow/user-flow-example",

This file was deleted.

6 changes: 3 additions & 3 deletions tools/md-report-rename.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {readdirSync, readFileSync, writeFileSync} from 'node:fs';
import {join} from 'node:path';
import {readdirSync, readFileSync, writeFileSync} from 'fs';
import {join} from 'path';

console.log(`Rename results for comment action`);
console.log(`Reame results for comment action`);
const path = 'dist/user-flow/user-flow-gh-integration';
const reportPath = readdirSync(path)[0];
if (!reportPath) {