summaryrefslogtreecommitdiffstats
path: root/package.json
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-12-28 15:29:54 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2023-01-04 16:46:14 +0100
commit5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5 (patch)
tree1363678dab6ed5e1554a7a74bc8a6a1a55bdf785 /package.json
parent8f1bf13ae3046400ce6248fb13e5515e8e9ed5c4 (diff)
downloadnextcloud-server-5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5.tar.gz
nextcloud-server-5b9a8f0407a9e3fe7e00f0fc9284ea986905f1b5.zip
Add component testing
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'package.json')
-rw-r--r--package.json16
1 files changed, 9 insertions, 7 deletions
diff --git a/package.json b/package.json
index de04893bb2d..46425e737f4 100644
--- a/package.json
+++ b/package.json
@@ -8,10 +8,10 @@
"test": "tests"
},
"scripts": {
- "build": "NODE_ENV=production webpack --progress --config webpack.prod.js",
+ "build": "webpack --node-env production --progress",
"postbuild": "npm run sass && npm run sass:icons",
- "dev": "NODE_ENV=development webpack --progress --config webpack.dev.js",
- "watch": "NODE_ENV=development webpack --progress --watch --config webpack.dev.js",
+ "dev": "webpack --node-env development --progress",
+ "watch": "webpack --node-env development --progress --watch",
"lint": "eslint 'apps/*/src/**/*.{vue,js}' 'core/src/**/*.{vue,js}'",
"lint:fix": "eslint 'apps/*/src/**/*.{vue,js}' 'core/src/**/*.{vue,js}' --fix",
"test": "jest",
@@ -20,9 +20,10 @@
"sass": "sass --load-path core/css core/css/ apps/*/css",
"sass:watch": "sass --watch --load-path core/css core/css/ apps/*/css",
"sass:icons": "babel-node core/src/icons.js",
- "cypress": "npm run cypress:e2e",
+ "cypress": "npm run cypress:e2e && npm run cypress:component",
"cypress:e2e": "cypress run --e2e",
- "cypress:gui": "cypress open --e2e"
+ "cypress:component": "cypress run --component",
+ "cypress:gui": "cypress open"
},
"repository": {
"type": "git",
@@ -120,6 +121,7 @@
"@nextcloud/cypress": "^1.0.0-beta.1",
"@nextcloud/eslint-config": "^8.0.0",
"@nextcloud/stylelint-config": "^2.1.2",
+ "@nextcloud/webpack-vue-config": "github:nextcloud/webpack-vue-config#master",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/user-event": "^14.4.3",
"@testing-library/vue": "^5.8.3",
@@ -130,7 +132,7 @@
"@vue/tsconfig": "^0.1.3",
"@vue/vue2-jest": "^29.1.1",
"babel-jest": "^29.0.3",
- "babel-loader": "^8.2.5",
+ "babel-loader": "^9.1.0",
"babel-loader-exclude-node-modules-except": "^1.2.1",
"css-loader": "^6.7.1",
"cypress": "^11.2.0",
@@ -168,7 +170,7 @@
"vue-template-compiler": "^2.7.13",
"wait-on": "^6.0.1",
"webpack": "^5.75.0",
- "webpack-cli": "^4.9.2",
+ "webpack-cli": "^5.0.1",
"webpack-merge": "^5.8.0"
},
"browserslist": [