@nstudio/xplat 16.5.0 → 16.5.2

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
@@ -22,24 +22,40 @@
22
22
 
23
23
  ## Quickstart
24
24
 
25
- ```
25
+ ```sh
26
26
  npx create-nx-workspace@latest
27
27
 
28
- // Choose "Integrated monorepo" at the prompt:
28
+ Where would you like to create your workspace? · {your-workspace-name}
29
+
30
+ # Choose "None"
31
+
32
+ ? Which stack do you want to use? …
33
+ None: Configures a minimal structure without specific frameworks or technologies.
29
34
 
30
- ? Choose what to create …
31
- > Integrated monorepo: Nx configures your favorite frameworks and lets you focus on shipping features.
35
+ # Choose "Integrated"
36
+
37
+ ? Package-based or integrated? …
38
+ Integrated: Nx creates a workspace structure most suitable for building apps.
39
+ ```
40
+
41
+ ### Init workspace
42
+
43
+ Install the @nx/js plugin.
44
+
45
+ ```sh
46
+ npm install @nx/js -D
47
+ ```
32
48
 
33
- // Choose "apps" at the prompt:
49
+ Now initialize -- This will ensure a `tsconfig.base.json` is created to begin building your workspace.
34
50
 
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]
51
+ ```sh
52
+ npx nx g @nx/js:init
37
53
  ```
38
54
 
39
- Install the tools:
55
+ ### Install the tools:
40
56
 
41
57
  ```
42
- npm i @nstudio/xplat -D
58
+ npm install @nstudio/xplat -D
43
59
  ```
44
60
 
45
61
  You are now ready to create apps:
@@ -51,7 +67,7 @@ npx nx g @nstudio/xplat:app
51
67
  **NOTE:** If you encounter any issue, you can try creating an Nx workspace with version specified, for example:
52
68
 
53
69
  ```
54
- npx create-nx-workspace@14.1.7
70
+ npx create-nx-workspace@16.5.0
55
71
  ```
56
72
 
57
73
  ## App generation examples
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nstudio/xplat",
3
- "version": "16.5.0",
3
+ "version": "16.5.2",
4
4
  "description": "Cross-platform (xplat) tools for Nx workspaces.",
5
5
  "homepage": "https://nstudio.io/xplat",
6
6
  "repository": {
@@ -43,8 +43,8 @@
43
43
  "dependencies": {
44
44
  "@nx/devkit": "^16.0.0",
45
45
  "@nx/js": "^16.0.0",
46
- "@nstudio/focus": "16.5.0",
47
- "@nstudio/xplat-utils": "16.5.0"
46
+ "@nstudio/focus": "16.5.2",
47
+ "@nstudio/xplat-utils": "16.5.2"
48
48
  },
49
49
  "author": "Nathan Walker",
50
50
  "license": "MIT",
@@ -96,13 +96,6 @@ function readWorkspaceJson(tree) {
96
96
  return (0, xplat_utils_1.getJsonFromFile)(tree, 'workspace.json');
97
97
  }
98
98
  exports.readWorkspaceJson = readWorkspaceJson;
99
- // export function persistPrefix(prefix: string) {
100
- // return (tree: Tree) => {
101
- // const nxConfig = getNxWorkspaceConfig(tree);
102
- // ngConfig.defaults.prefix = prefix;
103
- // return updateJsonFile(tree, 'angular.json', ngConfig);
104
- // };
105
- // }
106
99
  function getPrefixWarning(prefix) {
107
100
  return `A default prefix had already been set for your workspace: ${prefix}. Since xplat had already been configured we will be using '${prefix}' as the prefix.`;
108
101
  }
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.nxVersion = exports.xplatVersion = void 0;
4
- exports.xplatVersion = '16.5.0';
4
+ exports.xplatVersion = '16.5.2';
5
5
  exports.nxVersion = '^16.0.0';