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

Run test suite on TravisCI and fix Node 4 compatibility #58

Merged
merged 6 commits into from
Oct 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: node_js
node_js:
- 4
- 6
- 8
- 10

script:
- yarn test
5 changes: 4 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ module.exports = {
}());`;
},

serverMiddleware: function({ options, app }) {
serverMiddleware: function(config) {
let options = config.options;
let app = config.app;

let self = this;
// maintaining `baseURL` for backwards compatibility. See: http://emberjs.com/blog/2016/04/28/baseURL.html
let baseURL = options.liveReloadBaseUrl || options.rootURL || options.baseURL;
Expand Down
7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,17 @@
"author": "Robert Jackson",
"main": "index.js",
"scripts": {
"changelog": "lerna-changelog"
"changelog": "lerna-changelog",
"test": "qunit tests"
},
"dependencies": {
"clean-base-url": "^1.0.0",
"ember-cli-version-checker": "^2.1.2"
},
"devDependencies": {
"express": "^4.16.3",
"lerna-changelog": "0.8.0",
"qunit": "^2.6.1"
"lerna-changelog": "^0.7.0",
"qunit": "~2.6.1"
},
"changelog": {
"repo": "ember-cli/ember-cli-inject-live-reload",
Expand Down
2 changes: 2 additions & 0 deletions tests/inject-live-reload-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
'use strict';

const describe = QUnit.module;
const it = QUnit.test;
const express = require('express');
Expand Down
Loading