@nrwl/angular 15.0.0-beta.4 → 15.0.0-rc.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/CHANGELOG.md CHANGED
@@ -3,6 +3,6 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
- # [15.0.0-beta.4](https://github.com/nrwl/nx/compare/14.8.0...15.0.0-beta.4) (2022-10-11)
6
+ # [15.0.0-rc.0](https://github.com/nrwl/nx/compare/14.8.0...15.0.0-rc.0) (2022-10-12)
7
7
 
8
8
  **Note:** Version bump only for package @nrwl/angular
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nrwl/angular",
3
- "version": "15.0.0-beta.4",
3
+ "version": "15.0.0-rc.0",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Angular contains executors, generators, and utilities for managing Angular applications and libraries within an Nx workspace. It provides: \n\n- Integration with libraries such as Storybook, Jest, ESLint, Tailwind CSS, Cypress, Karma, and Protractor. \n\n- Generators to help scaffold code quickly (like: Micro Frontends, Libraries, both internal to your codebase and publishable to npm) \n\n- Upgrading AngularJS applications \n\n- Single Component Application Modules (SCAMs) \n\n- NgRx helpers. \n\n- Utilities for automatic workspace refactoring.",
6
6
  "repository": {
@@ -67,13 +67,13 @@
67
67
  },
68
68
  "dependencies": {
69
69
  "@angular-devkit/schematics": "~14.2.0",
70
- "@nrwl/cypress": "15.0.0-beta.4",
71
- "@nrwl/devkit": "15.0.0-beta.4",
72
- "@nrwl/jest": "15.0.0-beta.4",
73
- "@nrwl/linter": "15.0.0-beta.4",
74
- "@nrwl/storybook": "15.0.0-beta.4",
75
- "@nrwl/webpack": "15.0.0-beta.4",
76
- "@nrwl/workspace": "15.0.0-beta.4",
70
+ "@nrwl/cypress": "15.0.0-rc.0",
71
+ "@nrwl/devkit": "15.0.0-rc.0",
72
+ "@nrwl/jest": "15.0.0-rc.0",
73
+ "@nrwl/linter": "15.0.0-rc.0",
74
+ "@nrwl/storybook": "15.0.0-rc.0",
75
+ "@nrwl/webpack": "15.0.0-rc.0",
76
+ "@nrwl/workspace": "15.0.0-rc.0",
77
77
  "@phenomnomnominal/tsquery": "4.1.1",
78
78
  "@schematics/angular": "~14.2.0",
79
79
  "chalk": "4.1.0",
@@ -99,5 +99,5 @@
99
99
  "fesm2015": "fesm2015/nrwl-angular.mjs",
100
100
  "typings": "index.d.ts",
101
101
  "sideEffects": false,
102
- "gitHead": "f9e57e26947a53ae5e37f70526451bcd7005331a"
102
+ "gitHead": "0ff93dd5f197141e15265a6d733f7b4e5e36e98e"
103
103
  }
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/draft-07/schema",
3
5
  "title": "Schema for Module Federation Dev Server",
4
6
  "description": "The module-federation-dev-server executor is reserved exclusively for use with host Module Federation applications. It allows the user to specify which remote applications should be served with the host.",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/draft-07/schema",
3
5
  "title": "Schema for Webpack Browser",
4
6
  "description": "The webpack-browser executor is very similar to the standard browser builder provided by the Angular Devkit. It allows you to build your Angular application to a build artifact that can be hosted online. There are some key differences: \n- Supports Custom Webpack Configurations \n- Supports Incremental Building",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/draft-07/schema",
3
5
  "title": "Schema for Webpack Dev Server",
4
6
  "description": "The webpack-dev-server executor is very similar to the standard dev server builder provided by the Angular Devkit. It is usually used in tandem with `@nrwl/angular:webpack-browser` when your Angular application uses a custom webpack configuration.",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/draft-07/schema",
3
5
  "title": "Schema for an executor which delegates a build.",
4
6
  "description": "Options for delegating a build to a different target.",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "title": "File Server",
3
5
  "description": "Serve a web application from a folder.",
4
6
  "type": "object",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/schema",
3
5
  "title": "ng-packagr Target",
4
6
  "description": "ng-packagr target options for Build Architect. Use to build library projects.",
@@ -1,4 +1,6 @@
1
1
  {
2
+ "version": 2,
3
+ "outputCapture": "direct-nodejs",
2
4
  "$schema": "http://json-schema.org/schema",
3
5
  "title": "ng-packagr Target",
4
6
  "description": "ng-packagr target options for Build Architect. Use to build and package library projects for publishing.",
@@ -1,4 +1,4 @@
1
- import { MountConfig, mount } from 'cypress/angular';
1
+ import { MountConfig } from 'cypress/angular';
2
2
  import { <%= componentName %> } from './<%= componentFileName %>';
3
3
 
4
4
  describe(<%= componentName %>.name, () => {
@@ -9,7 +9,7 @@ describe(<%= componentName %>.name, () => {
9
9
  }
10
10
 
11
11
  it('renders', () => {
12
- mount(<%= componentName %>,<% if(props.length > 0) { %> {
12
+ cy.mount(<%= componentName %>,<% if(props.length > 0) { %> {
13
13
  ...config,
14
14
  componentProperties: {<% for (let prop of props) { %>
15
15
  <%= prop.name %>: <%- prop.defaultValue %>,<% } %>
@@ -0,0 +1,42 @@
1
+ /// <reference types="cypress" />
2
+ import { mount } from 'cypress/angular'
3
+
4
+ // ***********************************************
5
+ // This example commands.ts shows you how to
6
+ // create various custom commands and overwrite
7
+ // existing commands.
8
+ //
9
+ // For more comprehensive examples of custom
10
+ // commands please read more here:
11
+ // https://on.cypress.io/custom-commands
12
+ // ***********************************************
13
+
14
+ declare global {
15
+ // eslint-disable-next-line @typescript-eslint/no-namespace
16
+ namespace Cypress {
17
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
18
+ interface Chainable<Subject> {
19
+ login(email: string, password: string): void;
20
+ mount: typeof mount;
21
+ }
22
+ }
23
+ }
24
+
25
+ Cypress.Commands.add('mount', mount)
26
+
27
+ //
28
+ // -- This is a parent command --
29
+ Cypress.Commands.add('login', (email, password) => {
30
+ console.log('Custom command example: Login', email, password);
31
+ });
32
+ //
33
+ // -- This is a child command --
34
+ // Cypress.Commands.add("drag", { prevSubject: 'element'}, (subject, options) => { ... })
35
+ //
36
+ //
37
+ // -- This is a dual command --
38
+ // Cypress.Commands.add("dismiss", { prevSubject: 'optional'}, (subject, options) => { ... })
39
+ //
40
+ //
41
+ // -- This will overwrite an existing command --
42
+ // Cypress.Commands.overwrite("visit", (originalFn, url, options) => { ... })