@nstudio/web 15.0.4-rc.1 → 16.2.0-beta.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 CHANGED
@@ -24,13 +24,19 @@
24
24
 
25
25
  ```
26
26
  npx create-nx-workspace@latest
27
- ```
28
27
 
29
- At the prompts:
28
+ // Choose "Integrated monorepo" at the prompt:
30
29
 
31
- > What to create in the new workspace
30
+ ? Choose what to create
31
+ > Integrated monorepo: Nx configures your favorite frameworks and lets you focus on shipping features.
32
32
 
33
- > choose `apps`
33
+ // Choose "apps" at the prompt:
34
+
35
+ ? What to create in the new workspace …
36
+ > apps [an empty monorepo with no plugins with a layout that works best for building apps]
37
+ ```
38
+
39
+ Install the tools:
34
40
 
35
41
  ```
36
42
  npm i @nstudio/xplat -D
@@ -39,15 +45,13 @@ npm i @nstudio/xplat -D
39
45
  You are now ready to create apps:
40
46
 
41
47
  ```
42
- nx g app
48
+ npx nx g @nstudio/xplat:app
43
49
  ```
44
50
 
45
- **NOTE:** If you encounter any issue, you can try creating an Nx workspace with a version specified.
46
-
47
- We have tested with the following, for example:
51
+ **NOTE:** If you encounter any issue, you can try creating an Nx workspace with version specified, for example:
48
52
 
49
53
  ```
50
- npx create-nx-workspace@15.9.2
54
+ npx create-nx-workspace@14.1.7
51
55
  ```
52
56
 
53
57
  ## App generation examples
@@ -61,7 +65,7 @@ Electron app generator can use any web app in the workspace as it's target.
61
65
  If you don't have a web app yet, create one first:
62
66
 
63
67
  ```
64
- nx g app sample
68
+ npx nx g @nstudio/xplat:app sample
65
69
  ```
66
70
 
67
71
  > choose `web`
@@ -69,7 +73,7 @@ nx g app sample
69
73
  You can now use the web app as the Electron target:
70
74
 
71
75
  ```
72
- nx g app desktop --target=web-sample
76
+ npx nx g @nstudio/xplat:app desktop --target=web-sample
73
77
  ```
74
78
 
75
79
  > choose `electron`
@@ -83,7 +87,7 @@ npm run start.electron.desktop
83
87
  ### Ionic
84
88
 
85
89
  ```
86
- nx g app sample
90
+ npx nx g @nstudio/xplat:app sample
87
91
  ```
88
92
 
89
93
  > choose `ionic`
@@ -91,13 +95,13 @@ nx g app sample
91
95
  Develop in browser with:
92
96
 
93
97
  ```
94
- nx serve ionic-sample
98
+ npx nx serve ionic-sample
95
99
  ```
96
100
 
97
101
  Build Ionic app:
98
102
 
99
103
  ```
100
- nx build ionic-sample
104
+ npx nx build ionic-sample
101
105
  ```
102
106
 
103
107
  A. **Capacitor iOS** - Prepare for development
@@ -127,7 +131,7 @@ npm run open.ionic.sample.android
127
131
  ### NativeScript
128
132
 
129
133
  ```
130
- nx g app mobile
134
+ nx g @nstudio/xplat:app mobile
131
135
  ```
132
136
 
133
137
  > choose `nativescript`
@@ -135,13 +139,13 @@ nx g app mobile
135
139
  A. **iOS**
136
140
 
137
141
  ```
138
- nx run nativescript-mobile:ios
142
+ npx nx run nativescript-mobile:ios
139
143
  ```
140
144
 
141
145
  B. **Android**
142
146
 
143
147
  ```
144
- nx run nativescript-mobile:android
148
+ npx nx run nativescript-mobile:android
145
149
  ```
146
150
 
147
151
  ## Documentation
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nstudio/web",
3
- "version": "15.0.4-rc.1",
3
+ "version": "16.2.0-beta.0",
4
4
  "description": "Web Plugin for xplat",
5
5
  "homepage": "https://nstudio.io/xplat",
6
6
  "repository": {
@@ -30,9 +30,9 @@
30
30
  "migrations": "./migrations.json"
31
31
  },
32
32
  "dependencies": {
33
- "@nrwl/web": "^15.0.0"
33
+ "@nx/web": "^16.0.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@nstudio/xplat": "15.0.4-rc.1"
36
+ "@nstudio/xplat": "16.2.0-beta.0"
37
37
  }
38
38
  }
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.xplatVersion = void 0;
4
- exports.xplatVersion = '15.0.4-rc.1';
4
+ exports.xplatVersion = '16.2.0-beta.0';