@nrwl/expo 14.5.1 → 14.7.6-beta.6

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/.eslintrc.json CHANGED
@@ -1,7 +1,19 @@
1
1
  {
2
2
  "extends": "../../.eslintrc",
3
- "rules": {
4
- "@typescript-eslint/no-empty-function": "off"
5
- },
6
- "ignorePatterns": ["!**/*"]
3
+ "rules": {},
4
+ "ignorePatterns": ["!**/*"],
5
+ "overrides": [
6
+ {
7
+ "files": [
8
+ "./package.json",
9
+ "./generators.json",
10
+ "./executors.json",
11
+ "./migrations.json"
12
+ ],
13
+ "parser": "jsonc-eslint-parser",
14
+ "rules": {
15
+ "@nrwl/nx/nx-plugin-checks": "error"
16
+ }
17
+ }
18
+ ]
7
19
  }
package/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # Change Log
2
+
3
+ All notable changes to this project will be documented in this file.
4
+ See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
+
6
+ ## [14.7.6-beta.6](https://github.com/nrwl/nx/compare/14.7.5...14.7.6-beta.6) (2022-09-17)
7
+
8
+ **Note:** Version bump only for package @nrwl/expo
package/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2017-2022 Narwhal Technologies Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ 'Software'), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
21
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
22
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-react.png" width="600" alt="Nx - Smart, Extensible Build Framework"></p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
2
2
 
3
3
  <div style="text-align: center;">
4
4
 
@@ -15,41 +15,11 @@
15
15
 
16
16
  <hr>
17
17
 
18
- # Expo Plugin for Nx
18
+ # Nx: Smart, Fast and Extensible Build System
19
19
 
20
- ## What is Nx?
21
-
22
- 🔎 **Smart, Fast and Extensible Build System**
23
-
24
- Nx is a smart, fast and extensible build system. It comes with first class monorepo support and powerful integrations.
25
-
26
- ### Best-in-Class Support for Monorepos
27
-
28
- <strong>Nx</strong> provides distributed graph-based task execution and computation caching.
29
-
30
- <strong>Nx</strong> is smart. It analyzes your workspace and figures out what can be affected by every code change.
31
- That's why Nx doesn't rebuild and retest everything on every commit--<strong>it only rebuilds what is necessary</strong>
32
- .
33
-
34
- <strong>Nx</strong> partitions commands into a graph of smaller tasks. Nx then runs those tasks in parallel,
35
- and <strong>it can even distribute them across multiple machines without any configuration</strong>.
36
-
37
- <strong>Nx also uses a distributed computation cache.</strong> If someone has already built or tested similar code, Nx
38
- will use their results to speed up the command for everyone else.
39
-
40
- ### Holistic Dev Experience Powered by an Advanced CLI and Editor Plugins
41
-
42
- <strong>Nx</strong> helps scale your development from one team building one application to many teams building multiple
43
- frontend and backend applications all in the same workspace. <strong >When using Nx, developers have a holistic dev
44
- experience powered by an advanced CLI</strong > (with editor plugins), capabilities for controlled code sharing and
45
- consistent code generation.
46
-
47
- ### Rich Plugin Ecosystem
48
-
49
- <strong>Nx</strong> is an open platform with plugins for many modern tools and frameworks. It has support for
50
- TypeScript, React, Angular, Cypress, Jest, Prettier, Nest.js, Next.js, Storybook, Ionic among others. With Nx, you get a
51
- consistent dev experience regardless of the tools used.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
52
21
 
