@nstudio/xplat 16.5.7 → 16.5.9
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/README.md +1 -5
- package/package.json +4 -3
- package/src/utils/testing-utils.js +4 -4
- package/src/utils/versions.js +1 -1
- package/src/utils/xplat.js +11 -16
package/README.md
CHANGED
@@ -64,11 +64,7 @@ You are now ready to create apps:
|
|
64
64
|
npx nx g @nstudio/xplat:app
|
65
65
|
```
|
66
66
|
|
67
|
-
**
|
68
|
-
|
69
|
-
```
|
70
|
-
npx create-nx-workspace@16.5.0
|
71
|
-
```
|
67
|
+
**Potential schematics error:** If you encounter a `SchematicNameCollisionException` issue, you can see this gist to apply a patch: https://gist.github.com/NathanWalker/a8554c1e0bba700affeb0c4672d26b0e
|
72
68
|
|
73
69
|
## App generation examples
|
74
70
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nstudio/xplat",
|
3
|
-
"version": "16.5.
|
3
|
+
"version": "16.5.9",
|
4
4
|
"description": "Cross-platform (xplat) tools for Nx workspaces.",
|
5
5
|
"homepage": "https://nstudio.io/xplat",
|
6
6
|
"repository": {
|
@@ -41,10 +41,11 @@
|
|
41
41
|
"postinstall": "node src/utils/postinstall.js"
|
42
42
|
},
|
43
43
|
"dependencies": {
|
44
|
+
"@nx/angular": "^16.0.0",
|
44
45
|
"@nx/devkit": "^16.0.0",
|
45
46
|
"@nx/js": "^16.0.0",
|
46
|
-
"@nstudio/focus": "16.5.
|
47
|
-
"@nstudio/xplat-utils": "16.5.
|
47
|
+
"@nstudio/focus": "16.5.9",
|
48
|
+
"@nstudio/xplat-utils": "16.5.9"
|
48
49
|
},
|
49
50
|
"author": "Nathan Walker",
|
50
51
|
"license": "MIT",
|
@@ -157,7 +157,7 @@ function createXplatNativeScriptAngular(tree, framework) {
|
|
157
157
|
// nativescript
|
158
158
|
import { NativeScriptModule, NativeScriptHttpClientModule } from '@nativescript/angular';
|
159
159
|
import { Device } from '@nativescript/core';
|
160
|
-
import {
|
160
|
+
import { FontIconModule } from 'nativescript-fonticon/angular';
|
161
161
|
|
162
162
|
// libs
|
163
163
|
import { TranslateLoader, TranslateModule } from '@ngx-translate/core';
|
@@ -181,7 +181,7 @@ function createXplatNativeScriptAngular(tree, framework) {
|
|
181
181
|
imports: [
|
182
182
|
NativeScriptModule,
|
183
183
|
NativeScriptHttpClientModule,
|
184
|
-
|
184
|
+
FontIconModule.forRoot({
|
185
185
|
fa: './assets/fontawesome.min.css'
|
186
186
|
}),
|
187
187
|
CoreModule.forRoot([
|
@@ -218,7 +218,7 @@ function createXplatNativeScriptAngular(tree, framework) {
|
|
218
218
|
|
219
219
|
import { NativeScriptCommonModule, NativeScriptFormsModule, NativeScriptRouterModule } from '@nativescript/angular';
|
220
220
|
|
221
|
-
import {
|
221
|
+
import { FontIconModule } from 'nativescript-fonticon/angular';
|
222
222
|
import { UISharedModule } from '@<%= npmScope %>/xplat/features';
|
223
223
|
import { UI_COMPONENTS } from './components';
|
224
224
|
|
@@ -226,7 +226,7 @@ function createXplatNativeScriptAngular(tree, framework) {
|
|
226
226
|
NativeScriptCommonModule,
|
227
227
|
NativeScriptFormsModule,
|
228
228
|
NativeScriptRouterModule,
|
229
|
-
|
229
|
+
FontIconModule,
|
230
230
|
UISharedModule
|
231
231
|
];
|
232
232
|
|
package/src/utils/versions.js
CHANGED
package/src/utils/xplat.js
CHANGED
@@ -197,9 +197,9 @@ var XplatHelpers;
|
|
197
197
|
xplat_utils_1.supportedNxExtraPlatforms.includes(platform)) {
|
198
198
|
// platforms that are supported directly via Nx only right now
|
199
199
|
// 'app'/'application' is only schematic supported via xplat proxy at moment
|
200
|
-
const packageName = `@nx/${platform}`;
|
201
|
-
devDependencies[packageName] =
|
202
|
-
packagesToRunXplat.push(packageName);
|
200
|
+
// const packageName = `@nx/${platform}`;
|
201
|
+
// devDependencies[packageName] = nxVersion;
|
202
|
+
// packagesToRunXplat.push(packageName);
|
203
203
|
}
|
204
204
|
else {
|
205
205
|
const packageName = `@nstudio/${platform}-${framework}`;
|
@@ -227,9 +227,9 @@ var XplatHelpers;
|
|
227
227
|
xplat_utils_1.supportedNxExtraPlatforms.includes(platform)) {
|
228
228
|
// platforms supported directly via Nx only right now
|
229
229
|
// 'app'/'application' is only schematic supported via xplat proxy at moment
|
230
|
-
const packageName = `@nx/${platform}`;
|
231
|
-
devDependencies[packageName] =
|
232
|
-
packagesToRunXplat.push(packageName);
|
230
|
+
// const packageName = `@nx/${platform}`;
|
231
|
+
// devDependencies[packageName] = nxVersion;
|
232
|
+
// packagesToRunXplat.push(packageName);
|
233
233
|
}
|
234
234
|
else {
|
235
235
|
throw new schematics_1.SchematicsException((0, errors_1.unsupportedPlatformError)(platform));
|
@@ -316,9 +316,9 @@ var XplatHelpers;
|
|
316
316
|
else if (xplat_utils_1.supportedNxExtraPlatforms.includes(platform)) {
|
317
317
|
// platforms supported directly via Nx only right now
|
318
318
|
// 'app'/'application' is only schematic supported via xplat proxy at moment
|
319
|
-
const packageName = `@nx/${platform}`;
|
320
|
-
devDependencies[packageName] =
|
321
|
-
packagesToRun.push(packageName);
|
319
|
+
// const packageName = `@nx/${platform}`;
|
320
|
+
// devDependencies[packageName] = nxVersion;
|
321
|
+
// packagesToRun.push(packageName);
|
322
322
|
}
|
323
323
|
else {
|
324
324
|
throw new schematics_1.SchematicsException((0, errors_1.unsupportedPlatformError)(platform));
|
@@ -461,18 +461,13 @@ var XplatHelpers;
|
|
461
461
|
testEnvironment,
|
462
462
|
interactive: false,
|
463
463
|
unitTestRunner: 'jest',
|
464
|
-
bundler: 'none'
|
464
|
+
bundler: 'none',
|
465
465
|
};
|
466
466
|
if (libName === 'scss') {
|
467
467
|
libOptions.skipTsConfig = true;
|
468
468
|
}
|
469
469
|
// console.log(`CALLING externalSchematic('@nx/workspace', 'lib') for:`, `libs/${directory ? directory + '/' : ''}${libName}`)
|
470
|
-
|
471
|
-
return (0, schematics_1.chain)([(0, schematics_1.externalSchematic)('@nx/js', 'library', libOptions)]);
|
472
|
-
}
|
473
|
-
catch (err) {
|
474
|
-
return (0, schematics_1.noop)();
|
475
|
-
}
|
470
|
+
return (0, schematics_1.chain)([(0, schematics_1.externalSchematic)('@nx/js', 'library', libOptions)]);
|
476
471
|
};
|
477
472
|
}
|
478
473
|
XplatHelpers.generateLib = generateLib;
|