@nstudio/xplat 16.5.8 → 16.7.0-alpha.0
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 +3 -4
- package/src/utils/testing-utils.js +4 -4
- package/src/utils/versions.js +1 -1
- package/src/utils/xplat.js +4 -3
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.
|
3
|
+
"version": "16.7.0-alpha.0",
|
4
4
|
"description": "Cross-platform (xplat) tools for Nx workspaces.",
|
5
5
|
"homepage": "https://nstudio.io/xplat",
|
6
6
|
"repository": {
|
@@ -44,9 +44,8 @@
|
|
44
44
|
"@nx/angular": "^16.0.0",
|
45
45
|
"@nx/devkit": "^16.0.0",
|
46
46
|
"@nx/js": "^16.0.0",
|
47
|
-
"@nstudio/focus": "16.
|
48
|
-
"@nstudio/xplat-utils": "16.
|
49
|
-
"patch-package": "^7.0.0"
|
47
|
+
"@nstudio/focus": "16.7.0-alpha.0",
|
48
|
+
"@nstudio/xplat-utils": "16.7.0-alpha.0"
|
50
49
|
},
|
51
50
|
"author": "Nathan Walker",
|
52
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
@@ -462,6 +462,7 @@ var XplatHelpers;
|
|
462
462
|
interactive: false,
|
463
463
|
unitTestRunner: 'jest',
|
464
464
|
bundler: 'none',
|
465
|
+
projectNameAndRootFormat: 'derived',
|
465
466
|
};
|
466
467
|
if (libName === 'scss') {
|
467
468
|
libOptions.skipTsConfig = true;
|
@@ -609,7 +610,7 @@ var XplatHelpers;
|
|
609
610
|
};
|
610
611
|
}
|
611
612
|
XplatHelpers.updatePrettierIgnore = updatePrettierIgnore;
|
612
|
-
})(XplatHelpers
|
613
|
+
})(XplatHelpers || (exports.XplatHelpers = XplatHelpers = {}));
|
613
614
|
var XplatComponentHelpers;
|
614
615
|
(function (XplatComponentHelpers) {
|
615
616
|
function prepare(options) {
|
@@ -673,7 +674,7 @@ var XplatComponentHelpers;
|
|
673
674
|
return { directory, featureName, projectNames, platforms };
|
674
675
|
}
|
675
676
|
XplatComponentHelpers.prepare = prepare;
|
676
|
-
})(XplatComponentHelpers
|
677
|
+
})(XplatComponentHelpers || (exports.XplatComponentHelpers = XplatComponentHelpers = {}));
|
677
678
|
var XplatFeatureHelpers;
|
678
679
|
(function (XplatFeatureHelpers) {
|
679
680
|
function prepare(options) {
|
@@ -827,4 +828,4 @@ var XplatFeatureHelpers;
|
|
827
828
|
return moveTo;
|
828
829
|
}
|
829
830
|
XplatFeatureHelpers.getMoveTo = getMoveTo;
|
830
|
-
})(XplatFeatureHelpers
|
831
|
+
})(XplatFeatureHelpers || (exports.XplatFeatureHelpers = XplatFeatureHelpers = {}));
|