@nrwl/remix 1.0.0-alpha.19 → 1.0.0-alpha.22

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
@@ -52,6 +52,10 @@ You can then add your first app and run it:
52
52
  npx nx g @nrwl/remix:app demo
53
53
  ```
54
54
 
55
+
56
+ ## Adding new routes
57
+
58
+
55
59
  ## Workspace libraries
56
60
 
57
61
  The Remix setup leverages npm/yarn/pnpm workspaces and Nx buildable libraries.
package/generators.json CHANGED
@@ -27,6 +27,11 @@
27
27
  "description": "Generate a new library",
28
28
  "aliases": ["lib"],
29
29
  "x-type": "library"
30
+ },
31
+ "route": {
32
+ "factory": "./src/generators/route/route.impl",
33
+ "schema": "./src/generators/route/schema.json",
34
+ "description": "Generate a new route"
30
35
  }
31
36
  }
32
37
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/remix",
3
- "version": "1.0.0-alpha.19",
3
+ "version": "1.0.0-alpha.22",
4
4
  "main": "src/index.js",
5
5
  "generators": "./generators.json",
6
6
  "dependencies": {
@@ -6,6 +6,7 @@ const normalize_options_1 = require("./lib/normalize-options");
6
6
  const application_impl_1 = require("../application/application.impl");
7
7
  const setup_impl_1 = require("../setup/setup.impl");
8
8
  const run_tasks_in_serial_1 = require("@nrwl/workspace/src/utilities/run-tasks-in-serial");
9
+ const set_default_collection_1 = require("@nrwl/workspace/src/utilities/set-default-collection");
9
10
  function default_1(tree, _options) {
10
11
  return (0, tslib_1.__awaiter)(this, void 0, void 0, function* () {
11
12
  const options = (0, normalize_options_1.normalizeOptions)(tree, _options);
@@ -20,6 +21,7 @@ function default_1(tree, _options) {
20
21
  tasks.push(setupGenTask);
21
22
  // No need for workspace.json in latest Nx
22
23
  tree.delete('workspace.json');
24
+ (0, set_default_collection_1.setDefaultCollection)(tree, '@nrwl/remix');
23
25
  yield (0, devkit_1.formatFiles)(tree);
24
26
  return (0, run_tasks_in_serial_1.runTasksInSerial)(...tasks);
25
27
  });
@@ -1 +1 @@
1
- {"version":3,"file":"preset.impl.js","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/preset/preset.impl.ts"],"names":[],"mappings":";;;AAAA,yCAAoE;AAGpE,+DAA2D;AAC3D,sEAAmE;AACnE,oDAAiD;AACjD,2FAAqF;AAErF,mBAA+B,IAAU,EAAE,QAAgC;;QACzE,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,IAAA,0BAAoB,EAAC,IAAI,EAAE;YAClD,IAAI,EAAE,OAAO,CAAC,WAAW;YACzB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAA,oBAAc,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpD,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE9B,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AApBD,4BAoBC"}
1
+ {"version":3,"file":"preset.impl.js","sourceRoot":"","sources":["../../../../../../packages/remix/src/generators/preset/preset.impl.ts"],"names":[],"mappings":";;;AAAA,yCAAoE;AAGpE,+DAA2D;AAC3D,sEAAmE;AACnE,oDAAiD;AACjD,2FAAqF;AACrF,iGAA4F;AAE5F,mBAA+B,IAAU,EAAE,QAAgC;;QACzE,MAAM,OAAO,GAAG,IAAA,oCAAgB,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;QACjD,MAAM,KAAK,GAAwB,EAAE,CAAC;QAEtC,MAAM,UAAU,GAAG,MAAM,IAAA,0BAAoB,EAAC,IAAI,EAAE;YAClD,IAAI,EAAE,OAAO,CAAC,WAAW;YACzB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,UAAU,EAAE,IAAI;SACjB,CAAC,CAAC;QACH,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAA,oBAAc,EAAC,IAAI,EAAE,EAAE,CAAC,CAAC;QACpD,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,CAAC;QAE9B,IAAA,6CAAoB,EAAC,IAAI,EAAE,aAAa,CAAC,CAAC;QAE1C,MAAM,IAAA,oBAAW,EAAC,IAAI,CAAC,CAAC;QAExB,OAAO,IAAA,sCAAgB,EAAC,GAAG,KAAK,CAAC,CAAC;IACpC,CAAC;CAAA;AAtBD,4BAsBC"}
@@ -13,10 +13,9 @@
13
13
  "properties": {
14
14
  "project": {
15
15
  "type": "string",
16
- "description": "Route path",
16
+ "description": "The name of the project.",
17
17
  "$default": {
18
- "$source": "argv",
19
- "index": 0
18
+ "$source": "projectName"
20
19
  },
21
20
  "x-prompt": "What project is this route for?",
22
21
  "pattern": "^[a-zA-Z].*$"
@@ -26,9 +25,9 @@
26
25
  "description": "Route path",
27
26
  "$default": {
28
27
  "$source": "argv",
29
- "index": 1
28
+ "index": 0
30
29
  },
31
- "x-prompt": "What is the path of the route?"
30
+ "x-prompt": "What is the path of the route? (e.g. 'foo/bar')"
32
31
  },
33
32
  "style": {
34
33
  "type": "string",