-
Notifications
You must be signed in to change notification settings - Fork 3.2k
/
Copy pathdependencies.ts
252 lines (230 loc) · 6.69 KB
/
dependencies.ts
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
export const WIZARD_DEPENDENCY_WEBPACK = {
type: 'webpack',
name: 'Webpack',
package: 'webpack',
installer: 'webpack',
description: 'Webpack is a module bundler',
minVersion: '^4.0.0 || ^5.0.0',
} as const
export const WIZARD_DEPENDENCY_VUE_2 = {
type: 'vue',
name: 'Vue.js 2',
package: 'vue',
installer: 'vue@2',
description: 'The Progressive JavaScript Framework',
minVersion: '^2.0.0',
} as const
export const WIZARD_DEPENDENCY_VUE_3 = {
type: 'vue',
name: 'Vue.js 3',
package: 'vue',
installer: 'vue',
description: 'The Progressive JavaScript Framework',
minVersion: '^3.0.0',
} as const
export const WIZARD_DEPENDENCY_REACT = {
type: 'react',
name: 'React.js',
package: 'react',
installer: 'react',
description: 'A JavaScript library for building user interfaces',
minVersion: '^16.0.0 || ^17.0.0 || ^18.0.0',
} as const
export const WIZARD_DEPENDENCY_REACT_DOM = {
type: 'react-dom',
name: 'React DOM',
package: 'react-dom',
installer: 'react-dom',
description: 'This package serves as the entry point to the DOM and server renderers for React',
minVersion: '^16.0.0 || ^17.0.0 || ^18.0.0',
} as const
export const WIZARD_DEPENDENCY_TYPESCRIPT = {
type: 'typescript',
name: 'TypeScript',
package: 'typescript',
installer: 'typescript',
description: 'TypeScript is a language for application-scale JavaScript',
minVersion: '^3.4.0 || ^4.0.0 || ^5.0.0',
} as const
export const WIZARD_DEPENDENCY_REACT_SCRIPTS = {
type: 'reactscripts',
name: 'React Scripts',
package: 'react-scripts',
installer: 'react-scripts',
description: 'Create React apps with no build configuration',
minVersion: '^4.0.0 || ^5.0.0',
} as const
export const WIZARD_DEPENDENCY_VUE_CLI_SERVICE = {
type: 'vuecliservice',
name: 'Vue CLI',
package: '@vue/cli-service',
installer: '@vue/cli-service',
description: 'Standard Tooling for Vue.js Development',
minVersion: '^4.0.0 || ^5.0.0',
} as const
export const WIZARD_DEPENDENCY_VITE = {
type: 'vite',
name: 'Vite',
package: 'vite',
installer: 'vite',
description: 'Vite is dev server that serves your source files over native ES modules',
minVersion: '^2.0.0 || ^3.0.0 || ^4.0.0',
} as const
export const WIZARD_DEPENDENCY_NUXT = {
type: 'nuxt',
name: 'Nuxt',
package: 'nuxt',
installer: 'nuxt@2',
description: 'The Intuitive Vue Framework',
minVersion: '^2.0.0',
} as const
export const WIZARD_DEPENDENCY_NEXT = {
type: 'next',
name: 'Next',
package: 'next',
installer: 'next',
description: 'The React Framework for Production',
minVersion: '^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0',
} as const
export const WIZARD_DEPENDENCY_ANGULAR_CLI = {
type: 'angular',
name: 'Angular CLI',
package: '@angular/cli',
installer: '@angular/cli',
description: 'CLI tool that you use to initialize, develop, scaffold, and maintain Angular applications.',
minVersion: '^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0',
} as const
export const WIZARD_DEPENDENCY_ANGULAR_DEVKIT_BUILD_ANGULAR = {
type: 'angular',
name: 'Angular DevKit Build Angular',
package: '@angular-devkit/build-angular',
installer: '@angular-devkit/build-angular',
description: 'Angular Webpack build facade',
minVersion: '^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0',
} as const
export const WIZARD_DEPENDENCY_ANGULAR_CORE = {
type: 'angular',
name: 'Angular Core',
package: '@angular/core',
installer: '@angular/core',
description: 'The core of the Angular framework',
minVersion: '^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0',
} as const
export const WIZARD_DEPENDENCY_ANGULAR_COMMON = {
type: 'angular',
name: 'Angular Common',
package: '@angular/common',
installer: '@angular/common',
description: 'Commonly needed Angular directives and services',
minVersion: '^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0',
} as const
export const WIZARD_DEPENDENCY_ANGULAR_PLATFORM_BROWSER_DYNAMIC = {
type: 'angular',
name: 'Angular Platform Browser Dynamic',
package: '@angular/platform-browser-dynamic',
installer: '@angular/platform-browser-dynamic',
description: 'Library for using Angular in a web browser with JIT compilation',
minVersion: '^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0',
} as const
export const WIZARD_DEPENDENCY_SVELTE: Cypress.CypressComponentDependency = {
type: 'svelte',
name: 'Svelte.js',
package: 'svelte',
installer: 'svelte',
description: 'Cybernetically enhanced web apps',
minVersion: '^3.0.0 || ^4.0.0',
} as const
export const WIZARD_DEPENDENCIES = [
WIZARD_DEPENDENCY_WEBPACK,
WIZARD_DEPENDENCY_TYPESCRIPT,
WIZARD_DEPENDENCY_REACT_SCRIPTS,
WIZARD_DEPENDENCY_VUE_CLI_SERVICE,
WIZARD_DEPENDENCY_VITE,
WIZARD_DEPENDENCY_NUXT,
WIZARD_DEPENDENCY_NEXT,
WIZARD_DEPENDENCY_REACT,
WIZARD_DEPENDENCY_REACT_DOM,
WIZARD_DEPENDENCY_VUE_2,
WIZARD_DEPENDENCY_VUE_3,
WIZARD_DEPENDENCY_ANGULAR_CLI,
WIZARD_DEPENDENCY_ANGULAR_DEVKIT_BUILD_ANGULAR,
WIZARD_DEPENDENCY_ANGULAR_CORE,
WIZARD_DEPENDENCY_ANGULAR_COMMON,
WIZARD_DEPENDENCY_ANGULAR_PLATFORM_BROWSER_DYNAMIC,
WIZARD_DEPENDENCY_SVELTE,
] as const
export const WIZARD_BUNDLERS = [
WIZARD_DEPENDENCY_WEBPACK,
WIZARD_DEPENDENCY_VITE,
] as const
const componentDependenciesOfInterest = [
'@angular/cli',
'@angular-devkit/build-angular',
'@angular/core',
'@angular/common',
'@angular/platform-browser-dynamic',
'react',
'react-dom',
'react-scripts',
'vue',
'@vue/cli-service',
'svelte',
'solid-js',
'lit',
'preact',
'preact-cli',
'ember',
'@stencil/core',
'@builder.io/qwik',
'alpinejs',
'@glimmer/component',
'typescript',
]
const bundlerDependenciesOfInterest = [
'vite',
'webpack',
'parcel',
'rollup',
'snowpack',
]
const testingDependenciesOfInterest = [
'jest',
'jsdom',
'jest-preview',
'storybook',
'@storybook/addon-interactions',
'@storybook/addon-a11y',
'chromatic',
'@testing-library/react',
'@testing-library/react-hooks',
'@testing-library/dom',
'@testing-library/jest-dom',
'@testing-library/cypress',
'@testing-library/user-event',
'@testing-library/vue',
'@testing-library/svelte',
'@testing-library/preact',
'happy-dom',
'vitest',
'vitest-preview',
'selenium-webdriver',
'nightwatch',
'karma',
'playwright',
'playwright-core',
'@playwright/experimental-ct-core',
'@playwright/experimental-ct-react',
'@playwright/experimental-ct-svelte',
'@playwright/experimental-ct-vue',
'@playwright/experimental-ct-vue2',
'@playwright/experimental-ct-solid',
'@playwright/experimental-ct-react17',
'axe-core',
'jest-axe',
'enzyme',
]
export const dependencyNamesToDetect = [
...componentDependenciesOfInterest,
...bundlerDependenciesOfInterest,
...testingDependenciesOfInterest,
]