Replace serve with vite preview to check generated build

This commit is contained in:
Alejandro Celaya 2023-03-08 09:18:32 +01:00
parent 4be38dfd0c
commit 825a749b45
3 changed files with 12 additions and 1186 deletions

View file

@ -10,4 +10,4 @@ services:
ports:
- "3000:3000"
- "56745:56745"
- "5000:5000"
- "4173:4173"

1193
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -13,9 +13,9 @@
"lint:css:fix": "npm run lint:css -- --fix",
"lint:js:fix": "npm run lint:js -- --fix",
"start": "vite serve --host=0.0.0.0",
"preview": "vite preview --host=0.0.0.0",
"build": "tsc --noEmit && vite build && node scripts/replace-version.mjs",
"build:dist": "npm run build && node scripts/create-dist-file.mjs",
"build:serve": "serve -p 5000 ./build",
"test": "jest --env=jsdom --colors",
"test:coverage": "npm run test -- --coverage --coverageReporters=text --coverageReporters=text-summary",
"test:ci": "npm run test:coverage -- --coverageReporters=clover --ci",
@ -102,7 +102,6 @@
"jest-environment-jsdom": "^29.3.1",
"resize-observer-polyfill": "^1.5.1",
"sass": "^1.57.1",
"serve": "^14.1.2",
"stryker-cli": "^1.0.2",
"stylelint": "^14.16.0",
"ts-mockery": "^1.2.0",