From ae33b5c449e7009a6b1e8f9ef71a47fea435a87f Mon Sep 17 00:00:00 2001 From: Adam Murray Date: Thu, 13 May 2021 14:42:40 -0500 Subject: [PATCH] fix: angular schematic readme update. add check to make sure e2e folder exists to avoid deletion error. (#16506) * fix: add attribution. add check for e2e folder to fix error that shows when none present. * doc: update attribution * doc: remove extra
tag * doc: add link to plugins discussion * chore: remove unused sem-ver dependency. --- npm/cypress-schematic/README.md | 10 +++++++++- npm/cypress-schematic/package.json | 1 - npm/cypress-schematic/src/schematics/cypress/index.ts | 4 +++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/npm/cypress-schematic/README.md b/npm/cypress-schematic/README.md index 4b0b47c2b71f..3055fc30b8ab 100644 --- a/npm/cypress-schematic/README.md +++ b/npm/cypress-schematic/README.md @@ -138,6 +138,14 @@ Read our docs to learn more about all the [configuration options](http://on.cypr Read our docs to learn more about speeding up test execution in CI via [Cypress parallelization](http://on.cypress.io/parallelization) +## Questions or Issues? + +Visit our [plugins discussion](https://github.com/cypress-io/cypress/discussions/categories/plugins) to ask questions or report issues. + ## License -This project is licensed under an MIT license. \ No newline at end of file +This project is licensed under an MIT license. + +## Community Recognition + +Inspired by [@briebug/cypress-schematic](https://github.com/briebug/cypress-schematic). diff --git a/npm/cypress-schematic/package.json b/npm/cypress-schematic/package.json index 1ea327e63660..b034637b793f 100644 --- a/npm/cypress-schematic/package.json +++ b/npm/cypress-schematic/package.json @@ -35,7 +35,6 @@ "chai": "4.2.0", "cypress": "0.0.0-development", "mocha": "3.5.3", - "semantic-release": "^17.4.2", "typescript": "~4.2.4" }, "license": "MIT", diff --git a/npm/cypress-schematic/src/schematics/cypress/index.ts b/npm/cypress-schematic/src/schematics/cypress/index.ts index 554d161afc91..beb97c706ad6 100644 --- a/npm/cypress-schematic/src/schematics/cypress/index.ts +++ b/npm/cypress-schematic/src/schematics/cypress/index.ts @@ -129,7 +129,9 @@ function removeFiles (): Rule { .forEach((projectName) => { const projectRoot = projects[projectName].root - deleteDirectory(tree, `${projectRoot}/e2e`) + if (tree.exists(`e2e`)) { + deleteDirectory(tree, `${projectRoot}/e2e`) + } }) return tree.overwrite('./angular.json', JSON.stringify(angularJsonValue, null, 2))