Skip to content

build: simplify karma configuration #2823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 30, 2017
Merged

Conversation

devversion
Copy link
Member

@devversion devversion commented Jan 26, 2017

  • No longer use ts-node to build the Karma configuration (just to be able to import the browser-providers)
  • Transformed the browser-providers into a JS file (with only the most necessary exports)
  • Separates the list of possible external browsers into an extra file (as in Material 1)

This change just removes unnecessary bloat from our build process and also makes running karma a bit faster, because we don't need to build TS on the fly.

Also it just makes the browser-providers, karma.conf.js and remote_browsers very clear.

@jelbourn I noticed this while trying to integrate coverage. And I also planned to remove unnecessary bloat of our build process (right now it's too confusing & big)

* No longer use ts-node to build the Karma configuration (just to be able to import the browser-providers)
* Transformed the browser-providers into a JS file (with only the most necessary exports)
* Separates the list of possible external browsers into an extra file (as in Material 1)

This change just removes unnecessary bloat from our build process and also makes running karma a bit faster, because we don't need to build TS on the fly.
Also it just makes the `browser-providers`, `karma.conf.js` and `remote_browsers` very clear.
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Jan 26, 2017
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

'Android5': { unitTest: {target: 'SL', required: false }},
'Safari7': { unitTest: {target: null, required: false }},
'Safari8': { unitTest: {target: 'BS', required: false }},
'Safari9': { unitTest: {target: 'BS', required: false }},
Copy link
Member

Choose a reason for hiding this comment

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

Idle thought: looks like Browserstack still doesn't support Safari 10, but SauceLabs does. I wonder if we should try adding that (in a follow-up PR)

Copy link
Member Author

Choose a reason for hiding this comment

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

Good idea. I will take a look at this once this PR is merged.

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker and removed pr: needs review labels Jan 26, 2017
@kara kara merged commit d445007 into angular:master Jan 30, 2017
@devversion devversion deleted the build/no-ts-node branch January 31, 2017 09:57
devversion added a commit to devversion/material2 that referenced this pull request Jan 31, 2017
* This adds Safari v10 (from Saucelabs) to the browser-providers and marks it as an optional run in the CI.

As requested in angular#2823
tinayuangao pushed a commit that referenced this pull request Feb 6, 2017
* This adds Safari v10 (from Saucelabs) to the browser-providers and marks it as an optional run in the CI.

As requested in #2823
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants