migration to vite/playwright
This commit is contained in:
60
package.json
60
package.json
@@ -18,17 +18,19 @@
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "standard .",
|
||||
"pretest": "run-s lint cypress:instrument",
|
||||
"test": "NODE_ENV=test start-server-and-test start http://localhost:8000/src/editor/index.html cypress:run",
|
||||
"pretest": "npm run lint",
|
||||
"test": "npm run test:unit && npm run test:e2e",
|
||||
"test:unit": "vitest run --coverage",
|
||||
"test:watch": "vitest",
|
||||
"prebuild": "npm run build --workspace=packages/svgcanvas --workspace=packages/react-test",
|
||||
"build": "rollup -c",
|
||||
"build:watch": "rollup -c --watch",
|
||||
"start": "web-dev-server --app-index src/editor/index.html --node-resolve",
|
||||
"build": "vite build",
|
||||
"postbuild": "node scripts/copy-static.mjs && node scripts/build-extensions.mjs",
|
||||
"build:watch": "vite build --watch",
|
||||
"start": "vite dev --host --port 8000 --strictPort",
|
||||
"prestart": "echo svgedit is available at http://localhost:8000/src/editor/index.html",
|
||||
"start:iife": "web-dev-server --app-index dist/editor/iife-index.html --esbuild-target auto --open",
|
||||
"cypress:run": "rimraf \".nyc_output/*\" && cypress run -q && nyc report --headless --reporter text-summary --reporter json-summary",
|
||||
"cypress:instrument": "nyc instrument --delete --compact=false src instrumented && nyc instrument --compact=false packages instrumented && replace-in-file --configFile=cypress/replace-in-file.config.json",
|
||||
"cypress:test": "start-server-and-test start http://localhost:8000/instrumented/editor/index.html cypress:run",
|
||||
"start:iife": "npm run build && vite preview --host --port 8000 --strictPort --outDir dist/editor --open /iife-index.html",
|
||||
"start:e2e": "npm run build && vite preview --host --port 8000 --strictPort --outDir dist/editor",
|
||||
"test:e2e": "node scripts/run-e2e.mjs",
|
||||
"open-docs-no-start": "open-cli http://localhost:8000/docs/jsdoc/",
|
||||
"open-docs": "run-p start open-docs-no-start",
|
||||
"build-docs-remove": "rimraf \"docs/jsdoc/\"",
|
||||
@@ -87,56 +89,30 @@
|
||||
"dependencies": {
|
||||
"@svgedit/svgcanvas": "7.2.7",
|
||||
"browser-fs-access": "0.38.0",
|
||||
"core-js": "3.47.0",
|
||||
"elix": "15.0.1",
|
||||
"i18next": "25.6.3",
|
||||
"jspdf": "3.0.4",
|
||||
"pathseg": "1.2.1",
|
||||
"regenerator-runtime": "0.14.1",
|
||||
"replace-in-file": "^8.3.0",
|
||||
"svg2pdf.js": "2.6.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.28.5",
|
||||
"@babel/preset-env": "7.28.5",
|
||||
"@babel/register": "7.28.3",
|
||||
"@babel/runtime-corejs3": "7.28.4",
|
||||
"@cypress/code-coverage": "3.14.7",
|
||||
"@rollup/plugin-babel": "6.1.0",
|
||||
"@rollup/plugin-commonjs": "29.0.0",
|
||||
"@playwright/test": "^1.57.0",
|
||||
"@rollup/plugin-dynamic-import-vars": "2.1.5",
|
||||
"@rollup/plugin-node-resolve": "16.0.3",
|
||||
"@rollup/plugin-replace": "6.0.3",
|
||||
"@rollup/plugin-terser": "0.4.4",
|
||||
"@rollup/plugin-url": "8.0.2",
|
||||
"@web/dev-server": "0.4.6",
|
||||
"@web/dev-server-rollup": "0.6.4",
|
||||
"babel-plugin-istanbul": "7.0.1",
|
||||
"babel-plugin-transform-object-rest-spread": "7.0.0-beta.3",
|
||||
"core-js-bundle": "3.47.0",
|
||||
"cp-cli": "2.0.0",
|
||||
"cypress": "15.7.0",
|
||||
"cypress-multi-reporters": "2.0.5",
|
||||
"@vitest/coverage-v8": "^4.0.14",
|
||||
"jamilih": "0.63.1",
|
||||
"jsdoc": "4.0.5",
|
||||
"node-static": "0.7.11",
|
||||
"jsdom": "^27.2.0",
|
||||
"npm-run-all": "4.1.5",
|
||||
"nyc": "17.1.0",
|
||||
"open-cli": "8.0.0",
|
||||
"promise-fs": "2.1.1",
|
||||
"qr-manipulation": "0.7.0",
|
||||
"query-result": "1.0.5",
|
||||
"remark-cli": "12.0.1",
|
||||
"remark-lint-ordered-list-marker-value": "4.0.1",
|
||||
"rimraf": "6.1.2",
|
||||
"rollup": "4.53.3",
|
||||
"rollup-plugin-copy": "3.5.0",
|
||||
"rollup-plugin-filesize": "10.0.0",
|
||||
"rollup-plugin-html": "0.2.1",
|
||||
"rollup-plugin-progress": "1.1.2",
|
||||
"rollup-plugin-re": "1.0.7",
|
||||
"standard": "17.1.2",
|
||||
"start-server-and-test": "2.1.3"
|
||||
"vite": "^7.2.4",
|
||||
"vite-plugin-istanbul": "^7.2.1",
|
||||
"vite-plugin-string": "^1.2.3",
|
||||
"vitest": "^4.0.14"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
"@rollup/rollup-linux-x64-gnu": "4.53.3"
|
||||
|
||||
Reference in New Issue
Block a user