forked from patternfly/patternfly-quickstarts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
111 lines (111 loc) · 4 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "@patternfly/quickstarts-root",
"private": true,
"version": "0.0.0",
"description": "This library provides the quickstarts module",
"license": "MIT",
"workspaces": [
"packages/*"
],
"scripts": {
"build": "yarn workspace @patternfly/quickstarts build && yarn build:adoc",
"build:quick": "yarn workspace @patternfly/quickstarts quick",
"build:adoc": "yarn workspace @patternfly/transform-adoc build",
"start": "yarn workspace @patternfly/quickstarts-dev start",
"watch": "yarn build && concurrently --kill-others \"yarn workspace @patternfly/quickstarts watch\" \"yarn start\"",
"watch:quick": "yarn build:quick && concurrently --kill-others \"yarn workspace @patternfly/quickstarts watch\" \"yarn start\"",
"dev:build": "yarn workspace @patternfly/quickstarts-dev build",
"dev:serve": "yarn workspace @patternfly/quickstarts-dev serve",
"test": "LANG=en_US.UTF-8 jest",
"eslint": "eslint --ext .js,.jsx,.ts,.tsx --color",
"lint": "yarn lint:module && yarn lint:dev",
"lint:module": "NODE_OPTIONS=--max-old-space-size=4096 yarn eslint packages/module",
"lint:dev": "NODE_OPTIONS=--max-old-space-size=4096 yarn eslint packages/dev",
"visual": "npx percy exec -- node snapshots.js",
"test:a11y": "patternfly-a11y --config patternfly-a11y.config"
},
"devDependencies": {
"@patternfly/patternfly-a11y": "4.2.1",
"@percy/script": "^1.1.0",
"@types/jest": "^26.0.14",
"@typescript-eslint/eslint-plugin": "2.11.0",
"@typescript-eslint/parser": "2.11.0",
"concurrently": "^5.3.0",
"enzyme-adapter-react-16": "^1.15.6",
"eslint": "6.7.2",
"eslint-config-airbnb": "18.0.1",
"eslint-config-airbnb-base": "14.0.0",
"eslint-config-airbnb-typescript": "^12.3.1",
"eslint-config-prettier": "6.7.0",
"eslint-import-resolver-typescript": "^2.4.0",
"eslint-plugin-console": "./eslint-plugin-console",
"eslint-plugin-cypress": "^2.10.3",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jest": "23.1.1",
"eslint-plugin-json": "^2.0.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-node": "10.0.0",
"eslint-plugin-prettier": "3.1.1",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-react": "7.17.0",
"eslint-plugin-react-hooks": "2.3.0",
"eslint-plugin-sort-class-members": "1.6.0",
"jest": "21.x",
"jest-resolve": "^26.4.0",
"jsdom": "^16.6.0",
"mock-socket": "^9.0.3",
"start-server-and-test": "^1.14.0",
"ts-jest": "21.x",
"typescript": "3.8.3",
"url-search-params-polyfill": "2.x"
},
"jest": {
"moduleFileExtensions": [
"js",
"jsx",
"ts",
"tsx",
"json",
"gql",
"graphql"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"\\.(css|less|scss)$": "<rootDir>/__mocks__/styleMock.js",
"^@console/shared(.*)$": "<rootDir>/packages/module/src/ConsoleShared$1",
"^@console/internal(.*)$": "<rootDir>/packages/module/src/ConsoleInternal$1",
"^@quickstarts(.*)$": "<rootDir>/packages/module/src$1"
},
"transform": {
"^.+\\.(ts|tsx|js|jsx)$": "./node_modules/ts-jest/preprocessor.js"
},
"transformIgnorePatterns": [
"node_modules/(?!(lodash-es|@console|@novnc|@spice-project|@popperjs|i18next|@patternfly\\S*?)/.*)"
],
"testPathIgnorePatterns": [
"node_modules"
],
"testRegex": ".*\\.spec\\.(ts|tsx|js|jsx)$",
"testURL": "http://localhost",
"setupFiles": [
"./__mocks__/localStorage.ts",
"./__mocks__/matchMedia.js",
"./__mocks__/serverFlags.js",
"./__mocks__/mutationObserver.js",
"./__mocks__/websocket.js",
"./before-tests.js"
],
"coverageDirectory": "__coverage__",
"coverageReporters": [
"json",
"lcov",
"text",
"text-summary"
],
"collectCoverageFrom": [
"src/**/*.{js,jsx,ts,tsx}",
"!**/node_modules/**"
],
"resolver": "./jest-resolver.js"
}
}