Skip to content

Commit

Permalink
Merge pull request #14928 from cypress-io/fix/dedupe-runner-css
Browse files Browse the repository at this point in the history
fix: scope scss glob imports in runner & reporter
  • Loading branch information
elevatebart committed Feb 5, 2021
2 parents cd30185 + ea4ff5a commit 2891a51
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion packages/reporter/src/main-runner.scss
Expand Up @@ -7,4 +7,7 @@
@import 'lib/shared';
@import '../../../node_modules/@reach/dialog/styles.css';
@import '../../ui-components/src/file-opener/file-opener';
@import './!(lib)*/**/!(main)*.scss';
// import all other scss files in src except if they are in lib
// or their file name is `selecor-playground` or `main`
// NOTA: no need to import scss files in their components
@import '../../reporter/src/!(lib)*/**/!(main)*.scss';
5 changes: 4 additions & 1 deletion packages/reporter/src/main.scss
Expand Up @@ -8,4 +8,7 @@
@import 'lib/shared';
@import '../../../node_modules/@reach/dialog/styles.css';
@import '../../ui-components/src/file-opener/file-opener';
@import '!(lib)*/**/!(main)*.scss';
// import all other scss files in src except if they are in lib
// or their file name is `selecor-playground` or `main`
// NOTA: no need to import scss files in their components
@import '../../reporter/src/!(lib)*/**/!(main)*.scss';
5 changes: 4 additions & 1 deletion packages/runner/src/main.scss
Expand Up @@ -4,7 +4,10 @@
$cy-tooltip-class: 'cy-tooltip';
@import '../../node_modules/@cypress/react-tooltip/dist/tooltip.scss';
@import 'lib/base';
@import '!(lib)*/**/!(selector-playground|main).scss';
// import all other scss files in src except if they are in lib
// or their file name is `main`
// NOTA: no need to import scss files in their components
@import '../../runner/src/!(lib)*/**/!(selector-playground|main).scss';

@import '../../ui-components/src/dropdown';
@import '../../reporter/src/main-runner';

4 comments on commit 2891a51

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2891a51 Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the linux x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/6.6.0/circle-develop-2891a511a386b8e6d2bdc4a45c92156514b511f0/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2891a51 Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 ia32 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/6.5.0/appveyor-develop-2891a511a386b8e6d2bdc4a45c92156514b511f0/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2891a51 Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppVeyor has built the win32 x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/6.5.0/appveyor-develop-2891a511a386b8e6d2bdc4a45c92156514b511f0/cypress.tgz

@cypress-bot
Copy link
Contributor

@cypress-bot cypress-bot bot commented on 2891a51 Feb 5, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Circle has built the darwin x64 version of the Test Runner.

Learn more about this pre-release platform-specific build at https://on.cypress.io/installing-cypress#Install-pre-release-version.

Run this command to install the pre-release locally:

npm install https://cdn.cypress.io/beta/npm/6.6.0/circle-develop-2891a511a386b8e6d2bdc4a45c92156514b511f0/cypress.tgz

Please sign in to comment.