This commit progresses the migration from Vue CLI to Vite (#230). TypeScript migration: - Convert JavaScript Cypress tests and configurations to TypeScript. - Introduce `tsconfig.json` for Cypress, following official recommendation. Test execution: - Use Cypress CLI to run the tests. - Rename Cypress commands to reflect official naming conventions. - Start Vue server prior to Cypress execution, using `start-server-and-test` package based on official documentation. - Remove dependency on Vue CLI plugin ((`@vue/cli-plugin-e2e-cypress`). Configuration standardization (based on Cypress docs): - Delete unused `plugins/` directory. - Move test (spec) files to to the root directory. - Add official ESLint plugin (`eslint-plugin-cypress`). Changes for importing `vite.config.ts` into `cypress.config.ts`: - Add TypeScript import assertations to files importing JSON files. - Use ESM friendly way instead of `__dirname` to solve `ReferenceError: __dirname is not defined in ES module scrope`. Other changes: - Simplify comments in placeholder files. - Create Cypress specific `.gitignore` for enhanced maintainability, clarity and scalability. - Remove redundant `vue.config.cjs`.
115 lines
4.7 KiB
JSON
115 lines
4.7 KiB
JSON
{
|
|
"name": "privacy.sexy",
|
|
"version": "0.12.1",
|
|
"private": true,
|
|
"slogan": "Now you have the choice",
|
|
"description": "Enforce privacy & security best-practices on Windows, macOS and Linux, because privacy is sexy 🍑🍆",
|
|
"author": "undergroundwires",
|
|
"type": "module",
|
|
"scripts": {
|
|
"dev": "vite",
|
|
"build": "vue-tsc --noEmit && vite build",
|
|
"preview": "vite preview",
|
|
"test:unit": "vitest run --dir tests/unit",
|
|
"test:integration": "vitest run --dir tests/integration",
|
|
"test:e2e": "vue-cli-service test:e2e",
|
|
"test:cy:run": "start-server-and-test \"vite build && vite preview --port 7070\" http://localhost:7070 \"cypress run --config baseUrl=http://localhost:7070\"",
|
|
"test:cy:open": "start-server-and-test \"vite --port 7070 --mode production\" http://localhost:7070 \"cypress open --config baseUrl=http://localhost:7070\"",
|
|
"lint": "npm run lint:md && npm run lint:md:consistency && npm run lint:md:relative-urls && npm run lint:eslint && npm run lint:yaml",
|
|
"icons:build": "node scripts/logo-update.js",
|
|
"electron:build": "vue-cli-service electron:build",
|
|
"electron:serve": "vue-cli-service electron:serve",
|
|
"lint:eslint": "eslint .",
|
|
"lint:md": "markdownlint **/*.md --ignore node_modules",
|
|
"lint:md:consistency": "remark . --frail --use remark-preset-lint-consistent",
|
|
"lint:md:relative-urls": "remark . --frail --use remark-validate-links",
|
|
"lint:yaml": "yamllint **/*.yaml --ignore=node_modules/**/*.yaml",
|
|
"postinstall": "electron-builder install-app-deps",
|
|
"postuninstall": "electron-builder install-app-deps"
|
|
},
|
|
"main": "index.js",
|
|
"dependencies": {
|
|
"@fortawesome/fontawesome-svg-core": "^6.4.0",
|
|
"@fortawesome/free-brands-svg-icons": "^6.4.0",
|
|
"@fortawesome/free-regular-svg-icons": "^6.4.0",
|
|
"@fortawesome/free-solid-svg-icons": "^6.4.0",
|
|
"@fortawesome/vue-fontawesome": "^2.0.9",
|
|
"@juggle/resize-observer": "^3.4.0",
|
|
"ace-builds": "^1.23.4",
|
|
"cross-fetch": "^4.0.0",
|
|
"electron-progressbar": "^2.1.0",
|
|
"file-saver": "^2.0.5",
|
|
"install": "^0.13.0",
|
|
"liquor-tree": "^0.2.70",
|
|
"markdown-it": "^13.0.1",
|
|
"npm": "^9.8.1",
|
|
"v-tooltip": "2.1.3",
|
|
"vue": "^2.7.14"
|
|
},
|
|
"devDependencies": {
|
|
"@modyfi/vite-plugin-yaml": "^1.0.4",
|
|
"@rushstack/eslint-patch": "^1.3.2",
|
|
"@types/ace": "^0.0.48",
|
|
"@types/file-saver": "^2.0.5",
|
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
"@typescript-eslint/parser": "^5.62.0",
|
|
"@vitejs/plugin-legacy": "^4.1.1",
|
|
"@vitejs/plugin-vue2": "^2.2.0",
|
|
"@vue/eslint-config-airbnb-with-typescript": "^7.0.0",
|
|
"@vue/eslint-config-typescript": "^11.0.3",
|
|
"@vue/test-utils": "^1.3.6",
|
|
"autoprefixer": "^10.4.15",
|
|
"cypress": "^12.17.2",
|
|
"electron": "^25.3.2",
|
|
"electron-builder": "^24.6.3",
|
|
"electron-devtools-installer": "^3.2.0",
|
|
"electron-icon-builder": "^2.0.1",
|
|
"electron-log": "^4.4.8",
|
|
"electron-updater": "^6.1.4",
|
|
"electron-vite": "^1.0.27",
|
|
"eslint": "^8.46.0",
|
|
"eslint-plugin-cypress": "^2.14.0",
|
|
"eslint-plugin-vue": "^9.6.0",
|
|
"eslint-plugin-vuejs-accessibility": "^1.2.0",
|
|
"icon-gen": "^3.0.1",
|
|
"jsdom": "^22.1.0",
|
|
"markdownlint-cli": "^0.35.0",
|
|
"postcss": "^8.4.28",
|
|
"remark-cli": "^11.0.0",
|
|
"remark-lint-no-dead-urls": "^1.1.0",
|
|
"remark-preset-lint-consistent": "^5.1.2",
|
|
"remark-validate-links": "^12.1.1",
|
|
"sass": "^1.64.1",
|
|
"start-server-and-test": "^2.0.0",
|
|
"svgexport": "^0.4.2",
|
|
"terser": "^5.19.2",
|
|
"tslib": "~2.4.0",
|
|
"typescript": "~4.6.2",
|
|
"vite": "^4.4.9",
|
|
"vitest": "^0.34.2",
|
|
"vue-cli-plugin-electron-builder": "^3.0.0-alpha.4",
|
|
"vue-tsc": "^1.8.8",
|
|
"yaml-lint": "^1.7.0"
|
|
},
|
|
"overrides": {
|
|
"vue-cli-plugin-electron-builder": {
|
|
"electron-builder": "^24.6.3"
|
|
}
|
|
},
|
|
"//devDependencies": {
|
|
"terser": "Used by @vitejs/plugin-legacy for minification",
|
|
"typescript": [
|
|
"Cannot upgrade to 5.X.X due to unmaintained @vue/cli-plugin-typescript, https://github.com/vuejs/vue-cli/issues/7401",
|
|
"Cannot upgrade to > 4.6.X otherwise unit tests do not work, https://github.com/evanw/node-source-map-support/issues/252"
|
|
],
|
|
"tslib": "Cannot upgrade to > 2.4.X otherwise unit tests do not work, https://github.com/evanw/node-source-map-support/issues/252",
|
|
"@typescript-eslint/eslint-plugin": "Cannot upgrade to 6.X.X due to @vue/eslint-config-typescript, https://github.com/vuejs/eslint-config-typescript/pull/60",
|
|
"@typescript-eslint/parser": "Cannot upgrade to 6.X.X due to @vue/eslint-config-typescript, https://github.com/vuejs/eslint-config-typescript/pull/60"
|
|
},
|
|
"homepage": "https://privacy.sexy",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/undergroundwires/privacy.sexy.git"
|
|
}
|
|
}
|