@nrwl/react-native 15.4.3-beta.1 → 15.4.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/package.json +10 -10
- package/src/generators/application/files/app/src/app/App.tsx.template +222 -36
- package/src/utils/add-jest.js +1 -1
- package/src/utils/add-linting.js +6 -8
- package/src/utils/add-linting.js.map +1 -1
- package/src/generators/application/files/app/src/app/icons/blog.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/book.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/checkmark.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/chevron-right.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/courses.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/github.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/heart.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/logo.png +0 -0
- package/src/generators/application/files/app/src/app/icons/nx-cloud.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/pointer.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/terminal.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/vscode.svg +0 -1
- package/src/generators/application/files/app/src/app/icons/youtube.svg +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
## [15.4.
|
|
6
|
+
## [15.4.4](https://github.com/nrwl/nx/compare/15.4.3...15.4.4) (2023-01-03)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @nrwl/react-native
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nrwl/react-native",
|
|
3
|
-
"version": "15.4.
|
|
3
|
+
"version": "15.4.4",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "The Nx Plugin for React Native contains generators for managing React Native applications and libraries within an Nx workspace. It provides: \n\n-Integration with libraries such as Jest, Detox, and Storybook.\n-Scaffolding for creating buildable libraries that can be published to npm.\n-Utilities for automatic workspace refactoring.",
|
|
6
6
|
"keywords": [
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"main": "index.js",
|
|
26
26
|
"types": "index.d.ts",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@nrwl/detox": "15.4.
|
|
29
|
-
"@nrwl/devkit": "15.4.
|
|
30
|
-
"@nrwl/jest": "15.4.
|
|
31
|
-
"@nrwl/js": "15.4.
|
|
32
|
-
"@nrwl/linter": "15.4.
|
|
33
|
-
"@nrwl/react": "15.4.
|
|
34
|
-
"@nrwl/workspace": "15.4.
|
|
28
|
+
"@nrwl/detox": "15.4.4",
|
|
29
|
+
"@nrwl/devkit": "15.4.4",
|
|
30
|
+
"@nrwl/jest": "15.4.4",
|
|
31
|
+
"@nrwl/js": "15.4.4",
|
|
32
|
+
"@nrwl/linter": "15.4.4",
|
|
33
|
+
"@nrwl/react": "15.4.4",
|
|
34
|
+
"@nrwl/workspace": "15.4.4",
|
|
35
35
|
"chalk": "^4.1.0",
|
|
36
36
|
"enhanced-resolve": "^5.8.3",
|
|
37
37
|
"fs-extra": "^10.1.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"metro-resolver": "^0.73.3",
|
|
40
40
|
"minimatch": "3.0.5",
|
|
41
41
|
"node-fetch": "^2.6.7",
|
|
42
|
-
"tsconfig-paths": "^
|
|
42
|
+
"tsconfig-paths": "^4.1.2"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"react-native": "^0.70.6"
|
|
@@ -53,5 +53,5 @@
|
|
|
53
53
|
"publishConfig": {
|
|
54
54
|
"access": "public"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "19abb973f0b78733c1fbd3d9ee05576a42a602e5"
|
|
57
57
|
}
|
|
@@ -10,19 +10,7 @@ import {
|
|
|
10
10
|
TouchableOpacity,
|
|
11
11
|
Linking,
|
|
12
12
|
} from 'react-native';
|
|
13
|
-
|
|
14
|
-
import Checkmark from './icons/checkmark.svg';
|
|
15
|
-
import Book from './icons/book.svg';
|
|
16
|
-
import ChevronRight from './icons/chevron-right.svg';
|
|
17
|
-
import Blog from './icons/blog.svg';
|
|
18
|
-
import Courses from './icons/courses.svg';
|
|
19
|
-
import YouTube from './icons/youtube.svg';
|
|
20
|
-
import Pointer from './icons/pointer.svg';
|
|
21
|
-
import VSCode from './icons/vscode.svg';
|
|
22
|
-
import NxCloud from './icons/nx-cloud.svg';
|
|
23
|
-
import GitHub from './icons/github.svg';
|
|
24
|
-
import Terminal from './icons/terminal.svg';
|
|
25
|
-
import Heart from './icons/heart.svg';
|
|
13
|
+
import Svg, { Path } from 'react-native-svg';
|
|
26
14
|
|
|
27
15
|
export const App = () => {
|
|
28
16
|
const [whatsNextYCoord, setWhatsNextYCoord] = useState<number>(0);
|
|
@@ -48,11 +36,20 @@ export const App = () => {
|
|
|
48
36
|
<View style={styles.section}>
|
|
49
37
|
<View style={styles.hero}>
|
|
50
38
|
<View style={styles.heroTitle}>
|
|
51
|
-
<
|
|
39
|
+
<Svg
|
|
52
40
|
width={32}
|
|
53
41
|
height={32}
|
|
54
42
|
stroke="hsla(162, 47%, 50%, 1)"
|
|
55
|
-
|
|
43
|
+
fill="none"
|
|
44
|
+
viewBox="0 0 24 24"
|
|
45
|
+
>
|
|
46
|
+
<Path
|
|
47
|
+
strokeLinecap="round"
|
|
48
|
+
strokeLinejoin="round"
|
|
49
|
+
strokeWidth="2"
|
|
50
|
+
d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"
|
|
51
|
+
/>
|
|
52
|
+
</Svg>
|
|
56
53
|
<Text style={[styles.textLg, styles.heroTitleText]}>
|
|
57
54
|
You're up and running
|
|
58
55
|
</Text>
|
|
@@ -85,31 +82,81 @@ export const App = () => {
|
|
|
85
82
|
)
|
|
86
83
|
}
|
|
87
84
|
>
|
|
88
|
-
<
|
|
85
|
+
<Svg
|
|
86
|
+
width={24}
|
|
87
|
+
height={24}
|
|
88
|
+
stroke="#000000"
|
|
89
|
+
fill="none"
|
|
90
|
+
viewBox="0 0 24 24"
|
|
91
|
+
>
|
|
92
|
+
<Path
|
|
93
|
+
strokeLinecap="round"
|
|
94
|
+
strokeLinejoin="round"
|
|
95
|
+
strokeWidth="2"
|
|
96
|
+
d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"
|
|
97
|
+
/>
|
|
98
|
+
</Svg>
|
|
89
99
|
<View style={styles.listItemTextContainer}>
|
|
90
100
|
<Text style={[styles.textMd]}>Documentation</Text>
|
|
91
101
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
92
102
|
Everything is in there
|
|
93
103
|
</Text>
|
|
94
104
|
</View>
|
|
95
|
-
<
|
|
105
|
+
<Svg
|
|
106
|
+
width={18}
|
|
107
|
+
height={18}
|
|
108
|
+
stroke="#000000"
|
|
109
|
+
fill="none"
|
|
110
|
+
viewBox="0 0 24 24"
|
|
111
|
+
>
|
|
112
|
+
<Path
|
|
113
|
+
strokeLinecap="round"
|
|
114
|
+
strokeLinejoin="round"
|
|
115
|
+
strokeWidth="2"
|
|
116
|
+
d="M9 5l7 7-7 7"
|
|
117
|
+
/>
|
|
118
|
+
</Svg>
|
|
96
119
|
</TouchableOpacity>
|
|
97
120
|
<TouchableOpacity
|
|
98
121
|
style={[styles.listItem, styles.learning]}
|
|
99
122
|
onPress={() =>
|
|
100
|
-
Linking.openURL(
|
|
101
|
-
'https://blog.nrwl.io/?utm_source=nx-project'
|
|
102
|
-
)
|
|
123
|
+
Linking.openURL('https://blog.nrwl.io/?utm_source=nx-project')
|
|
103
124
|
}
|
|
104
125
|
>
|
|
105
|
-
<
|
|
126
|
+
<Svg
|
|
127
|
+
width={24}
|
|
128
|
+
height={24}
|
|
129
|
+
stroke="#000000"
|
|
130
|
+
fill="none"
|
|
131
|
+
viewBox="0 0 24 24"
|
|
132
|
+
>
|
|
133
|
+
<Path
|
|
134
|
+
strokeLinecap="round"
|
|
135
|
+
strokeLinejoin="round"
|
|
136
|
+
strokeWidth="2"
|
|
137
|
+
d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
|
|
138
|
+
/>
|
|
139
|
+
</Svg>
|
|
106
140
|
<View style={styles.listItemTextContainer}>
|
|
107
141
|
<Text style={[styles.textMd]}>Blog</Text>
|
|
108
142
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
109
143
|
Changelog, features & events
|
|
110
144
|
</Text>
|
|
111
145
|
</View>
|
|
112
|
-
<
|
|
146
|
+
<Svg
|
|
147
|
+
width={18}
|
|
148
|
+
height={18}
|
|
149
|
+
stroke="#000000"
|
|
150
|
+
fill="none"
|
|
151
|
+
viewBox="0 0 24 24"
|
|
152
|
+
>
|
|
153
|
+
<Path
|
|
154
|
+
strokeLinecap="round"
|
|
155
|
+
strokeLinejoin="round"
|
|
156
|
+
strokeWidth="2"
|
|
157
|
+
d="M9 5l7 7-7 7"
|
|
158
|
+
/>
|
|
159
|
+
</Svg>
|
|
113
160
|
</TouchableOpacity>
|
|
114
161
|
<TouchableOpacity
|
|
115
162
|
style={[styles.listItem, styles.learning]}
|
|
@@ -119,14 +166,29 @@ export const App = () => {
|
|
|
119
166
|
)
|
|
120
167
|
}
|
|
121
168
|
>
|
|
122
|
-
<
|
|
169
|
+
<Svg width={24} height={24} fill="#000000" viewBox="0 0 24 24">
|
|
170
|
+
<Path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z" />
|
|
171
|
+
</Svg>
|
|
123
172
|
<View style={styles.listItemTextContainer}>
|
|
124
173
|
<Text style={[styles.textMd]}>Youtube channel</Text>
|
|
125
174
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
126
175
|
Nx Show, talks & tutorials
|
|
127
176
|
</Text>
|
|
128
177
|
</View>
|
|
129
|
-
<
|
|
178
|
+
<Svg
|
|
179
|
+
width={18}
|
|
180
|
+
height={18}
|
|
181
|
+
stroke="#000000"
|
|
182
|
+
fill="none"
|
|
183
|
+
viewBox="0 0 24 24"
|
|
184
|
+
>
|
|
185
|
+
<Path
|
|
186
|
+
strokeLinecap="round"
|
|
187
|
+
strokeLinejoin="round"
|
|
188
|
+
strokeWidth="2"
|
|
189
|
+
d="M9 5l7 7-7 7"
|
|
190
|
+
/>
|
|
191
|
+
</Svg>
|
|
130
192
|
</TouchableOpacity>
|
|
131
193
|
<TouchableOpacity
|
|
132
194
|
style={[styles.listItem, styles.learning]}
|
|
@@ -136,14 +198,40 @@ export const App = () => {
|
|
|
136
198
|
)
|
|
137
199
|
}
|
|
138
200
|
>
|
|
139
|
-
<
|
|
201
|
+
<Svg
|
|
202
|
+
width={24}
|
|
203
|
+
height={24}
|
|
204
|
+
stroke="#000000"
|
|
205
|
+
fill="none"
|
|
206
|
+
viewBox="0 0 24 24"
|
|
207
|
+
>
|
|
208
|
+
<Path
|
|
209
|
+
strokeLinecap="round"
|
|
210
|
+
strokeLinejoin="round"
|
|
211
|
+
strokeWidth="2"
|
|
212
|
+
d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
|
|
213
|
+
/>
|
|
214
|
+
</Svg>
|
|
140
215
|
<View style={styles.listItemTextContainer}>
|
|
141
216
|
<Text style={[styles.textMd]}>Interactive tutorials</Text>
|
|
142
217
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
143
218
|
Create an app, step by step
|
|
144
219
|
</Text>
|
|
145
220
|
</View>
|
|
146
|
-
<
|
|
221
|
+
<Svg
|
|
222
|
+
width={18}
|
|
223
|
+
height={18}
|
|
224
|
+
stroke="#000000"
|
|
225
|
+
fill="none"
|
|
226
|
+
viewBox="0 0 24 24"
|
|
227
|
+
>
|
|
228
|
+
<Path
|
|
229
|
+
strokeLinecap="round"
|
|
230
|
+
strokeLinejoin="round"
|
|
231
|
+
strokeWidth="2"
|
|
232
|
+
d="M9 5l7 7-7 7"
|
|
233
|
+
></Path>
|
|
234
|
+
</Svg>
|
|
147
235
|
</TouchableOpacity>
|
|
148
236
|
<TouchableOpacity
|
|
149
237
|
style={[styles.listItem, styles.learning]}
|
|
@@ -153,14 +241,42 @@ export const App = () => {
|
|
|
153
241
|
)
|
|
154
242
|
}
|
|
155
243
|
>
|
|
156
|
-
<
|
|
244
|
+
<Svg
|
|
245
|
+
width={24}
|
|
246
|
+
height={24}
|
|
247
|
+
stroke="#000000"
|
|
248
|
+
fill="none"
|
|
249
|
+
viewBox="0 0 24 24"
|
|
250
|
+
>
|
|
251
|
+
<Path d="M12 14l9-5-9-5-9 5 9 5z"></Path>
|
|
252
|
+
<Path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></Path>
|
|
253
|
+
<Path
|
|
254
|
+
strokeLinecap="round"
|
|
255
|
+
strokeLinejoin="round"
|
|
256
|
+
strokeWidth="2"
|
|
257
|
+
d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"
|
|
258
|
+
></Path>
|
|
259
|
+
</Svg>
|
|
157
260
|
<View style={styles.listItemTextContainer}>
|
|
158
261
|
<Text style={[styles.textMd]}>Video courses</Text>
|
|
159
262
|
<Text style={[styles.text2XS, styles.textSubtle]}>
|
|
160
263
|
Nx custom courses
|
|
161
264
|
</Text>
|
|
162
265
|
</View>
|
|
163
|
-
<
|
|
266
|
+
<Svg
|
|
267
|
+
width={18}
|
|
268
|
+
height={18}
|
|
269
|
+
stroke="#000000"
|
|
270
|
+
fill="none"
|
|
271
|
+
viewBox="0 0 24 24"
|
|
272
|
+
>
|
|
273
|
+
<Path
|
|
274
|
+
strokeLinecap="round"
|
|
275
|
+
strokeLinejoin="round"
|
|
276
|
+
strokeWidth="2"
|
|
277
|
+
d="M9 5l7 7-7 7"
|
|
278
|
+
></Path>
|
|
279
|
+
</Svg>
|
|
164
280
|
</TouchableOpacity>
|
|
165
281
|
</View>
|
|
166
282
|
</View>
|
|
@@ -173,7 +289,14 @@ export const App = () => {
|
|
|
173
289
|
}
|
|
174
290
|
>
|
|
175
291
|
<View style={[styles.listItem, styles.shadowBox]}>
|
|
176
|
-
<
|
|
292
|
+
<Svg
|
|
293
|
+
width={48}
|
|
294
|
+
height={48}
|
|
295
|
+
fill="rgba(0, 122, 204, 1)"
|
|
296
|
+
viewBox="0 0 24 24"
|
|
297
|
+
>
|
|
298
|
+
<Path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z" />
|
|
299
|
+
</Svg>
|
|
177
300
|
<View style={styles.listItemTextContainer}>
|
|
178
301
|
<Text
|
|
179
302
|
style={[
|
|
@@ -199,7 +322,16 @@ export const App = () => {
|
|
|
199
322
|
>
|
|
200
323
|
<View style={styles.shadowBox}>
|
|
201
324
|
<View style={[styles.listItem, styles.marginBottomMd]}>
|
|
202
|
-
<
|
|
325
|
+
<Svg width={48} height={48} viewBox="0 0 120 120" fill="none">
|
|
326
|
+
<Path
|
|
327
|
+
d="M120 15V30C103.44 30 90 43.44 90 60C90 76.56 76.56 90 60 90C43.44 90 30 103.44 30 120H15C6.72 120 0 113.28 0 105V15C0 6.72 6.72 0 15 0H105C113.28 0 120 6.72 120 15Z"
|
|
328
|
+
fill="#0E2039"
|
|
329
|
+
/>
|
|
330
|
+
<Path
|
|
331
|
+
d="M120 30V105C120 113.28 113.28 120 105 120H30C30 103.44 43.44 90 60 90C76.56 90 90 76.56 90 60C90 43.44 103.44 30 120 30Z"
|
|
332
|
+
fill="white"
|
|
333
|
+
/>
|
|
334
|
+
</Svg>
|
|
203
335
|
<View style={styles.listItemTextContainer}>
|
|
204
336
|
<Text
|
|
205
337
|
style={[
|
|
@@ -228,7 +360,9 @@ export const App = () => {
|
|
|
228
360
|
}
|
|
229
361
|
>
|
|
230
362
|
<View style={[styles.listItem, styles.shadowBox]}>
|
|
231
|
-
<
|
|
363
|
+
<Svg width={48} height={48} fill="#000000" viewBox="0 0 24 24">
|
|
364
|
+
<Path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12" />
|
|
365
|
+
</Svg>
|
|
232
366
|
<View style={styles.listItemTextContainer}>
|
|
233
367
|
<Text
|
|
234
368
|
style={[
|
|
@@ -263,7 +397,20 @@ export const App = () => {
|
|
|
263
397
|
Here are some things you can do with Nx:
|
|
264
398
|
</Text>
|
|
265
399
|
<View style={styles.listItem}>
|
|
266
|
-
<
|
|
400
|
+
<Svg
|
|
401
|
+
width={24}
|
|
402
|
+
height={24}
|
|
403
|
+
stroke="#000000"
|
|
404
|
+
fill="none"
|
|
405
|
+
viewBox="0 0 24 24"
|
|
406
|
+
>
|
|
407
|
+
<Path
|
|
408
|
+
strokeLinecap="round"
|
|
409
|
+
strokeLinejoin="round"
|
|
410
|
+
strokeWidth="2"
|
|
411
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
412
|
+
/>
|
|
413
|
+
</Svg>
|
|
267
414
|
<View style={styles.listItemTextContainer}>
|
|
268
415
|
<Text style={styles.textSm}>Add UI library</Text>
|
|
269
416
|
</View>
|
|
@@ -293,7 +440,20 @@ export const App = () => {
|
|
|
293
440
|
</Text>
|
|
294
441
|
</View>
|
|
295
442
|
<View style={styles.listItem}>
|
|
296
|
-
|
|
443
|
+
<Svg
|
|
444
|
+
width={24}
|
|
445
|
+
height={24}
|
|
446
|
+
stroke="#000000"
|
|
447
|
+
fill="none"
|
|
448
|
+
viewBox="0 0 24 24"
|
|
449
|
+
>
|
|
450
|
+
<Path
|
|
451
|
+
strokeLinecap="round"
|
|
452
|
+
strokeLinejoin="round"
|
|
453
|
+
strokeWidth="2"
|
|
454
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
455
|
+
/>
|
|
456
|
+
</Svg>
|
|
297
457
|
<View style={styles.listItemTextContainer}>
|
|
298
458
|
<Text style={styles.textSm}>
|
|
299
459
|
View interactive project graph
|
|
@@ -306,7 +466,20 @@ export const App = () => {
|
|
|
306
466
|
</Text>
|
|
307
467
|
</View>
|
|
308
468
|
<View style={styles.listItem}>
|
|
309
|
-
<
|
|
469
|
+
<Svg
|
|
470
|
+
width={24}
|
|
471
|
+
height={24}
|
|
472
|
+
stroke="#000000"
|
|
473
|
+
fill="none"
|
|
474
|
+
viewBox="0 0 24 24"
|
|
475
|
+
>
|
|
476
|
+
<Path
|
|
477
|
+
strokeLinecap="round"
|
|
478
|
+
strokeLinejoin="round"
|
|
479
|
+
strokeWidth="2"
|
|
480
|
+
d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"
|
|
481
|
+
/>
|
|
482
|
+
</Svg>
|
|
310
483
|
<View style={styles.listItemTextContainer}>
|
|
311
484
|
<Text style={styles.textSm}>Run affected commands</Text>
|
|
312
485
|
</View>
|
|
@@ -349,7 +522,20 @@ export const App = () => {
|
|
|
349
522
|
</View>
|
|
350
523
|
<View style={[styles.listItem, styles.love]}>
|
|
351
524
|
<Text style={styles.textSubtle}>Carefully crafted with </Text>
|
|
352
|
-
<
|
|
525
|
+
<Svg
|
|
526
|
+
width={24}
|
|
527
|
+
height={24}
|
|
528
|
+
fill="rgba(252, 165, 165, 1)"
|
|
529
|
+
stroke="none"
|
|
530
|
+
viewBox="0 0 24 24"
|
|
531
|
+
>
|
|
532
|
+
<Path
|
|
533
|
+
strokeLinecap="round"
|
|
534
|
+
strokeLinejoin="round"
|
|
535
|
+
strokeWidth="2"
|
|
536
|
+
d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"
|
|
537
|
+
/>
|
|
538
|
+
</Svg>
|
|
353
539
|
</View>
|
|
354
540
|
</View>
|
|
355
541
|
</ScrollView>
|
|
@@ -418,7 +604,7 @@ const styles = StyleSheet.create({
|
|
|
418
604
|
color: '#6b7280',
|
|
419
605
|
},
|
|
420
606
|
section: {
|
|
421
|
-
marginVertical:
|
|
607
|
+
marginVertical: 24,
|
|
422
608
|
marginHorizontal: 12,
|
|
423
609
|
},
|
|
424
610
|
shadowBox: {
|
package/src/utils/add-jest.js
CHANGED
|
@@ -26,7 +26,7 @@ function addJest(host, unitTestRunner, projectName, appProjectRoot, js, skipPack
|
|
|
26
26
|
moduleFileExtensions: ['ts', 'js', 'html', 'tsx', 'jsx'],
|
|
27
27
|
setupFilesAfterEnv: ['<rootDir>/test-setup.${js ? 'js' : 'ts'}'],
|
|
28
28
|
moduleNameMapper: {
|
|
29
|
-
'
|
|
29
|
+
'\\\\.svg$': '@nrwl/react-native/plugins/jest/svg-mock'
|
|
30
30
|
}
|
|
31
31
|
};`;
|
|
32
32
|
host.write(configPath, content);
|
package/src/utils/add-linting.js
CHANGED
|
@@ -22,15 +22,13 @@ function addLinting(host, options) {
|
|
|
22
22
|
});
|
|
23
23
|
tasks.push(lintTask);
|
|
24
24
|
(0, devkit_1.updateJson)(host, (0, devkit_1.joinPathFragments)(options.projectRoot, '.eslintrc.json'), (json) => {
|
|
25
|
-
var _a;
|
|
26
25
|
json = (0, react_1.extendReactEslintJson)(json);
|
|
27
|
-
json.ignorePatterns = [
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
26
|
+
json.ignorePatterns = [
|
|
27
|
+
...json.ignorePatterns,
|
|
28
|
+
'public',
|
|
29
|
+
'.cache',
|
|
30
|
+
'node_modules',
|
|
31
|
+
];
|
|
34
32
|
return json;
|
|
35
33
|
});
|
|
36
34
|
if (!options.skipPackageJson) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-linting.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-linting.ts"],"names":[],"mappings":";;;;AAAA,2FAAqF;AACrF,yCAA4D;AAC5D,yCAMsB;AACtB,uCAA6E;AAY7E,SAAsB,UAAU,CAAC,IAAU,EAAE,OAAyB;;QACpE,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,IAAI,EAAE;YAClC,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QACD,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAoB,EAAC,IAAI,EAAE;YAChD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,WAAW;YAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,kBAAkB,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,uBAAuB,CAAC;YACnE,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErB,IAAA,mBAAU,EACR,IAAI,EACJ,IAAA,0BAAiB,EAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,EACxD,CAAC,IAAyB,EAAE,EAAE
|
|
1
|
+
{"version":3,"file":"add-linting.js","sourceRoot":"","sources":["../../../../../packages/react-native/src/utils/add-linting.ts"],"names":[],"mappings":";;;;AAAA,2FAAqF;AACrF,yCAA4D;AAC5D,yCAMsB;AACtB,uCAA6E;AAY7E,SAAsB,UAAU,CAAC,IAAU,EAAE,OAAyB;;QACpE,IAAI,OAAO,CAAC,MAAM,KAAK,eAAM,CAAC,IAAI,EAAE;YAClC,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QACD,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAoB,EAAC,IAAI,EAAE;YAChD,MAAM,EAAE,OAAO,CAAC,MAAM;YACtB,OAAO,EAAE,OAAO,CAAC,WAAW;YAC5B,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,kBAAkB,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,uBAAuB,CAAC;YACnE,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,OAAO,CAAC,eAAe;SACzC,CAAC,CAAC;QAEH,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;QAErB,IAAA,mBAAU,EACR,IAAI,EACJ,IAAA,0BAAiB,EAAC,OAAO,CAAC,WAAW,EAAE,gBAAgB,CAAC,EACxD,CAAC,IAAyB,EAAE,EAAE;YAC5B,IAAI,GAAG,IAAA,6BAAqB,EAAC,IAAI,CAAC,CAAC;YAEnC,IAAI,CAAC,cAAc,GAAG;gBACpB,GAAG,IAAI,CAAC,cAAc;gBACtB,QAAQ;gBACR,QAAQ;gBACR,cAAc;aACf,CAAC;YAEF,OAAO,IAAI,CAAC;QACd,CAAC,CACF,CAAC;QAEF,IAAI,CAAC,OAAO,CAAC,eAAe,EAAE;YAC5B,MAAM,WAAW,GAAG,MAAM,IAAA,qCAA4B,EACpD,IAAI,EACJ,+BAAuB,CAAC,YAAY,EACpC,+BAAuB,CAAC,eAAe,CACxC,CAAC;YACF,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AA5CD,gCA4CC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4M7.835 4.697a3.42 3.42 0 001.946-.806 3.42 3.42 0 014.438 0 3.42 3.42 0 001.946.806 3.42 3.42 0 013.138 3.138 3.42 3.42 0 00.806 1.946 3.42 3.42 0 010 4.438 3.42 3.42 0 00-.806 1.946 3.42 3.42 0 01-3.138 3.138 3.42 3.42 0 00-1.946.806 3.42 3.42 0 01-4.438 0 3.42 3.42 0 00-1.946-.806 3.42 3.42 0 01-3.138-3.138 3.42 3.42 0 00-.806-1.946 3.42 3.42 0 010-4.438 3.42 3.42 0 00.806-1.946 3.42 3.42 0 013.138-3.138z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5l7 7-7 7"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 14l9-5-9-5-9 5 9 5z"></path><path d="M12 14l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 14l9-5-9-5-9 5 9 5zm0 0l6.16-3.422a12.083 12.083 0 01.665 6.479A11.952 11.952 0 0012 20.055a11.952 11.952 0 00-6.824-2.998 12.078 12.078 0 01.665-6.479L12 14zm-4 6v-7.5l4-2.222"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="currentColor" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M12 .297c-6.63 0-12 5.373-12 12 0 5.303 3.438 9.8 8.205 11.385.6.113.82-.258.82-.577 0-.285-.01-1.04-.015-2.04-3.338.724-4.042-1.61-4.042-1.61C4.422 18.07 3.633 17.7 3.633 17.7c-1.087-.744.084-.729.084-.729 1.205.084 1.838 1.236 1.838 1.236 1.07 1.835 2.809 1.305 3.495.998.108-.776.417-1.305.76-1.605-2.665-.3-5.466-1.332-5.466-5.93 0-1.31.465-2.38 1.235-3.22-.135-.303-.54-1.523.105-3.176 0 0 1.005-.322 3.3 1.23.96-.267 1.98-.399 3-.405 1.02.006 2.04.138 3 .405 2.28-1.552 3.285-1.23 3.285-1.23.645 1.653.24 2.873.12 3.176.765.84 1.23 1.91 1.23 3.22 0 4.61-2.805 5.625-5.475 5.92.42.36.81 1.096.81 2.22 0 1.606-.015 2.896-.015 3.286 0 .315.21.69.825.57C20.565 22.092 24 17.592 24 12.297c0-6.627-5.373-12-12-12"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="currentColor" stroke="none" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z"></path></svg>
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg viewBox="0 0 120 120" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M120 15V30C103.44 30 90 43.44 90 60C90 76.56 76.56 90 60 90C43.44 90 30 103.44 30 120H15C6.72 120 0 113.28 0 105V15C0 6.72 6.72 0 15 0H105C113.28 0 120 6.72 120 15Z" fill="#0E2039"></path><path d="M120 30V105C120 113.28 113.28 120 105 120H30C30 103.44 43.44 90 60 90C76.56 90 90 76.56 90 60C90 43.44 103.44 30 120 30Z" fill="white"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg fill="currentColor" role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Visual Studio Code</title><path d="M23.15 2.587L18.21.21a1.494 1.494 0 0 0-1.705.29l-9.46 8.63-4.12-3.128a.999.999 0 0 0-1.276.057L.327 7.261A1 1 0 0 0 .326 8.74L3.899 12 .326 15.26a1 1 0 0 0 .001 1.479L1.65 17.94a.999.999 0 0 0 1.276.057l4.12-3.128 9.46 8.63a1.492 1.492 0 0 0 1.704.29l4.942-2.377A1.5 1.5 0 0 0 24 20.06V3.939a1.5 1.5 0 0 0-.85-1.352zm-5.146 14.861L10.826 12l7.178-5.448v10.896z"></path></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg role="img" viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><title>YouTube</title><path d="M23.498 6.186a3.016 3.016 0 0 0-2.122-2.136C19.505 3.545 12 3.545 12 3.545s-7.505 0-9.377.505A3.017 3.017 0 0 0 .502 6.186C0 8.07 0 12 0 12s0 3.93.502 5.814a3.016 3.016 0 0 0 2.122 2.136c1.871.505 9.376.505 9.376.505s7.505 0 9.377-.505a3.015 3.015 0 0 0 2.122-2.136C24 15.93 24 12 24 12s0-3.93-.502-5.814zM9.545 15.568V8.432L15.818 12l-6.273 3.568z"></path></svg>
|