@angular-devkit/schematics 12.2.0-next.3 → 12.2.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.
Files changed (2) hide show
  1. package/README.md +4 -12
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -74,10 +74,10 @@ It is impossible to create files using a `FileOperator`.
74
74
 
75
75
  The Schematics library provides multiple `Operator` factories by default that cover basic use cases:
76
76
 
77
- | FileOperator | Description |
78
- | -------------------------------- | --------------------------------------------------- |
79
- | `contentTemplate<T>(options: T)` | Apply a content template (see the Template section) |
80
- | `pathTemplate<T>(options: T)` | Apply a path template (see the Template section) |
77
+ | FileOperator | Description |
78
+ | -------------------------------- | -------------------------------------------------------------------- |
79
+ | `contentTemplate<T>(options: T)` | Apply a content template (see the [Templating](#templating) section) |
80
+ | `pathTemplate<T>(options: T)` | Apply a path template (see the [Templating](#templating) section) |
81
81
 
82
82
  ## Provided Sources
83
83
 
@@ -202,11 +202,3 @@ Additional things from this example:
202
202
  1. The files are on-disk in the same root directory as the `index.ts` and loaded into a `Tree`.
203
203
  1. Then the `template` `Rule` fills in the specified templating placeholders. For this, it only knows about the variables and functions passed to it via the options-object.
204
204
  1. Finally, the resulting `Tree`, containing the new file, is merged with the existing files of the project which the Schematic is run on.
205
-
206
- # Future Work
207
-
208
- Schematics is not done yet. Here's a list of things we are considering:
209
-
210
- - Smart defaults for Options. Having a JavaScript function for default values based on other default values.
211
- - Prompt for input options. This should only be prompted for the original schematics, dependencies to other schematics should not trigger another prompting.
212
- - Tasks for running tooling-specific jobs before and after a schematics has been scaffolded. Such tasks can involve initialize git, or npm install. A specific list of tasks should be provided by the tool, with unsupported tasks generating an error.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular-devkit/schematics",
3
- "version": "12.2.0-next.3",
3
+ "version": "12.2.2",
4
4
  "description": "Angular Schematics - Library",
5
5
  "main": "src/index.js",
6
6
  "typings": "src/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "schematics"
19
19
  ],
20
20
  "dependencies": {
21
- "@angular-devkit/core": "12.2.0-next.3",
21
+ "@angular-devkit/core": "12.2.2",
22
22
  "ora": "5.4.1",
23
23
  "rxjs": "6.6.7"
24
24
  },