@schematics/angular 14.0.4 → 14.0.7

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.
@@ -5,7 +5,6 @@
5
5
  "type": "object",
6
6
  "description": "Generates an application shell for running a server-side version of an app.",
7
7
  "additionalProperties": false,
8
- "long-description": "./app-shell-long.md",
9
8
  "properties": {
10
9
  "project": {
11
10
  "type": "string",
@@ -367,7 +367,7 @@
367
367
  </a>
368
368
 
369
369
  <a class="card" target="_blank" rel="noopener" href="https://material.angular.io">
370
- <svg xmlns="http://www.w3.org/2000/svg" style="margin-right: 8px" width="21.813" height="23.453" viewBox="0 0 21.813 23.453"><path d="M4099.584,972.736h0l-10.882,3.9,1.637,14.4,9.245,5.153,9.245-5.153,1.686-14.4Z" transform="translate(-4088.702 -972.736)" fill="#808080"/><path d="M4181.516,972.736v23.453l9.245-5.153,1.686-14.4Z" transform="translate(-4170.633 -972.736)" fill="#808080"/><path d="M4137.529,1076.127l-7.7-3.723,4.417-2.721,7.753,3.723Z" transform="translate(-4125.003 -1058.315)" fill="#ffe0b2"/><path d="M4137.529,1051.705l-7.7-3.723,4.417-2.721,7.753,3.723Z" transform="translate(-4125.003 -1036.757)" fill="#fff3e0"/><path d="M4137.529,1027.283l-7.7-3.723,4.417-2.721,7.753,3.723Z" transform="translate(-4125.003 -1015.199)" fill="#fff"/></svg>
370
+ <svg xmlns="http://www.w3.org/2000/svg" style="margin-right: 8px" width="21.813" height="23.453" viewBox="0 0 179.2 192.7"><path fill="#ffa726" d="M89.4 0 0 32l13.5 118.4 75.9 42.3 76-42.3L179.2 32 89.4 0z"/><path fill="#fb8c00" d="M89.4 0v192.7l76-42.3L179.2 32 89.4 0z"/><path fill="#ffe0b2" d="m102.9 146.3-63.3-30.5 36.3-22.4 63.7 30.6-36.7 22.3z"/><path fill="#fff3e0" d="M102.9 122.8 39.6 92.2l36.3-22.3 63.7 30.6-36.7 22.3z"/><path fill="#fff" d="M102.9 99.3 39.6 68.7l36.3-22.4 63.7 30.6-36.7 22.4z"/></svg>
371
371
  <span>Angular Material</span>
372
372
  <svg class="material-icons" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"/></svg>
373
373
  </a>
package/e2e/schema.json CHANGED
@@ -5,7 +5,6 @@
5
5
  "type": "object",
6
6
  "additionalProperties": false,
7
7
  "description": "Generates a new, generic end-to-end test definition for the given or default project.",
8
- "long-description": "e2e-long.md",
9
8
  "properties": {
10
9
  "rootSelector": {
11
10
  "description": "The HTML selector for the root component of the test app.",
@@ -4,7 +4,6 @@
4
4
  "title": "Library Options Schema",
5
5
  "type": "object",
6
6
  "description": "Creates a new, generic library project in the current workspace.",
7
- "long-description": "./library-long.md",
8
7
  "additionalProperties": false,
9
8
  "properties": {
10
9
  "name": {
@@ -1,7 +1,7 @@
1
1
  import { NgModule } from '@angular/core';<% if (commonModule) { %>
2
2
  import { CommonModule } from '@angular/common';<% } %><% if (lazyRouteWithoutRouteModule) { %>
3
3
  import { Routes, RouterModule } from '@angular/router';<% } %>
4
- <% if (routing || lazyRouteWithRouteModule) { %>
4
+ <% if ((!lazyRoute && routing) || lazyRouteWithRouteModule) { %>
5
5
  import { <%= classify(name) %>RoutingModule } from './<%= dasherize(name) %>-routing.module';<% } %>
6
6
  <% if (lazyRouteWithoutRouteModule) { %>
7
7
  const routes: Routes = [
@@ -11,7 +11,7 @@ const routes: Routes = [
11
11
  @NgModule({
12
12
  declarations: [],
13
13
  imports: [<% if (commonModule) { %>
14
- CommonModule<% } %><% if (routing || lazyRouteWithRouteModule) { %>,
14
+ CommonModule<% } %><% if ((!lazyRoute && routing) || lazyRouteWithRouteModule) { %>,
15
15
  <%= classify(name) %>RoutingModule<% } %><% if (lazyRouteWithoutRouteModule) { %>,
16
16
  RouterModule.forChild(routes)<% } %>
17
17
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schematics/angular",
3
- "version": "14.0.4",
3
+ "version": "14.0.7",
4
4
  "description": "Schematics specific to Angular",
5
5
  "homepage": "https://github.com/angular/angular-cli",
6
6
  "keywords": [
@@ -23,8 +23,8 @@
23
23
  },
24
24
  "schematics": "./collection.json",
25
25
  "dependencies": {
26
- "@angular-devkit/core": "14.0.4",
27
- "@angular-devkit/schematics": "14.0.4",
26
+ "@angular-devkit/core": "14.0.7",
27
+ "@angular-devkit/schematics": "14.0.7",
28
28
  "jsonc-parser": "3.0.0"
29
29
  },
30
30
  "repository": {
@@ -1,47 +0,0 @@
1
- An app shell lets Universal render a portion of your application via a route at build time.
2
- This gives users a meaningful first paint of your application that appears quickly
3
- because the browser can simply render the HTML without the need to initialize any JavaScript.
4
-
5
- Use this command with a routing app that is accompanied by a Universal server-side app.
6
-
7
- To create an app shell, use the following command.
8
-
9
- <code-example format="." language="bash">
10
- ng generate app-shell my-app
11
- </code-example>
12
-
13
- - `my-app` is the name of your client application
14
- - `server-app` is the name of the Universal (server) application
15
-
16
- The command adds two new architect build targets to your `angular.json` configuration file (along with a few other changes).
17
-
18
- <code-example format="." language="none" linenums="false">
19
- "server": {
20
- "builder": "@angular-devkit/build-angular:server",
21
- "options": {
22
- "outputPath": "dist/my-app-server",
23
- "main": "src/main.server.ts",
24
- "tsConfig": "src/tsconfig.server.json"
25
- }
26
- },
27
- "app-shell": {
28
- "builder": "@angular-devkit/build-angular:app-shell",
29
- "options": {
30
- "browserTarget": "my-app:build",
31
- "serverTarget": "my-app:server",
32
- "route": "shell"
33
- }
34
- }
35
- </code-example>
36
-
37
- To verify the that the app has been built with the default shell content:
38
-
39
- 1. Run the app-shell target.
40
-
41
- <code-example format="." language="bash">
42
- ng run my-app:app-shell
43
- </code-example>
44
-
45
- 1. Open `dist/app-shell/index.html` in your browser.
46
-
47
- The default text "app-shell works!" verifies that the app-shell route was rendered as part of the output.
package/e2e/e2e-long.md DELETED
@@ -1,2 +0,0 @@
1
- The e2e tests are created in a separate application in the `projects` folder of the workspace,
2
- next to the project being tested.
@@ -1,16 +0,0 @@
1
- # This file is used by the build system to adjust CSS and JS output to support the specified browsers below.
2
- # For additional information regarding the format and rule options, please see:
3
- # https://github.com/browserslist/browserslist#queries
4
-
5
- # For the full list of supported browsers by the Angular framework, please see:
6
- # https://angular.io/guide/browser-support
7
-
8
- # You can see what browsers were selected by your queries by running:
9
- # npx browserslist
10
-
11
- last 1 Chrome version
12
- last 1 Firefox version
13
- last 2 Edge major versions
14
- last 2 Safari major versions
15
- last 2 iOS major versions
16
- Firefox ESR
@@ -1,5 +0,0 @@
1
- A library is a type of project that does not run independently.
2
- The library skeleton created by this command is placed by default in the `/projects` folder, and has `type` of "library".
3
-
4
- You can build a new library using the `ng build` command, run unit tests for it using the `ng test` command,
5
- and lint it using the `ng lint` command.