{"_id":"@edyoucated/cypress-schematic","_rev":"1-d67d04538aa1fcbaa170a63781f50920","name":"@edyoucated/cypress-schematic","dist-tags":{"latest":"4.4.0"},"versions":{"4.4.0":{"name":"@edyoucated/cypress-schematic","version":"4.4.0","description":"Add cypress to an Angular CLI project","builders":"src/builders/builders.json","repository":{"type":"git","url":"git+https://github.com/briebug/cypress-schematic.git"},"bugs":{"url":"https://github.com/briebug/cypress-schematic/issues"},"homepage":"https://github.com/briebug/cypress-schematic","main":"src/cypress/index.js","scripts":{"build":"tsc -p tsconfig.json","build:test":"tsc -p tsconfig.spec.json","build:watch":"tsc -p tsconfig.json -watch","build:test:watch":"tsc -p tsconfig.spec.json -watch","build:clean:launch":"npm run build && npm run clean:launch","clean":"git checkout HEAD -- sandbox && git clean -f -d sandbox","clean:launch":"npm run clean && npm run launch","launch":"npm run link:sandbox && cd sandbox && ng add @briebug/cypress-schematic --remove-protractor","link:sandbox":"npm link && cd sandbox && npm link @briebug/cypress-schematic","unlink:sandbox":"cd sandbox && npm unlink @briebug/cypress-schematic && cd .. && npm unlink","release":"npm run build && np","test":"npm run build:clean:launch && npm run test:sandbox && npm run clean","test:sandbox":"cd sandbox && npm run lint && npm run test && npm run build","test:unit":"jasmine src/**/*_spec.js","test:e2e":"cd sandbox && ng run sandbox:cypress-run","build:clean:launch:ws":"npm run build && npm run clean:launch:ws","clean:ws":"git checkout HEAD -- sandbox-workspace && git clean -f -d sandbox-workspace","clean:launch:ws":"npm run clean:ws && npm run launch:ws","launch:ws":"npm run link:workspace && cd sandbox-workspace && ng add @briebug/cypress-schematic --remove-protractor","link:workspace":"npm link && cd sandbox-workspace && npm link @briebug/cypress-schematic","unlink:workspace":"cd sandbox-workspace && npm unlink @briebug/cypress-schematic && cd .. && npm unlink","test:ws":"npm run build:clean:launch:ws && npm run test:sandbox-workspace && npm run clean:ws","test:sandbox-workspace":"cd sandbox-workspace && npm run lint && npm run test && npm run build","test:e2e:ws":"cd sandbox-workspace && ng run new-sandbox:cypress-run"},"keywords":["builders","cypress","e2e","schematics","testing","time-travel"],"author":{"name":"Briebug"},"license":"MIT","schematics":"./src/schematics/collection.json","ng-add":{"save":"devDependencies"},"publishConfig":{"access":"public"},"engines":{"node":">=10"},"contributors":[{"name":"Anthony Jones","email":"anthony.jones+github@briebug.com","url":"https://briebug.com"},{"name":"Marvin Heilemann","email":"marvin.heilemann+github@googlemail.com","url":"https://marvin.digital/"}],"peerDependencies":{"cypress":"^7.0.0"},"dependencies":{"@angular-devkit/architect":"^0.1001.0","@angular-devkit/core":"^10.1.0","@angular-devkit/schematics":"^10.1.0","@schematics/angular":"^10.1.0","cypress":"^7.0.0","rxjs":"6.6.2"},"devDependencies":{"@types/jasmine":"^3.5.14","@types/node":"^10.17.30","chalk":"^4.1.0","husky":"^4.2.5","jasmine":"^3.6.1","lint-staged":"^10.2.13","prettier":"^2.1.1","typescript":"^4.0.2"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"lint-staged":{"*.{js,json,md,ts}":["prettier --write"]},"gitHead":"c95bedebcae5ec0ae44cabf3d8b5bd30df016d03","_id":"@edyoucated/cypress-schematic@4.4.0","_nodeVersion":"14.16.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-63cQ0J/rv2j97nOG0LaXMk1WoFjSUzc3OhXtw12wkurDoE2lBjU+VCTm8qEnWxnjw9geEtGoBqn5d3Q5NPa82w==","shasum":"a2a626f8ffaaf1954f67ece53a2f57dad1f43c84","tarball":"https://registry.npmjs.org/@edyoucated/cypress-schematic/-/cypress-schematic-4.4.0.tgz","fileCount":75,"unpackedSize":753660,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgba+YCRA9TVsSAnZWagAAdsIQAI3sTM7sbvFx1nUp9+II\nqNe7K4d/b/WDfrT9So4eVkXoV/WscBUnOSHfnFchBHhbZnO6BAp7iliLlYPh\nbis/y4GWgyslDp6EiyNITx3tgkY5xmCZpmfegH3ZXlhhlBS1ZQYQKO3iesuu\nkEH6XJMvwWPjzu1XMM7V4dQKdCSN9Fs4ebWJg3p8XmGc4QfmYYa46HWVzxIH\nz8vj2nfUrNBjpsVZKt3Tm6rNgyk8f9RBneMC7H+8D7LCiamgEKXUpCxog0Rd\nCk2jakLTV1RSqhHfcHmvzl+NBkK5zH4df7qAwFbWJabbumAQAjS/kQvcuxnx\nMC8Eu2aJjxDGfTqpGln+jk36MMyEDgLkU+AWpVOf4g8j+y9H8pDCftjnbNNI\nk0tJu/mlO5kNbAZH+qGSa+atqIaw2HC/6BVQDc5nHJ3W8hikxD49yu8WBIaY\nP2plt8j/B0zOlZj1iJbIarUIIZj9cjDKGyl7Vcmy1EHAxMEa9Gk33ofMcKJw\nEeq1mIG3AM3Tb4nXaoq9/zmEiyf+vWjZJD1SMRZ+NeJF5u/cSB3OMK8DGzpZ\nn53V3seEJ6RNBHNojn4KyI4T3DDvHYSKMDboW7poJqSsWDWiCx1SgjzXk5D5\nRheyrC5lZnBgKOvlR+PY9DBNoTdOQO3uBp/DalnaiXuTfbJDsmIzyZKD7uJ0\nYTqO\r\n=TiRn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCIYFCUF2k66hmYbwaBP4HDvY/TvYAccQUfKcHmyVbdmAIhAOwu3AIZtHMjEH+jB0np1AKr3HL+zST4So6oL/t2c+VY"}]},"_npmUser":{"name":"timtim5174","email":"tsawatzki@outlook.de"},"directories":{},"maintainers":[{"name":"timtim5174","email":"tsawatzki@outlook.de"},{"name":"janpapenbrock","email":"jan@edyoucated.org"},{"name":"jannikweichert","email":"jannik@edyoucated.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cypress-schematic_4.4.0_1617801112440_0.8692830325048995"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-07T13:11:52.154Z","4.4.0":"2021-04-07T13:11:52.607Z","modified":"2022-04-05T06:45:34.446Z"},"maintainers":[{"name":"timtim5174","email":"tsawatzki@outlook.de"},{"name":"janpapenbrock","email":"jan@edyoucated.org"},{"name":"jannikweichert","email":"jannik@edyoucated.org"}],"description":"Add cypress to an Angular CLI project","homepage":"https://github.com/briebug/cypress-schematic","keywords":["builders","cypress","e2e","schematics","testing","time-travel"],"repository":{"type":"git","url":"git+https://github.com/briebug/cypress-schematic.git"},"contributors":[{"name":"Anthony Jones","email":"anthony.jones+github@briebug.com","url":"https://briebug.com"},{"name":"Marvin Heilemann","email":"marvin.heilemann+github@googlemail.com","url":"https://marvin.digital/"}],"author":{"name":"Briebug"},"bugs":{"url":"https://github.com/briebug/cypress-schematic/issues"},"license":"MIT","readme":"# Cypress Angular Schematic\n\n[![npm (scoped)](https://img.shields.io/npm/v/@briebug/cypress-schematic.svg)](https://www.npmjs.com/package/@briebug/cypress-schematic)\n![Downloads](https://img.shields.io/npm/dm/@briebug/cypress-schematic.svg)\n\n<p align=\"center\">\n  <img alt=\"Cypress Schematic Logo\" src=\"/cypress-schematic-logo-v2.png\" width=300 />\n</p>\n\nAdd [Cypress](https://cypress.io) to an Angular CLI project\n\nThis schematic will:\n\n- install Cypress, its dependencies, and new scripts\n- add necessary files for Cypress to work with Angular & Typescript\n- prompt for removal of Protractor files and configuration\n\n## Usage 🚀\n\nRun as one command in an Angular CLI app directory. Note this will add the schematic as a dependency to your project.\n\n```shell\nng add @briebug/cypress-schematic\n```\n\nWith the custom builder installed, you can run cypress with the following commands:\n\n```shell script\nng e2e\n```\n\n```shell script\nng run {your-project-name}:cypress-open\n```\n\nThese two commands do the same thing. They will launch the (Electron) Cypress Test Runner in watch mode.\n\n```shell script\nng run {your-project-name}:cypress-run\n```\n\nThis command will open the (Electron) Cypress Test Runner and run your tests one time, with output to your terminal.\n\n#### Options\n\n| Option                | Description                                                                                                                                                                                                 |\n| --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| addCypressTestScripts | This will add Cypress `open` and `run` command scripts to your `package.json`. Include `--addCypressTestScripts` in your `ng add` command.                                                                  |\n| noBuilder             | This will skip the builder addition, leaving the `angular.json` file unmodified and requiring you to run Cypress from the command line or through your IDE. Include `--noBuilder` in your `ng add` command. |\n\n## Issues\n\nIssues with this schematic can be filed [here](https://github.com/briebug/cypress-schematic/issues/new/choose).\n\nIf you want to contribute (or have contributed in the past), feel free to add yourself to the list of contributors in the `package.json` before you open a PR!\n\n## Development 🛠\n\n### Getting started\n\n⚙ [Node.js and npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) are required for the scripts. Make sure it's installed on your machine.\n\n⬇ **Install** the dependencies for the schematic and the sandbox application\n\n```bash\nnpm i && cd sandbox && npm i && cd ..\n```\n\n🖇 **Link** the schematic in the sandbox to run locally\n\n```bash\nnpm run link:sandbox\n```\n\n🏃 **Run** the schematic\n\n```bash\nnpm run build:clean:launch\n```\n\n## E2E testing\n\nExecute the schematic against the sandbox. Then run linting, unit & e2e tests and a prod build in the sandbox.\n\n```bash\nnpm run test\n```\n\n## Unit Testing\n\nRun the unit tests using Jasmine as a runner and test framework.\n\n```bash\nnpm run test:unit\n```\n\n## Reset the sandbox\n\nRunning the schematic locally makes file system changes. The sandbox is version controlled so that viewing a diff of the changes is trivial. After the schematic has run locally, reset the sandbox with the following.\n\n```bash\nnpm run clean\n```\n","readmeFilename":"README.md"}