22
+ This package is a [Expo plugin for Nx](https://nx.dev/expo/overview).
53
23
 
54
24
  ## Getting Started
55
25
 
@@ -77,111 +47,38 @@ The `create-nx-workspace` command will ask you to select a preset, which will co
77
47
 
78
48
  ```
79
49
  ? What to create in the new workspace (Use arrow keys)
80
- empty [an empty workspace with a layout that works best for building apps]
81
- npm [an empty workspace set up to publish npm packages (similar to and compatible with yarn workspaces)]
50
+ apps [an empty workspace with no plugins with a layout that works best for building apps]
51
+ core [an empty workspace with no plugins set up to publish npm packages (similar to yarn workspaces)]
52
+ ts [an empty workspace with the JS/TS plugin preinstalled]
82
53
  react [a workspace with a single React application]
83
54
  angular [a workspace with a single Angular application]
84
55
  next.js [a workspace with a single Next.js application]
85
- gatsby [a workspace with a single Gatsby application]
86
56
  nest [a workspace with a single Nest application]
87
57
  express [a workspace with a single Express application]
88
58
  web components [a workspace with a single app built using web components]
59
+ react-native [a workspace with a single React Native application]
89
60
  react-express [a workspace with a full stack application (React + Express)]
90
- angular-nest [a workspace with a full stack application (Angular + Nest)]
91
- ```
92
-
93
- Select the preset that works best for you.
94
-
95
-
96
61
  ```
97
- ? Workspace name (e.g., org name) happyorg
98
- ? What to create in the new workspace expo [a workspace with a single expo application]
99
- ? Application name myapp
100
- ```
101
-
102
- If it's your first Nx project, the command will recommend you to install the `nx` package globally, so you can invoke `nx` directly without going through yarn or npm.
103
-
104
- ### Serving Application
105
62
 
106
- - Run `nx start myapp` to start a local dev server for the app.
107
- - Run `nx run myapp --platform=ios` to run the iOS app binary locally.
108
- - Run `nx run myapp --platform=android` to run the Android app binary locally.
109
- - Run `nx test myapp` to test it.
110
- - Run `nx test-ios myapp-e2e` to run e2e tests for it on iOS.
111
- - Run `nx test-android myapp-e2e` to run e2e tests for it on Android.
112
- - Run `nx ensure-symlink myapp` to ensure workspace node_modules is symlink under app's node_modules folder.
113
- - Run `nx sync-deps myapp` to update package.json with project dependencies. For example: `nx sync-deps myapp --include=react-native-gesture-handler,react-native-safe-area-context`
114
- - Run `nx build-ios myapp` to build and sign a standalone IPA for the Apple App Store.
115
- - Run `nx build-android myapp` to build and sign a standalone APK or App Bundle for the Google Play Store.
116
- - Run `nx build-status myapp` to get the status of the latest build for the project.
63
+ Select the preset that works best for you
117
64
 
118
- ### Adding Expo Plugin Into an Existing Workspace
65
+ ### Adding Nx to an Existing Monorepo
119
66
 
120
- You can always add the Expo plugin to an existing workspace by installing `@nrwl/expo` and then generating an Expo application, as follows: `nx g @nrwl/expo:app myapp`.
67
+ Run:
121
68
 
122
- ## Quick Start Videos
123
-
124
- <a href="https://www.youtube.com/watch?v=E188J7E_MDU" target="_blank">
125
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-react-video.png" width="350" alt="Nx - Quick start video"></p>
126
- </a>
69
+ ```bash
70
+ npx add-nx-to-monorepo@latest
71
+ ```
127
72
 
128
73
  ## Documentation & Resources
129
74
 
130
- Even though Nx isn't technology specific, we provide 3 separate flavours of the documentation site to it make it easier for you to get up and running. For every link below, you will be able to select whether you want your examples to be written in React, Node or Angular.
131
-
132
- - [Nx Documentation and Guides](https://nx.dev)
133
- - [Intro into Nx](https://nx.dev/getting-started/intro)
134
- - [Interactive Tutorial with Videos](https://nx.dev/tutorial/01-create-application)
135
-
136
- ### Quick Start Videos
137
-
138
- - [Scale Your React Development with Nx](https://www.youtube.com/watch?v=sNz-4PUM0k8)
139
- - [Scale your Node Development with Nx](https://www.youtube.com/watch?v=iIh5h_G52kI)
140
- - [Modern Angular with Nx Dev Tools](https://www.youtube.com/watch?v=cXOkmOy-8dk)
141
-
142
- ### Courses
143
-
144
- <table>
145
- <tr>
146
- <td><strong>Scale React Development with Nx</strong></td>
147
- <td><strong>Nx Workspaces</strong></td>
148
- <td><strong>Advanced Nx Workspaces</strong></td>
149
- </tr>
150
- <tr>
151
- <td>
152
- <a href="https://egghead.io/playlists/scale-react-development-with-nx-4038" target="_blank">
153
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/EGH_ScalingReactNx.png" height="150px" alt="Nx - Scale React Development with Nx video course"></p>
154
- </a>
155
- </td>
156
- <td>
157
- <a href="https://www.youtube.com/watch?v=2mYLe9Kp9VM&list=PLakNactNC1dH38AfqmwabvOszDmKriGco" target="_blank">
158
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-workspace-course.png" width="350" alt="Nx Workspaces video course"></p>
159
- </a>
160
- </td>
161
- <td>
162
- <a href="https://nxplaybook.com/p/advanced-nx-workspaces" target="_blank">
163
- <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/advanced-nx-workspace-course.png" width="350" alt="Nx Advanced Workspaces video course"></p>
164
- </a>
165
- </td>
166
- </tr>
167
- </table>
168
-
169
- ### Videos, Blogs, Books, Examples
170
-
171
- - [Nx Dev Tools for Monorepos, In-Depth Explainer (React)](https://www.youtube.com/watch?v=jCf92IyR-GE)
172
-
173
- - [Nx Dev Tools for Monorepos, In-Depth Explainer (Angular)](https://youtu.be/h5FIGDn5YM0)
174
-
175
- - [Youtube Channel with Nx-Related Videos](https://www.youtube.com/playlist?list=PLakNactNC1dHHWx4JIORwfnEajRv6FG5m)
75
+ A few links to help you get started:
176
76
 
77
+ - [Nx.Dev: Documentation, Guides, Interactive Tutorials](https://nx.dev)
78
+ - [Tutorial: Adding Nx to an Existing Monorepo](https://nx.dev/migration/adding-to-monorepo)
79
+ - [Official Nx YouTube Channel](https://www.youtube.com/c/Nrwl_io)
177
80
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
178
81
 
179
- - [Angular Enterprise Monorepo Patterns Book (free)](https://go.nrwl.io/angular-enterprise-monorepo-patterns-new-book?utm_campaign=Book%3A%20Monorepo%20Patterns%2C%20Jan%202019&utm_source=Github&utm_medium=Banner%20Ad)
180
-
181
- - [Nx Examples Repo](https://github.com/nrwl/nx-examples)
182
-
183
- # Engage with the Core Team and the Community
184
-
185
- - [The Nx Show Playlist on YouTube](https://www.youtube.com/playlist?list=PLakNactNC1dE8KLQ5zd3fQwu_yQHjTmR5). It's a regular YouTube stream where we talk all things Nx. Join the stream, ask questions, etc.
186
- - [Follow Nx on Twitter](https://twitter.com/NxDevTools)
82
+ <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
83
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
187
84
 
package/generators.json CHANGED
@@ -56,11 +56,6 @@
56
56
  "schema": "./src/generators/component/schema.json",
57
57
  "description": "Create a component",
58
58
  "aliases": ["c"]
59
- },
60
- "preset": {
61
- "factory": "./src/generators/preset/preset",
62
- "schema": "./src/generators/preset/schema.json",
63
- "description": "Create Expo preset"
64
59
  }
65
60
  }
66
61
  }
package/migrations.json CHANGED
@@ -344,6 +344,72 @@
344
344
  "alwaysAddToPackageJson": false
345
345
  }
346
346
  }
347
+ },
348
+ "14.5.2": {
349
+ "version": "14.5.2-beta.0",
350
+ "packages": {
351
+ "expo": {
352
+ "version": "46.0.9",
353
+ "alwaysAddToPackageJson": false
354
+ },
355
+ "expo-cli": {
356
+ "version": "6.0.5",
357
+ "alwaysAddToPackageJson": false
358
+ },
359
+ "eas-cli": {
360
+ "version": "1.1.1",
361
+ "alwaysAddToPackageJson": false
362
+ },
363
+ "react-native": {
364
+ "version": "0.69.4",
365
+ "alwaysAddToPackageJson": false
366
+ },
367
+ "react-native-svg": {
368
+ "version": "13.0.0",
369
+ "alwaysAddToPackageJson": false
370
+ },
371
+ "metro-resolver": {
372
+ "version": "0.72.1",
373
+ "alwaysAddToPackageJson": false
374
+ },
375
+ "@testing-library/jest-native": {
376
+ "version": "4.0.11",
377
+ "alwaysAddToPackageJson": false
378
+ },
379
+ "@expo/metro-config": {
380
+ "version": "0.3.22",
381
+ "alwaysAddToPackageJson": false
382
+ }
383
+ }
384
+ },
385
+ "14.5.3": {
386
+ "version": "14.5.3-beta.0",
387
+ "packages": {
388
+ "expo": {
389
+ "version": "46.0.10",
390
+ "alwaysAddToPackageJson": false
391
+ },
392
+ "eas-cli": {
393
+ "version": "2.1.0",
394
+ "alwaysAddToPackageJson": false
395
+ },
396
+ "react-native": {
397
+ "version": "0.69.5",
398
+ "alwaysAddToPackageJson": false
399
+ },
400
+ "@types/react-native": {
401
+ "version": "0.69.8",
402
+ "alwaysAddToPackageJson": false
403
+ },
404
+ "react-native-svg": {
405
+ "version": "13.1.0",
406
+ "alwaysAddToPackageJson": false
407
+ },
408
+ "metro": {
409
+ "version": "0.72.2",
410
+ "alwaysAddToPackageJson": false
411
+ }
412
+ }
347
413
  }
348
414
  }
349
415
  }
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "@nrwl/expo",
3
- "version": "14.5.1",
3
+ "version": "14.7.6-beta.6",
4
+ "private": false,
4
5
  "description": "Expo Plugin for Nx",
5
6
  "keywords": [
6
7
  "Monorepo",
@@ -25,23 +26,25 @@
25
26
  "main": "index.js",
26
27
  "types": "index.d.ts",
27
28
  "dependencies": {
28
- "@nrwl/detox": "*",
29
- "@nrwl/devkit": "*",
30
- "@nrwl/jest": "*",
31
- "@nrwl/linter": "*",
32
- "@nrwl/react": "*",
33
- "@nrwl/workspace": "*",
34
- "chalk": "4.1.0",
29
+ "@nrwl/detox": "14.7.6-beta.6",
30
+ "@nrwl/devkit": "14.7.6-beta.6",
31
+ "@nrwl/jest": "14.7.6-beta.6",
32
+ "@nrwl/linter": "14.7.6-beta.6",
33
+ "@nrwl/react": "14.7.6-beta.6",
34
+ "@nrwl/web": "14.7.6-beta.6",
35
+ "@nrwl/workspace": "14.7.6-beta.6",
36
+ "@svgr/webpack": "^6.1.2",
37
+ "chalk": "^4.1.0",
35
38
  "enhanced-resolve": "^5.8.3",
36
- "eas-cli": "^0.57.0",
37
- "expo-cli": "^6.0.1",
38
- "metro-resolver": "^0.72.0",
39
+ "fs-extra": "^10.1.0",
40
+ "metro-resolver": "^0.72.2",
41
+ "node-fetch": "^2.6.7",
39
42
  "tar-fs": "^2.1.1",
40
43
  "tsconfig-paths": "^3.9.0",
41
44
  "tsconfig-paths-webpack-plugin": "^3.5.2"
42
45
  },
43
46
  "peerDependencies": {
44
- "expo": "^46.0.2"
47
+ "expo": "^46.0.10"
45
48
  },
46
49
  "builders": "./executors.json",
47
50
  "ng-update": {
@@ -49,5 +52,9 @@
49
52
  "migrations": "./migrations.json"
50
53
  },
51
54
  "schematics": "./generators.json",
52
- "typings": "./index.d.ts"
53
- }
55
+ "publishConfig": {
56
+ "access": "public"
57
+ },
58
+ "typings": "./index.d.ts",
59
+ "gitHead": "08e7588d153cb8e8711a2998be7b665d2fa3940d"
60
+ }
package/project.json CHANGED
@@ -27,7 +27,7 @@
27
27
  "build-base": {
28
28
  "executor": "@nrwl/js:tsc",
29
29
  "options": {
30
- "outputPath": "dist/packages/expo",
30
+ "outputPath": "build/packages/expo",
31
31
  "tsConfig": "packages/expo/tsconfig.lib.json",
32
32
  "packageJson": "packages/expo/package.json",
33
33
  "main": "packages/expo/index.ts",
@@ -71,16 +71,10 @@
71
71
  "outputs": ["{options.outputPath}"]
72
72
  },
73
73
  "build": {
74
- "dependsOn": [
75
- {
76
- "target": "build-base",
77
- "projects": "self"
78
- }
79
- ],
80
- "executor": "@nrwl/workspace:run-commands",
81
- "outputs": ["dist/packages/expo"],
74
+ "executor": "nx:run-commands",
75
+ "outputs": ["build/packages/expo"],
82
76
  "options": {
83
- "command": "node ./tools/scripts/copy-readme.js expo"
77
+ "command": "node ./scripts/copy-readme.js expo"
84
78
  }
85
79
  },
86
80
  "publish": {
@@ -26,12 +26,12 @@ function createBuildListOptions(options) {
26
26
  if (!nxOptions.includes(k)) {
27
27
  if (typeof v === 'boolean') {
28
28
  if (v === true) {
29
- // when true, does not need to pass the value true, just need to pass the flag in kebob case
30
- acc.push(`--${(0, devkit_1.names)(k).fileName}`);
29
+ // when true, does not need to pass the value true, just need to pass the flag in camel case
30
+ acc.push(`--${(0, devkit_1.names)(k).propertyName}`);
31
31
  }
32
32
  }
33
33
  else {
34
- acc.push(`--${(0, devkit_1.names)(k).fileName}`, v);
34
+ acc.push(`--${(0, devkit_1.names)(k).propertyName}`, v);
35
35
  }
36
36
  }
37
37
  return acc;
@@ -1 +1 @@
1
- {"version":3,"file":"build-list.impl.js","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/build-list/build-list.impl.ts"],"names":[],"mappings":";;;;AAAA,yCAA8D;AAC9D,+BAA4B;AAC5B,iDAAyC;AAEzC,yFAAmF;AAQnF,SAA+B,iBAAiB,CAC9C,OAAgC,EAChC,OAAwB;;QAExB,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QACzE,IAAA,sDAAwB,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAEpD,eAAM,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;QACjE,4BAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAA,CAAC;IAC1B,CAAC;CAAA;AATD,oCASC;AAED,SAAgB,eAAe,CAC7B,aAAqB,EACrB,WAAmB,EACnB,OAAgC;IAEhC,OAAO,IAAA,wBAAQ,EACb,6CAA6C,sBAAsB,CACjE,OAAO,CACR,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EACb,EAAE,GAAG,EAAE,IAAA,WAAI,EAAC,aAAa,EAAE,WAAW,CAAC,EAAE,CAC1C,CAAC,QAAQ,EAAE,CAAC;AACf,CAAC;AAXD,0CAWC;AAED,MAAM,SAAS,GAAG,CAAC,QAAQ,CAAC,CAAC;AAC7B,SAAS,sBAAsB,CAAC,OAAgC;IAC9D,OAAO,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE;QAC5C,MAAM,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC,CAAC;QACrB,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;YAC1B,IAAI,OAAO,CAAC,KAAK,SAAS,EAAE;gBAC1B,IAAI,CAAC,KAAK,IAAI,EAAE;oBACd,4FAA4F;oBAC5F,GAAG,CAAC,IAAI,CAAC,KAAK,IAAA,cAAK,EAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,CAAC,CAAC;iBACpC;aACF;iBAAM;gBACL,GAAG,CAAC,IAAI,CAAC,KAAK,IAAA,cAAK,EAAC,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC,CAAC;aACvC;SACF;QACD,OAAO,GAAG,CAAC;IACb,CAAC,EAAE,EAAE,CAAC,CAAC;AACT,CAAC"}
1
+ {"version":3,"file":"build-list.impl.js","sourceRoot":"","sources":["../../../../../../packages/expo/src/executors/build-list/build-list.impl.ts"],"names":[],"mappings":";;;;AAAA,yCAA8D;AAC9D,+BAA4B;AAC5B,iDAAyC;AAEzC,yFAAmF;AAQnF,SAA+B,iBAAiB,CAC9C,OAAgC,EAChC,OAAwB;;QAExB,MAAM,WAAW,GAAG,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC;QACzE,IAAA,sDAAwB,EAAC,OAAO,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;QAEpD,eAAM,CAAC,I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- presets: ['babel-preset-expo'],
5
- plugins: ['react-native-reanimated/plugin'],
4
+ presets: ['babel-preset-expo']
6
5
  };
7
6
  };
@@ -7,15 +7,6 @@
7
7
  "@testing-library/react-native": "*",
8
8
  "react-native": "*",
9
9
  "expo": "*",
10
- "expo-dev-client": "*",
11
- "expo-status-bar": "*",
12
- "expo-splash-screen": "*",
13
- "expo-structured-headers": "*",
14
- "expo-updates": "*",
15
- "react-native-gesture-handler": "*",
16
- "react-native-reanimated": "*",
17
- "react-native-safe-area-context": "*",
18
- "react-native-screens": "*",
19
10
  "react-native-svg": "*",
20
11
  "react-native-web": "*"
21
12
  },
@@ -3,14 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.addProject = void 0;
4
4
  const devkit_1 = require("@nrwl/devkit");
5
5
  function addProject(host, options) {
6
- const project = {
6
+ const projectConfiguration = {
7
7
  root: options.appProjectRoot,
8
8
  sourceRoot: `${options.appProjectRoot}/src`,
9
9
  projectType: 'application',
10
10
  targets: Object.assign({}, getTargets(options)),
11
11
  tags: options.parsedTags,
12
12
  };
13
- (0, devkit_1.addProjectConfiguration)(host, options.projectName, Object.assign({}, project));
13
+ (0, devkit_1.addProjectConfiguration)(host, options.projectName, projectConfiguration, options.standaloneConfig);
14
14
  const workspace = (0, devkit_1.readWorkspaceConfiguration)(host);
15
15
  if (!workspace.defaultProject) {
16
16
  workspace.defaultProject = options.projectName;
@@ -1 +1 @@
1
- {"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,yCAOsB;AAGtB,SAAgB,UAAU,CAAC,IAAU,EAAE,OAAyB;IAC9D,MAAM,OAAO,GAAyB;QACpC,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,UAAU,EAAE,GAAG,OAAO,CAAC,cAAc,MAAM;QAC3C,WAAW,EAAE,aAAa;QAC1B,OAAO,oBAAO,UAAU,CAAC,OAAO,CAAC,CAAE;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,CAAC;AACnB,CAAC"}
1
+ {"version":3,"file":"add-project.js","sourceRoot":"","sources":["../../../../../../../packages/expo/src/generators/application/lib/add-project.ts"],"names":[],"mappings":";;;AAAA,yCAOsB;AAGtB,SAAgB,UAAU,CAAC,IAAU,EAAE,OAAyB;IAC9D,MAAM,oBAAoB,GAAyB;QACjD,IAAI,EAAE,OAAO,CAAC,cAAc;QAC5B,UAAU,EAAE,GAAG,OAAO,CAAC,cAAc,MAAM;QAC3C,WAAW,EAAE,aAAa;QAC1B,OAAO,oBAAO,UAAU,CAAC,OAAO,CAAC,CAAE;QACnC,IAAI,EAAE,OAAO,CAAC,UAAU;KACzB,CAAC;IAEF,IAAA,gCAAuB,EACrB,IAAI,EACJ,OAAO,CAAC,WAAW,EACnB,oBAAoB,EACpB,OAAO,CAAC,gBAAgB,CACzB,CAAC;IAEF,MAAM,SAAS,GAAG,IAAA,mCAA0B,EAAC,IAAI,CAAC,CAAC;IAEnD,IAAI,CAAC,SAAS,CAAC,cAAc,EAAE;QAC7B,SAAS,CAAC,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC;QAE/C,IAAA,qCAA4B,EAAC,IAAI,EAAE,SAAS,CAAC,CAAC;KAC/C;AACH,CAAC;AAvBD,gCAuBC;AAED,SAAS,UAAU,CAAC,OAAyB;IAC3C,MAAM,SAAS,GAA2C,EAAE,CAAC;IAE7D,SAAS,CAAC,KAAK,GAAG;QAChB,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE;YACP,IAAI,EAAE,IAAI;SACX;KACF,CAAC;IAEF,SAAS,CAAC,GAAG,GAAG;QACd,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE;YACP,IAAI,EAAE,IAAI;YACV,OAAO,EAAE,IAAI;SACd;KACF,CAAC;IAEF,SAAS,CAAC,KAAK,GAAG;QAChB,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE;YACP,OAAO,EAAE,YAAY,OAAO,CAAC,IAAI,EAAE;SACpC;KACF,C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AC,GAAG;QACrB,QAAQ,EAAE,oBAAoB;QAC9B,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,SAAS,CAAC,aAAa,CAAC,GAAG;QACzB,QAAQ,EAAE,wBAAwB;QAClC,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,SAAS,CAAC,UAAU,CAAC,GAAG;QACtB,QAAQ,EAAE,qBAAqB;QAC/B,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,SAAS,CAAC,OAAO,CAAC,GAAG;QACnB,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,OAAO,SAAS,CAAC;AACnB,CAAC"}
@@ -14,4 +14,5 @@ export interface Schema {
14
14
  linter: Linter; // default is eslint
15
15
  setParserOptionsProject?: boolean; // default is false
16
16
  e2eTestRunner: 'detox' | 'none'; // default is detox
17
+ standaloneConfig?: boolean;
17
18
  }
@@ -70,6 +70,10 @@
70
70
  "type": "string",
71
71
  "enum": ["detox", "none"],
72
72
  "default": "detox"
73
+ },
74
+ "standaloneConfig": {
75
+ "description": "Split the project configuration into `<projectRoot>/project.json` rather than including it inside `workspace.json`.",
76
+ "type": "boolean"
73
77
  }
74
78
  },
75
79
  "required": ["name"]
@@ -36,17 +36,8 @@ function updateDependencies(host) {
36
36
  'react-dom': versions_2.reactDomVersion,
37
37
  'react-native': versions_1.reactNativeVersion,
38
38
  expo: versions_1.expoVersion,
39
- 'expo-dev-client': versions_1.expoDevClientVersion,
40
- 'expo-status-bar': versions_1.expoStatusBarVersion,
41
39
  'react-native-web': versions_1.reactNativeWebVersion,
42
40
  '@expo/metro-config': versions_1.expoMetroConfigVersion,
43
- 'expo-structured-headers': versions_1.expoStructuredHeadersVersion,
44
- 'expo-splash-screen': versions_1.expoSplashScreenVersion,
45
- 'expo-updates': versions_1.expoUpdatesVersion,
46
- 'react-native-gesture-handler': versions_1.reactNativeGestureHandlerVersion,
47
- 'react-native-reanimated': versions_1.reactNativeReanimatedVersion,
48
- 'react-native-safe-area-context': versions_1.reactNativeSafeAreaContextVersion,
49
- 'react-native-screens': versions_1.reactNativeScreensVersion,
50
41
  'react-native-svg-transformer': versions_1.reactNativeSvgTransformerVersion,
51
42
  'react-native-svg': versions_1.reactNativeSvgVersion,
52
43
  }, {
@@ -54,7 +45,6 @@ function updateDependencies(host) {
54
45
  '@types/react': versions_2.typesReactVersion,
55
46
  '@types/react-native': versions_1.typesReactNativeVersion,
56
47
  'metro-resolver': versions_1.metroVersion,
57
- 'metro-babel-register': versions_1.metroVersion,
58
48
  'react-test-renderer': versions_2.reactTestRendererVersion,
59
49
  '@testing-library/react-native': versions_1.testingLibraryReactNativeVersion,
60
50
  '@testing-library/jest-native': versions_1.testingLibraryJestNativeVersion,
@@ -1 +1 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../../../packages/expo/src/generators/init/init.ts"],"names":[],"mappings":";;;;AAAA,yCAMsB;AAEtB,mDA0B8B;AAE9B,6DAKwC;AACxC,2FAAqF;AACrF,qCAA+C;AAC/C,uCAAiD;AAEjD,qEAA+D;AAC/D,yEAAmE;AAEnE,SAAsB,iBAAiB,CAAC,IAAU,EAAE,MAAc;;QAChE,IAAA,wCAAiB,EAAC,IAAI,CAAC,CAAC;QACxB,IAAA,4CAAmB,EAAC,IAAI,CAAC,CAAC;QAE1B,MAAM,KAAK,GAAG,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,kBAAkB,CAAC,IAAI,CAAC,CAAC,CAAC;QAE/D,IAAI,CAAC,MAAM,CAAC,cAAc,IAAI,MAAM,CAAC,cAAc,KAAK,MAAM,EAAE;YAC9D,MAAM,QAAQ,GAAG,IAAA,wBAAiB,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC7C,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;SACtB;QAED,IAAI,CAAC,MAAM,CAAC,aAAa,IAAI,MAAM,CAAC,aAAa,KAAK,OAAO,EAAE;YAC7D,MAAM,SAAS,GA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MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;SACzB;QAED,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AArBD,8CAqBC;AAED,SAAgB,kBAAkB,CAAC,IAAU;IAC3C,OAAO,IAAA,qCAA4B,EACjC,IAAI,EACJ;QACE,KAAK,EAAE,uBAAY;QACnB,WAAW,EAAE,0BAAe;QAC5B,cAAc,EAAE,6BAAkB;QAClC,IAAI,EAAE,sBAAW;QACjB,kBAAkB,EAAE,gCAAqB;QACzC,oBAAoB,EAAE,iCAAsB;QAC5C,8BAA8B,EAAE,2CAAgC;QAChE,kBAAkB,EAAE,gCAAqB;KAC1C,EACD;QACE,YAAY,EAAE,oBAAS;QACvB,cAAc,EAAE,4BAAiB;QACjC,qBAAqB,EAAE,kCAAuB;QAC9C,gBAAgB,EAAE,uBAAY;QAC9B,qBAAqB,EAAE,mCAAwB;QAC/C,+BAA+B,EAAE,2CAAgC;QACjE,8BAA8B,EAAE,0CAA+B;QAC/D,WAAW,EAAE,0BAAe;QAC5B,UAAU,EAAE,yBAAc;QAC1B,SAAS,EAAE,wBAAa;QACxB,eAAe,EAAE,6BAAkB;QACnC,mBAAmB,EAAE,iCAAsB;KAC5C,CACF,CAAC;AACJ,CAAC;AA5BD,gDA4BC;AAED,SAAS,cAAc,CAAC,IAAU;IAChC,OAAO,IAAA,0CAAiC,EAAC,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,EAAE,CAAC,CAAC;AAC7E,CAAC;AAED,kBAAe,iBAAiB,CAAC;AACpB,QAAA,wBAAwB,GAAG,IAAA,2BAAkB,EAAC,iBAAiB,CAAC,CAAC"}
@@ -28,12 +28,6 @@ function addJest(host, unitTestRunner, projectName, appProjectRoot, js) {
28
28
  setupFilesAfterEnv: ['<rootDir>/test-setup.${js ? 'js' : 'ts'}'],
29
29
  moduleNameMapper: {
30
30
  '\\.svg': '@nrwl/expo/plugins/jest/svg-mock'
31
- },
32
- transform: {
33
- '\\\\.(js|ts|tsx)$': require.resolve('react-native/jest/preprocessor.js'),
34
- '^.+\\\\.(bmp|gif|jpg|jpeg|mp4|png|psd|svg|webp|ttf)$': require.resolve(
35
- 'react-native/jest/assetFileTransformer.js',
36
- ),
37
31
  }
38
32
  };`;
39
33
  host.write(configPath, content);
@@ -1 +1 @@
1
- {"version":3,"file":"add-jest.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/add-jest.ts"],"names":[],"mappings":";;;;AACA,qCAAkD;AAElD,SAAsB,OAAO,CAC3B,IAAU,EACV,cAA+B,EAC/B,WAAmB,EACnB,cAAsB,EACtB,EAAW;;QAEX,IAAI,cAAc,KAAK,MAAM,EAAE;YAC7B,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QAED,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAoB,EAAC,IAAI,EAAE;YAChD,OAAO,EAAE,WAAW;YACpB,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,kGAAkG;QAClG,MAAM,UAAU,GAAG,GAAG,cAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACvE,MAAM,OAAO,GAAG;kBACA,WAAW;;;;;;;+CAOkB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;;;;;;;;;;GAU5D,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAEhC,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AA3CD,0BA2CC"}
1
+ {"version":3,"file":"add-jest.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/add-jest.ts"],"names":[],"mappings":";;;;AACA,qCAAkD;AAElD,SAAsB,OAAO,CAC3B,IAAU,EACV,cAA+B,EAC/B,WAAmB,EACnB,cAAsB,EACtB,EAAW;;QAEX,IAAI,cAAc,KAAK,MAAM,EAAE;YAC7B,OAAO,GAAG,EAAE,GAAE,CAAC,CAAC;SACjB;QAED,MAAM,QAAQ,GAAG,MAAM,IAAA,2BAAoB,EAAC,IAAI,EAAE;YAChD,OAAO,EAAE,WAAW;YACpB,UAAU,EAAE,IAAI;YAChB,eAAe,EAAE,IAAI;YACrB,SAAS,EAAE,MAAM;YACjB,SAAS,EAAE,IAAI;SAChB,CAAC,CAAC;QAEH,kGAAkG;QAClG,MAAM,UAAU,GAAG,GAAG,cAAc,gBAAgB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;QACvE,MAAM,OAAO,GAAG;kBACA,WAAW;;;;;;;+CAOkB,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI;;;;GAI5D,CAAC;QACF,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;QAEhC,OAAO,QAAQ,CAAC;IAClB,CAAC;CAAA;AArCD,0BAqCC"}
@@ -1,25 +1,16 @@
1
1
  export declare const nxVersion = "*";
2
- export declare const expoVersion = "46.0.2";
3
- export declare const expoDevClientVersion = "~1.1.1";
4
- export declare const expoStatusBarVersion = "~1.4.0";
5
- export declare const expoMetroConfigVersion = "0.3.21";
6
- export declare const expoStructuredHeadersVersion = "~2.2.1";
7
- export declare const expoSplashScreenVersion = "~0.16.1";
8
- export declare const expoUpdatesVersion = "~0.14.3";
2
+ export declare const expoVersion = "46.0.10";
3
+ export declare const expoMetroConfigVersion = "0.3.22";
9
4
  export declare const jestExpoVersion = "46.0.1";
10
- export declare const expoCliVersion = "6.0.1";
11
- export declare const easCliVersion = "0.57.0";
5
+ export declare const expoCliVersion = "6.0.5";
6
+ export declare const easCliVersion = "2.1.0";
12
7
  export declare const babelPresetExpoVersion = "~9.2.0";
13
- export declare const reactNativeVersion = "0.69.3";
14
- export declare const typesReactNativeVersion = "0.69.5";
8
+ export declare const reactNativeVersion = "0.69.5";
9
+ export declare const typesReactNativeVersion = "0.69.8";
15
10
  export declare const reactNativeWebVersion = "~0.18.7";
16
- export declare const reactNativeGestureHandlerVersion = "~2.5.0";
17
- export declare const reactNativeReanimatedVersion = "~2.9.1";
18
- export declare const reactNativeSafeAreaContextVersion = "4.3.1";
19
- export declare const reactNativeScreensVersion = "~3.15.0";
20
11
  export declare const reactNativeSvgTransformerVersion = "1.0.0";
21
- export declare const reactNativeSvgVersion = "12.4.3";
12
+ export declare const reactNativeSvgVersion = "13.1.0";
22
13
  export declare const svgrWebpackVersion = "^6.3.1";
23
- export declare const metroVersion = "0.72.0";
14
+ export declare const metroVersion = "0.72.2";
24
15
  export declare const testingLibraryReactNativeVersion = "11.0.0";
25
- export declare const testingLibraryJestNativeVersion = "4.0.5";
16
+ export declare const testingLibraryJestNativeVersion = "4.0.11";
@@ -1,29 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.metroVersion = exports.svgrWebpackVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactNativeScreensVersion = exports.reactNativeSafeAreaContextVersion = exports.reactNativeReanimatedVersion = exports.reactNativeGestureHandlerVersion = exports.reactNativeWebVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.babelPresetExpoVersion = exports.easCliVersion = exports.expoCliVersion = exports.jestExpoVersion = exports.expoUpdatesVersion = exports.expoSplashScreenVersion = exports.expoStructuredHeadersVersion = exports.expoMetroConfigVersion = exports.expoStatusBarVersion = exports.expoDevClientVersion = exports.expoVersion = exports.nxVersion = void 0;
3
+ exports.testingLibraryJestNativeVersion = exports.testingLibraryReactNativeVersion = exports.metroVersion = exports.svgrWebpackVersion = exports.reactNativeSvgVersion = exports.reactNativeSvgTransformerVersion = exports.reactNativeWebVersion = exports.typesReactNativeVersion = exports.reactNativeVersion = exports.babelPresetExpoVersion = exports.easCliVersion = exports.expoCliVersion = exports.jestExpoVersion = exports.expoMetroConfigVersion = exports.expoVersion = exports.nxVersion = void 0;
4
4
  exports.nxVersion = '*';
5
- exports.expoVersion = '46.0.2';
6
- exports.expoDevClientVersion = '~1.1.1';
7
- exports.expoStatusBarVersion = '~1.4.0';
8
- exports.expoMetroConfigVersion = '0.3.21';
9
- exports.expoStructuredHeadersVersion = '~2.2.1';
10
- exports.expoSplashScreenVersion = '~0.16.1';
11
- exports.expoUpdatesVersion = '~0.14.3';
5
+ exports.expoVersion = '46.0.10';
6
+ exports.expoMetroConfigVersion = '0.3.22';
12
7
  exports.jestExpoVersion = '46.0.1';
13
- exports.expoCliVersion = '6.0.1';
14
- exports.easCliVersion = '0.57.0';
8
+ exports.expoCliVersion = '6.0.5';
9
+ exports.easCliVersion = '2.1.0';
15
10
  exports.babelPresetExpoVersion = '~9.2.0';
16
- exports.reactNativeVersion = '0.69.3';
17
- exports.typesReactNativeVersion = '0.69.5';
11
+ exports.reactNativeVersion = '0.69.5';
12
+ exports.typesReactNativeVersion = '0.69.8';
18
13
  exports.reactNativeWebVersion = '~0.18.7';
19
- exports.reactNativeGestureHandlerVersion = '~2.5.0';
20
- exports.reactNativeReanimatedVersion = '~2.9.1';
21
- exports.reactNativeSafeAreaContextVersion = '4.3.1';
22
- exports.reactNativeScreensVersion = '~3.15.0';
23
14
  exports.reactNativeSvgTransformerVersion = '1.0.0';
24
- exports.reactNativeSvgVersion = '12.4.3';
15
+ exports.reactNativeSvgVersion = '13.1.0';
25
16
  exports.svgrWebpackVersion = '^6.3.1';
26
- exports.metroVersion = '0.72.0';
17
+ exports.metroVersion = '0.72.2';
27
18
  exports.testingLibraryReactNativeVersion = '11.0.0';
28
- exports.testingLibraryJestNativeVersion = '4.0.5';
19
+ exports.testingLibraryJestNativeVersion = '4.0.11';
29
20
  //# sourceMappingURL=versions.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,GAAG,CAAC;AAEhB,QAAA,WAAW,GAAG,QAAQ,CAAC;AACvB,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAChC,QAAA,oBAAoB,GAAG,QAAQ,CAAC;AAChC,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,4BAA4B,GAAG,QAAQ,CAAC;AACxC,QAAA,uBAAuB,GAAG,SAAS,CAAC;AACpC,QAAA,kBAAkB,GAAG,SAAS,CAAC;AAC/B,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,cAAc,GAAG,OAAO,CAAC;AACzB,QAAA,aAAa,GAAG,QAAQ,CAAC;AACzB,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAElC,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AACnC,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAClC,QAAA,gCAAgC,GAAG,QAAQ,CAAC;AAC5C,QAAA,4BAA4B,GAAG,QAAQ,CAAC;AACxC,QAAA,iCAAiC,GAAG,OAAO,CAAC;AAC5C,QAAA,yBAAyB,GAAG,SAAS,CAAC;AAEtC,QAAA,gCAAgC,GAAG,OAAO,CAAC;AAC3C,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AACjC,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAE9B,QAAA,YAAY,GAAG,QAAQ,CAAC;AAExB,QAAA,gCAAgC,GAAG,QAAQ,CAAC;AAC5C,QAAA,+BAA+B,GAAG,OAAO,CAAC"}
1
+ {"version":3,"file":"versions.js","sourceRoot":"","sources":["../../../../../packages/expo/src/utils/versions.ts"],"names":[],"mappings":";;;AAAa,QAAA,SAAS,GAAG,GAAG,CAAC;AAEhB,QAAA,WAAW,GAAG,SAAS,CAAC;AACxB,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAClC,QAAA,eAAe,GAAG,QAAQ,CAAC;AAC3B,QAAA,cAAc,GAAG,OAAO,CAAC;AACzB,QAAA,aAAa,GAAG,OAAO,CAAC;AACxB,QAAA,sBAAsB,GAAG,QAAQ,CAAC;AAElC,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAC9B,QAAA,uBAAuB,GAAG,QAAQ,CAAC;AACnC,QAAA,qBAAqB,GAAG,SAAS,CAAC;AAElC,QAAA,gCAAgC,GAAG,OAAO,CAAC;AAC3C,QAAA,qBAAqB,GAAG,QAAQ,CAAC;AACjC,QAAA,kBAAkB,GAAG,QAAQ,CAAC;AAE9B,QAAA,YAAY,GAAG,QAAQ,CAAC;AAExB,QAAA,gCAAgC,GAAG,QAAQ,CAAC;AAC5C,QAAA,+BAA+B,GAAG,QAAQ,CAAC"}
@@ -1,19 +1,19 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
3
  "compilerOptions": {
4
- "outDir": "../dist/out-tsc",
4
+ "outDir": "../../dist/out-tsc",
5
5
  "module": "commonjs",
6
6
  "types": ["jest", "node"]
7
7
  },
8
8
  "include": [
9
- "**/*.test.ts",
10
9
  "**/*.spec.ts",
11
- "**/*.test.tsx",
10
+ "**/*.test.ts",
12
11
  "**/*.spec.tsx",
13
- "**/*.test.js",
12
+ "**/*.test.tsx",
14
13
  "**/*.spec.js",
15
- "**/*.test.jsx",
14
+ "**/*.test.js",
16
15
  "**/*.spec.jsx",
16
+ "**/*.test.jsx",
17
17
  "**/*.d.ts",
18
18
  "jest.config.ts"
19
19
  ]
package/.babelrc DELETED
@@ -1,3 +0,0 @@
1
- {
2
- "presets": [["@nrwl/web/babel", { "useBuiltIns": "usage" }]]
3
- }
@@ -1,4 +0,0 @@
1
- import { Tree } from '@nrwl/devkit';
2
- import { PresetGeneratorSchema } from './schema';
3
- export default function expoPresetGenerator(tree: Tree, options: PresetGeneratorSchema): Promise<import("@nrwl/devkit").GeneratorCallback>;
4
- export declare const expoPresetSchematic: (generatorOptions: PresetGeneratorSchema) => (tree: any, context: any) => Promise<any>;
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.expoPresetSchematic = void 0;
4
- const tslib_1 = require("tslib");
5
- const devkit_1 = require("@nrwl/devkit");
6
- const set_default_collection_1 = require("@nrwl/workspace/src/utilities/set-default-collection");
7
- const application_1 = require("../application/application");
8
- function expoPresetGenerator(tree, options) {
9
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
- const appTask = yield (0, application_1.default)(tree, Object.assign(Object.assign({}, options), { name: options.appName || options.name }));
11
- (0, set_default_collection_1.setDefaultCollection)(tree, '@nrwl/expo');
12
- yield (0, devkit_1.formatFiles)(tree);
13
- return appTask;
14
- });
15
- }
16
- exports.default = expoPresetGenerator;
17
- exports.expoPresetSchematic = (0, devkit_1.convertNxGenerator)(expoPresetGenerator);
18
- //# sourceMappingURL=preset.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"preset.js","sourceRoot":"","sources":["../../../../../../packages/expo/src/generators/preset/preset.ts"],"names":[],"mappings":";;;;AAAA,yCAAqE;AACrE,iGAA4F;AAC5F,4DAAkE;AAGlE,SAA8B,mBAAmB,CAC/C,IAAU,EACV,OAA8B;;QAE9B,MAAM,OAAO,GAAG,MAAM,IAAA,qBAAwB,EAAC,IAAI,kCAC9C,OAAO,KACV,IAAI,EAAE,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,IAAI,IACrC,CAAC;QAEH,IAAA,6CAAoB,EAAC,IAAI,EAAE,YAAY,CAAC,CAAC;QAEzC,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,OAAO,CAAC;IACjB,CAAC;CAAA;AAdD,sCAcC;AAEY,QAAA,mBAAmB,GAAG,IAAA,2BAAkB,EAAC,mBAAmB,CAAC,CAAC"}
@@ -1,13 +0,0 @@
1
- import { Linter } from '@nrwl/linter';
2
-
3
- export interface PresetGeneratorSchema {
4
- name: string;
5
- appName: string;
6
- tags?: string;
7
- directory?: string;
8
- js: boolean; // default is false
9
- e2eTestRunner: 'detox' | 'none'; // default is detox
10
- skipFormat: boolean; // default is true
11
- linter: Linter; // default is eslint
12
- unitTestRunner: 'jest' | 'none'; // default is jest
13
- }
@@ -1,62 +0,0 @@
1
- {
2
- "$schema": "http://json-schema.org/schema",
3
- "cli": "nx",
4
- "$id": "Preset",
5
- "title": "Add Nx Expo Preset",
6
- "type": "object",
7
- "properties": {
8
- "name": {
9
- "type": "string",
10
- "description": "workspace name",
11
- "$default": {
12
- "$source": "argv",
13
- "index": 0
14
- },
15
- "x-prompt": "What workspace name would you like to use?"
16
- },
17
- "appName": {
18
- "type": "string",
19
- "description": "app name",
20
- "x-prompt": "What app name would you like to use?"
21
- },
22
- "tags": {
23
- "type": "string",
24
- "description": "Add tags to the project (used for linting)",
25
- "alias": "t"
26
- },
27
- "directory": {
28
- "type": "string",
29
- "description": "A directory where the project is placed",
30
- "alias": "d"
31
- },
32
- "js": {
33
- "type": "boolean",
34
- "description": "Generate JavaScript files rather than TypeScript files",
35
- "default": false
36
- },
37
- "e2eTestRunner": {
38
- "description": "Adds the specified e2e test runner",
39
- "type": "string",
40
- "enum": ["detox", "none"],
41
- "default": "detox"
42
- },
43
- "skipFormat": {
44
- "description": "Skip formatting files",
45
- "type": "boolean",
46
- "default": false
47
- },
48
- "linter": {
49
- "description": "The tool to use for running lint checks.",
50
- "type": "string",
51
- "enum": ["eslint", "tslint"],
52
- "default": "eslint"
53
- },
54
- "unitTestRunner": {
55
- "type": "string",
56
- "enum": ["jest", "none"],
57
- "description": "Test runner to use for unit tests",
58
- "default": "jest"
59
- }
60
- },
61
- "required": []
62
- }