-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from GeKorm/master
Update Howler, dev dependencies
- Loading branch information
Showing
11 changed files
with
57 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"extends": "airbnb/base", | ||
"extends": ["airbnb-base"], | ||
"env": { | ||
"mocha": true, | ||
"node": true | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ cache: | |
directories: | ||
- node_modules | ||
node_js: | ||
- "5" | ||
- "6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,26 +31,31 @@ | |
"author": "Joshua Comeau <[email protected]>", | ||
"license": "MIT", | ||
"dependencies": { | ||
"howler": "^1.1.28" | ||
"howler": "2.0.4" | ||
}, | ||
"devDependencies": { | ||
"babel": "^6.1.18", | ||
"babel-cli": "^6.2.0", | ||
"babel-core": "^6.2.1", | ||
"babel-eslint": "^5.0.0-beta4", | ||
"babel-istanbul": "^0.6.0", | ||
"babel-loader": "^6.2.1", | ||
"babel-plugin-add-module-exports": "^0.1.1", | ||
"babel-eslint": "^7.2.3", | ||
"babel-istanbul": "^0.12.2", | ||
"babel-loader": "^7.1.2", | ||
"babel-plugin-add-module-exports": "^0.2.1", | ||
"babel-plugin-transform-object-assign": "^6.3.13", | ||
"babel-preset-es2015": "^6.1.18", | ||
"babel-preset-stage-0": "^6.1.18", | ||
"chai": "^3.2.0", | ||
"babel-register": "^6.26.0", | ||
"chai": "^4.1.2", | ||
"coveralls": "^2.11.8", | ||
"eslint": "^1.10.3", | ||
"eslint-config-airbnb": "^3.1.0", | ||
"mocha": "^2.2.5", | ||
"sinon": "^1.17.2", | ||
"eslint": "^4.6.1", | ||
"eslint-config-airbnb": "^15.1.0", | ||
"eslint-plugin-import": "^2.7.0", | ||
"jsdom": "^11.2.0", | ||
"jsdom-global": "^3.0.2", | ||
"mocha": "^3.5.2", | ||
"sinon": "^3.2.1", | ||
"sinon-chai": "^2.8.0", | ||
"webpack": "^1.12.11" | ||
"webpack": "^3.5.6", | ||
"whatwg-fetch": "^2.0.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const { HowlerGlobal } = require('howler'); | ||
var jsdom = require('jsdom'); | ||
// Create a fake DOM for testing with $.ajax | ||
global.window = new jsdom.JSDOM().window; | ||
global.document = window.document; | ||
global.Audio = window.Audio; | ||
global.HTMLElement = window.HTMLElement; | ||
global.HTMLMediaElement = window.HTMLMediaElement; | ||
global.HTMLMediaElement.prototype.load = function () {}; | ||
|
||
global.HowlerGlobal = HowlerGlobal; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--require test/howlerFixSetup.js | ||
--compilers js:babel-register | ||
--require jsdom-global/register | ||
--require whatwg-fetch | ||
test/index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,21 @@ | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
output: { | ||
library: 'ReduxSounds', | ||
libraryTarget: 'umd' | ||
}, | ||
|
||
module: { | ||
loaders: [ | ||
rules: [ | ||
{ | ||
test: /\.js$/, | ||
loader: 'babel', | ||
exclude: /node_modules/, | ||
include: /src/ | ||
test: /\.js$/, | ||
use: { loader: 'babel-loader' }, | ||
exclude: /node_modules/, | ||
include: /src/ | ||
} | ||
] | ||
}, | ||
|
||
resolve: { | ||
extensions: ['', '.js'] | ||
extensions: ['.js'] | ||
} | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters