Runnin g`ng add @cypress/schematic --defaults --skip-confirmation` in a new Angular 12 application results in a broken setup for cypress,
as the plugin file does not have any export.
When running `ng e2e`, Cypress complains with:
```
The plugins file is missing or invalid.
Your `pluginsFile` is set to `/Users/ced-pro/Code/angular/angular-cli-diff/ponyracer/cypress/plugins/index.js`, but either the file is missing, it contains a syntax error, or threw an error when required. The `pluginsFile` must be a `.js`, `.ts`, or `.coffee` file.
Or you might have renamed the extension of your `pluginsFile`. If that's the case, restart the test runner.
Please fix this, or set `pluginsFile` to `false` if a plugins file is not necessary for your project.
```
This commit reverts the changes to the plugin file made in 96a9db4204
and fixes the issue.
* move spec list to shared package
* render and hydrate spec list
* share base store
* deps
* set current spec
* render spec list in e2e runner
* lint
* add design system import
* add deps
* wip: layout
* use dynamic spec list width
* remove debugging code
* feature flag
* fix tests
* do not emit event when feature flag is OFF
* revert CSS
* revert more changes
* whitelist specListWidth
* add test selector
* update feature flag
* improve feature flag
* add tests for inline spec list
* allow using real onSpecWindow in runner integration tests
* update tests
* improve tests
* make feature flag more explicit
* move specs store to server
* customize spec directory in store
* share plugins via project base
* shared updated config
* share spec finding logic
* fix test
* share spec store code
* remove comment
* try fixing test
* move code around
* move more code
* share sendSpecList
* comment out line
* comments
* logs
* stub chokidar
* remove stub
* move spec watcher to later in the lifecycle
* refactor watcher
* stub out chikidar
* remove old code
* refactor
* update server-ct
* fix implementation
* fix implementation
* fix test
* update types
* add back check for config
* add comment
* make server base abstract
* fix type
* export interface
* move routes to TS
* update types
* types
* fix types
* correctly pass specs store in test
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
* update example build scripts
* remove old scaffolding relics
* update
* Fix some issues with scaffolding
* Correctly fix issues with scaffolding
* Replace old onboarding with new banner
* Add ability to remove scaffolded files
* Add banner for new users
* Update tests for new scaffolding
* Compare file sizes before removing
* Add tests for remove file
* Save when user opened cypress rather than boolean
* Update intro link and add tets for banners
* fix small issue
* Update design and copy of onboarding banners
* Update style of new spec file button
* Improve outline button active statE
* Update design of new project a bit more
* Fix specs list tests
* Update banner copy and layout
* Update banner copy and layout
* Switch to docs style alerts
* Fix testing logic
* Update banner styles a bit
* Update banners
* Add confirmation modal for delete specs
* Update tests and fix states
* Upgrade kitchensink dep
* Upgrade kitchen sink version and fix unit tests
* Update integration scaffolding test
* Add further description to warning modal
* Update test for new user and new project case
* Remove check to file tree when removing files
* Update kitchensink version
* Fix edge case where banner could appear when no files have been scaffolded
* Fix tests
* Update styling for 'note' when deleting files
* fix issue with path on windows
* Change remove command
* Fix rm dir
* Fix for windows
* Try to use appveyor to test
* appveyor please
* getting some feedback
* Why doesn't this work
* more info
* I have a feeling this works
* maybe its the other path
* please
* this is the one
* this is it
* this should work
* try reverting that change that might not be needed
* remove appveyor testing scaffolding
Co-authored-by: Jennifer Shehane <jennifer@cypress.io>