File tree 4 files changed +17
-5
lines changed
4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "npmClient" : " yarn" ,
3
+ "useWorkspaces" : true ,
4
+ "packages" : [" packages/*" ],
5
+ "version" : " 0.0.0"
6
+ }
Original file line number Diff line number Diff line change 4
4
" packages/*"
5
5
],
6
6
"scripts" : {
7
- "clean" : " rm -rf ./dist" ,
8
- "build" : " parcel build ./packages/server/src/ui/index.html --public-url=/app " ,
9
- "build:watch" : " parcel watch ./packages/ server/src/ui/index.html --public-url=/app " ,
10
- "build:source-map-explorer" : " npm run clean && npm run build && ./scripts/ source-map-explorer.sh " ,
7
+ "clean" : " lerna exec --parallel ' rm -rf ./dist' " ,
8
+ "build" : " lerna run --scope @lhci/server build " ,
9
+ "build:watch" : " lerna run --scope @lhci/ server build:watch --stream " ,
10
+ "build:source-map-explorer" : " lerna run --scope @lhci/server build: source-map-explorer" ,
11
11
"start" : " ./packages/cli/src/cli.js" ,
12
12
"start:seed-data-in-viewer" : " node ./scripts/open-seed-report-in-viewer.js" ,
13
13
"start:seed-database" : " node ./scripts/seed-database.js ./packages/cli/test/fixtures/lighthouserc.json" ,
Original file line number Diff line number Diff line change 3
3
"main" : " ./src/server.js" ,
4
4
"version" : " 0.1.0" ,
5
5
"license" : " Apache-2.0" ,
6
+ "scripts" : {
7
+ "clean" : " rm -rf ./dist" ,
8
+ "build" : " parcel build ./src/ui/index.html --public-url=/app" ,
9
+ "build:watch" : " parcel watch ./src/ui/index.html --public-url=/app" ,
10
+ "build:source-map-explorer" : " npm run clean && npm run build && ../../scripts/source-map-explorer.sh"
11
+ },
6
12
"dependencies" : {
7
13
"@lhci/utils" : " 0.1.0" ,
8
14
"body-parser" : " ^1.18.3" ,
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const createProjectsRouter = require('./api/routes/projects.js');
15
15
const StorageMethod = require ( './api/storage/storage-method.js' ) ;
16
16
const { errorMiddleware} = require ( './api/express-utils.js' ) ;
17
17
18
- const DIST_FOLDER = path . join ( __dirname , '../../../ dist' ) ;
18
+ const DIST_FOLDER = path . join ( __dirname , '../dist' ) ;
19
19
20
20
/**
21
21
* @param {LHCI.ServerCommand.Options } options
You can’t perform that action at this time.
0 commit comments