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

chore: Update to use plugin generator v7.0.2 #28

Merged
merged 14 commits into from
Aug 29, 2018

Conversation

brandonocasey
Copy link
Contributor

Changes

  • Some of the files were marked as executable, which was weird so I removed that permission.
  • Since this pr updates to a new version of vjsstandard several files had to be fixed, all the fixing was done automatically.
  • You can easily see where this plugin builds differently than existing plugins, by looking at the karma and rollup script

Copy link
Member

@misteroneill misteroneill left a comment

Choose a reason for hiding this comment

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

Looks good to me. Source changes are all whitespace.

@misteroneill misteroneill changed the title Chore/generator v7 chore: Update to use plugin generator v7.0.2 Aug 28, 2018
// which means the travis config in this repo is also
// different
config.plugins.push('karma-coverage');
config.browsers = ['ChromeHeadless'];
Copy link
Contributor

Choose a reason for hiding this comment

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

We can use the vjs karma defaults here to be more consistent (and update the travis file). This was only running in headless Chrome because it's a relatively vanilla library.

Copy link
Contributor Author

@brandonocasey brandonocasey Aug 28, 2018

Choose a reason for hiding this comment

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

OK I will revert this and the travis file to the defaults

.travis.yml Outdated
addons:
chrome: stable
firefox: latest
apt:
Copy link
Contributor

Choose a reason for hiding this comment

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

You should be able to simplify this to chrome: stable

.travis.yml Outdated
before_script:
- export CHROME_BIN=/usr/bin/google-chrome
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this still necessary or does the vjs karma config run on normal Chrome and not headless by default?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure, let me check

package.json Outdated
"precommit": "lint-staged"
"prepublish": "not-in-install && npm run build || in-install && npm-merge-driver install",
"precommit": "lint-staged",
"posttest": "shx cat test/dist/coverage/text.txt"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think files related to the build should live outside of dist/ so they don't get published to npm. Perhaps package.files should only have dist as well?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

test/dist is where we currently build the test bundle, and we already gitignore it. I think it made logical sense to put coverage next to the test dist as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Misread test/dist as dist/, ignore my comment

.travis.yml Outdated
language: node_js
node_js:
- 8
- 'lts/*'
Copy link
Contributor

Choose a reason for hiding this comment

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

@brandonocasey
Copy link
Contributor Author

@forbesjo ready for a re-review when you have the time, should have everything we talked about. Thanks for digging into optimizations for the travis config.

@brandonocasey brandonocasey merged commit bd2b126 into master Aug 29, 2018
@brandonocasey brandonocasey deleted the chore/generator-v7 branch August 29, 2018 16:32
brandonocasey added a commit that referenced this pull request Aug 29, 2018
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.

3 participants