Skip to content

Commit ec99e51

Browse files
committed
direct copy paste of angular npm package to angular18 (no changes)
1 parent 6497289 commit ec99e51

11 files changed

+726
-0
lines changed

npm/angular18/.eslintignore

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
**/dist
2+
**/*.d.ts
3+
**/package-lock.json
4+
**/tsconfig.json
5+
**/cypress/fixtures

npm/angular18/.eslintrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"plugins": [
3+
"cypress"
4+
],
5+
"extends": [
6+
"plugin:@cypress/dev/tests"
7+
]
8+
}

npm/angular18/.npmignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
examples
2+
src
3+
cypress

npm/angular18/.releaserc.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
...require('../../.releaserc'),
3+
}

npm/angular18/CHANGELOG.md

+185
Large diffs are not rendered by default.

npm/angular18/README.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# @cypress/angular
2+
3+
Mount Angular components in the open source [Cypress.io](https://www.cypress.io/) test runner
4+
5+
> **Note:** This package is bundled with the `cypress` package and should not need to be installed separately. See the [Angular Component Testing Docs](https://docs.cypress.io/guides/component-testing/angular/overview) for mounting Angular components. Installing and importing `mount` from `@cypress/angular` should only be done for advanced use-cases.
6+
## Development
7+
8+
Run `yarn build` to compile and sync packages to the `cypress` cli package.
9+
10+
## [Changelog](./CHANGELOG.md)

npm/angular18/package.json

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
{
2+
"name": "@cypress/angular",
3+
"version": "0.0.0-development",
4+
"description": "Test Angular Components using Cypress",
5+
"main": "dist/index.js",
6+
"scripts": {
7+
"prebuild": "rimraf dist",
8+
"build": "rollup -c rollup.config.mjs",
9+
"postbuild": "node ../../scripts/sync-exported-npm-with-cli.js",
10+
"check-ts": "tsc --noEmit",
11+
"lint": "eslint --ext .js,.ts,.json, ."
12+
},
13+
"dependencies": {},
14+
"devDependencies": {
15+
"@angular/common": "^14.2.0",
16+
"@angular/core": "^14.2.0",
17+
"@angular/platform-browser-dynamic": "^14.2.0",
18+
"@cypress/mount-utils": "0.0.0-development",
19+
"typescript": "^4.7.4",
20+
"zone.js": "~0.11.4"
21+
},
22+
"peerDependencies": {
23+
"@angular/common": ">=13",
24+
"@angular/core": ">=13",
25+
"@angular/platform-browser-dynamic": ">=13",
26+
"zone.js": ">=0.11.0"
27+
},
28+
"files": [
29+
"dist"
30+
],
31+
"types": "dist/index.d.ts",
32+
"license": "MIT",
33+
"repository": {
34+
"type": "git",
35+
"url": "https://github.com/cypress-io/cypress.git"
36+
},
37+
"homepage": "https://github.com/cypress-io/cypress/blob/develop/npm/angular/#readme",
38+
"bugs": "https://github.com/cypress-io/cypress/issues/new?assignees=&labels=npm%3A%20%40cypress%2Fangular&template=1-bug-report.md&title=",
39+
"keywords": [
40+
"angular",
41+
"cypress",
42+
"cypress-io",
43+
"test",
44+
"testing"
45+
],
46+
"contributors": [
47+
{
48+
"name": "Jordan Powell",
49+
"social": "@jordanpowell88"
50+
},
51+
{
52+
"name": "Zach Williams",
53+
"social": "@ZachJW34"
54+
}
55+
],
56+
"module": "dist/index.js",
57+
"publishConfig": {
58+
"access": "public"
59+
},
60+
"nx": {
61+
"targets": {
62+
"build": {
63+
"outputs": [
64+
"{workspaceRoot}/cli/angular"
65+
]
66+
}
67+
}
68+
},
69+
"standard": {
70+
"globals": [
71+
"Cypress",
72+
"cy",
73+
"expect"
74+
]
75+
}
76+
}

npm/angular18/rollup.config.mjs

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { createEntries } from '@cypress/mount-utils/create-rollup-entry.mjs'
2+
3+
const config = {
4+
external: [
5+
'@angular/core',
6+
'@angular/core/testing',
7+
'@angular/common',
8+
'@angular/platform-browser-dynamic/testing',
9+
'zone.js',
10+
'zone.js/testing',
11+
],
12+
}
13+
14+
export default createEntries({ formats: ['es'], input: 'src/index.ts', config })

npm/angular18/src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './mount'

0 commit comments

Comments
 (0)