Skip to content
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

Chrome Headless, eslint upgrade, npm scripts #87

Merged
merged 12 commits into from
Dec 15, 2017
Merged

Chrome Headless, eslint upgrade, npm scripts #87

merged 12 commits into from
Dec 15, 2017

Conversation

muan
Copy link
Contributor

@muan muan commented Dec 14, 2017

  1. Remove phantomjs and add Karma
  2. Remove makefile and use npm scripts
  3. Upgrade eslint-plugin-github and prettify

💚 https://travis-ci.org/github/time-elements/builds/316327437

cc @github/web-systems

Copy link
Contributor

@koddsson koddsson left a comment

Choose a reason for hiding this comment

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

This is awesome!!

Copy link
Contributor

@mislav mislav left a comment

Choose a reason for hiding this comment

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

This is awesome!

browsers: ['ChromeHeadless'],
autoWatch: false,
singleRun: true,
concurrency: Infinity
Copy link
Contributor

Choose a reason for hiding this comment

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

…and beyond! ✊

config.set({
frameworks: ['mocha', 'chai'],
files: [
'../dist/time-elements.js',
Copy link
Contributor

Choose a reason for hiding this comment

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

We used to load the "legacy" file for tests, now we load the main one. I suspect this was because PhantomJS was unable to handle the non-legacy build.

However, if we load this test suite in an older browser, such as IE 11, would it work with this configuration?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I don't think it would. Since the legacy file is the main file on the module, I have changed this here to test with the legacy build instead.

.travis.yml Outdated
@@ -1,5 +1,2 @@
language: node_js
node_js: 6.9.1 # latest LTS
Copy link
Contributor

Choose a reason for hiding this comment

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

Setting this to "node" will give us the latest version.

node_js:
  - "node"

.travis.yml Outdated
@@ -1,5 +1,2 @@
language: node_js
node_js: 6.9.1 # latest LTS
cache:
directories:
- node_modules/phantomjs-prebuilt
Copy link
Contributor

Choose a reason for hiding this comment

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

@muan muan merged commit a13a1fb into master Dec 15, 2017
@muan muan deleted the muan/karma branch December 15, 2017 06:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants