* fix: restart dev-server on config change
* close dev server before cp is spawned
* fix test that is failing... not sure why
* cleanup unsued close events
* remove wait
* add back in close for unit tests
Co-authored-by: Tim Griesser <tgriesser10@gmail.com>
* removing vite-dev-server local dependency from react-vite-ts-configured system test
* moving some CRA examples over to use the object api for setup
* fixing issue where function API was broken by object API for cy config + devservers
* adding deeply nested react import to project-fixtures for cra
* finishes cutting over cypress/react for sys tests
* chore: adding circle for this feature branch
* chore: moving over many vue + vite system tests to use object API instead of function API (#21080)
* doing webpack-dev-server cutovers
* removing more webpack-dev-server refrences
* fixing snapshots
* bumping yarn.lock
* wip
* fix test
* fix assertion
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
* feat: removing all references for "fresh" dev servers (webpack-dev-server-fresh and vite-dev-server-fresh) (#21094)
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
* chore: add dev-servers as deps to server to be included in the binary (#21091)
* fix bad merge
* fix next types and webpack-dev-server- resolve
Co-authored-by: Lachlan Miller <lachlan.miller.1990@outlook.com>
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
Adds the new webpack-dev-server-fresh package, exposing the new object api. This package will eventually be merged with/replace the existing webpack-dev-server
closes: UNIFY-1267
* fix: do not encodeUri in webpack loader
* add tests
* fix test
* fix: use decodeURI in loader and add tests (#20593)
* add tests for non-unicode and specs with ...
* add more system tests
Co-authored-by: Zachary Williams <ZachJW34@gmail.com>
* fix: wire up scaffolded indexHtml to dev servers
* fix vite tests
* update vuecli-5, fix system tests
* fix vite build error and launchpad test
* remove only
* address comments, remove gitignores
* remove only
* feat: migrate to new webpack-dev-server public api
* fix: extract version check, and disallow minor releases matching `/3\./` with a starts with req.
* feat: support webpack-dev-server v4
* fix webpack warning causing overlay and types
* pin test dependency
* fix tests that were using incorrect wewbpack configuration
Co-authored-by: Ollie Relph <ollie@relph.me>
* wip
* wip: use async/await
* slowly refactor
* slowly refactor
* use typescript
* use async/await
* update spec
* do not use tap because bluebird sucks
* refactor
* update
* remove bluebird
* update
* remove then
* change to async/await to make it easier to reason about
* remove more bluebird
* no more bluebird
* remov ts ignore
* do not tap
* refactor
* simplify cfg
* move static methods to separate file
* update snapshot
* comment out test
* simplifying options merging
* update tests
* change order of options
* move code out of project-base
* update tests
* update tests
* type reporter
* simplify onWatchSettings function
* sep starting websockets and watching settings. reduce need to pass large cfg object
* move util functions out of project class
* move tests to new file
* update test
* move code around
* update tests
* remove need to pass options to getConfig
* fix tests
* separate get and init config
* set browser warnings in initializeConfig
* move Ct specific concerns to same function
* do not pass config to initializeSpecStore
* remove onOpen function
* improve types
* update typing errors
* update types
* types
* fix types
* update tests
* update tests
* fix tests
* update tests
* comment back in test
* update methods
* update types
* add defensive code against config.clientRoute
* do not use async
* update tests
* use same baseUrl for proxy regardless
* remove comment
* revert change to baseUrl
* fix: encodeURI to correctly load specs with white space
* fix the tests
* allow refresh page when spaes are in the path
Co-authored-by: ElevateBart <ledouxb@gmail.com>
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
* fix(webpack): allow load custom asset on windows
closes#16097
* fix: use a regexp and path.sep
* chore: avoid replacement when using posix filesystem
* fix: remove publicPath in react-scripts if it is present
* fix: remove publicPath in react-scripts if it is present
* fix: remove publicPath in webpack-dev-server regardless
* fix: add root path
* chore: revert
* fix: remove user base path
* remove unused function
* test: add unit test for make webpack config
* chore: make purpose for fake url more clear
* do not include local filesystem path in snapshot
* fix: Devtools unpredictable resets
* Remove cleaning up from webpack-dev-server
* Fix lint errors
* Get back observer
* fix: bring back cleanup (#15634)
* fix: wait for fw teardown to do html teardown
* fix: port responsibility of teardown to frameworks
* chore: add comments
* fix: typings
* fix: react unmount cannot be called in the right hook
* run dtslint
Co-authored-by: Barthélémy Ledoux <bart@cypress.io>
Co-authored-by: ElevateBart <ledouxb@gmail.com>
* fix: deliver webpack-dev-server new architecture
* fix: make vite-dev-server work
* fix: deliver react and vite-dev-server
* fix: deliver the vue2 package too
* fix: rollback react changes published to next