forked from stoplightio/elements
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
124 lines (124 loc) · 5.46 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
112
113
114
115
116
117
118
119
120
121
122
123
124
{
"name": "root",
"private": true,
"homepage": "https://github.com/stoplightio/elements",
"bugs": "https://github.com/stoplightio/elements/issues",
"author": "Stoplight <[email protected]>",
"repository": {
"type": "git",
"url": "https://github.com/stoplightio/elements"
},
"license": "Apache-2.0",
"workspaces": [
"demo",
"packages/*"
],
"devDependencies": {
"@babel/core": "^7.17.9",
"@babel/preset-env": "^7.16.11",
"@babel/preset-react": "^7.16.7",
"@babel/preset-typescript": "^7.16.7",
"@stoplight/eslint-config": "2.1.0",
"@storybook/addon-controls": "6.3.5",
"@storybook/addon-docs": "6.3.5",
"@storybook/addon-postcss": "2.0.0",
"@storybook/addon-toolbars": "6.3.5",
"@storybook/addon-viewport": "6.3.5",
"@storybook/builder-webpack5": "6.3.5",
"@storybook/manager-webpack5": "6.3.5",
"@storybook/react": "6.3.5",
"@storybook/theming": "6.3.5",
"@testing-library/cypress": "^7.0.3",
"@typescript-eslint/eslint-plugin": "4.28.4",
"@typescript-eslint/parser": "4.28.4",
"concurrently": "6.1.0",
"css-loader": "6.7.1",
"cssnano": "5.0.6",
"cypress": "^6.3.0",
"eslint": "7.31.0",
"eslint-plugin-import": "2.23.4",
"eslint-plugin-jest": "24.4.0",
"eslint-plugin-prettier": "3.4.0",
"eslint-plugin-react": "7.24.0",
"eslint-plugin-react-hooks": "4.2.0",
"eslint-plugin-simple-import-sort": "7.0.0",
"jest": "^26.6.3",
"jest-environment-jsdom": "^26.3.1",
"jest-junit": "12.2.0",
"lerna": "^3.22.1",
"postcss": "8.3.5",
"postcss-cli": "8.3.1",
"postcss-import": "14.0.2",
"postcss-loader": "6.1.1",
"prettier": "2.3.2",
"process": "0.11.10",
"react": "16.14.0",
"react-dom": "16.14.0",
"start-server-and-test": "^1.11.6",
"style-loader": "3.2.1",
"ts-jest": "^26.4.4",
"tsconfig-paths-webpack-plugin": "^3.2.0",
"typescript": "4.3.5",
"webpack": "5.46.0",
"webpack-cli": "4.7.2",
"webpack-dev-server": "3.11.2"
},
"scripts": {
"demo": "yarn workspace @stoplight/elements-demo",
"elements": "yarn workspace @stoplight/elements",
"elements-core": "yarn workspace @stoplight/elements-core",
"elements-dev-portal": "yarn workspace @stoplight/elements-dev-portal",
"build": "yarn workspace @stoplight/elements-core build && concurrently -n elements,dev-portal \"yarn workspace @stoplight/elements build\" \"yarn workspace @stoplight/elements-dev-portal build\"",
"build.docs": "yarn workspace @stoplight/elements build.docs",
"postbuild": "yarn workspace @stoplight/elements test.packaging && yarn workspace @stoplight/elements-core test.packaging && yarn workspace @stoplight/elements-dev-portal test.packaging",
"lint": "eslint '{packages,examples}/*/src/**/*.{ts,tsx}'",
"version": "lerna version --no-push",
"release": "lerna publish from-package --yes --registry https://registry.npmjs.org",
"release.docs": "yarn workspace @stoplight/elements release.docs",
"type-check": "yarn workspaces run type-check",
"test": "yarn workspace @stoplight/elements test && yarn workspace @stoplight/elements-core test && yarn workspace @stoplight/elements-dev-portal test --passWithNoTests",
"test.prod": "yarn workspace @stoplight/elements test.prod && yarn workspace @stoplight/elements-core test.prod && yarn workspace @stoplight/elements-dev-portal test.prod --passWithNoTests",
"prepublishOnly": "yarn build",
"/// examples ///": "",
"copy:angular": "mkdir examples-dev ; cp -a -v ./examples/angular ./examples-dev ; sh ./use-local-elements.sh angular",
"build:angular": "(cd ./examples-dev/angular && yarn reinstall && yarn build)",
"serve:angular": "(cd ./examples-dev/angular && yarn serve)",
"copy:react-gatsby": "mkdir examples-dev ; cp -a -v ./examples/react-gatsby ./examples-dev ; sh ./use-local-elements.sh react-gatsby",
"build:react-gatsby": "(cd ./examples-dev/react-gatsby && yarn reinstall && yarn build)",
"serve:react-gatsby": "(cd ./examples-dev/react-gatsby && yarn serve)",
"copy:react-cra": "mkdir examples-dev ; cp -a -v ./examples/react-cra ./examples-dev ; sh ./use-local-elements.sh react-cra",
"build:react-cra": "(cd ./examples-dev/react-cra && yarn reinstall && yarn build)",
"serve:react-cra": "(cd ./examples-dev/react-cra && yarn serve)",
"copy:static-html": "mkdir examples-dev ; cp -a -v ./examples/static-html ./examples-dev ; sh ./use-local-elements.sh static-html",
"build:static-html": "(cd ./examples-dev/static-html && yarn reinstall && yarn build)",
"serve:static-html": "(cd ./examples-dev/static-html && yarn serve)",
"/// e2e ///": "",
"e2e:open": "cypress open",
"e2e:execute": "cypress run",
"e2e:run:angular": "start-server-and-test serve:angular http://localhost:4200 e2e:execute",
"e2e:run:react-gatsby": "start-server-and-test serve:react-gatsby http://localhost:4200 e2e:execute",
"e2e:run:react-cra": "start-server-and-test serve:react-cra http://localhost:4200 e2e:execute",
"e2e:run:static-html": "start-server-and-test serve:static-html http://localhost:4200 e2e:execute"
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix"
]
},
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}