-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
evilebottnawi
committed
Apr 13, 2017
1 parent
bbac06b
commit a5d2c96
Showing
5 changed files
with
129 additions
and
64 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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "browser-sync-dev-hot-webpack-plugin", | ||
"version": "0.0.3", | ||
"version": "0.1.0", | ||
"description": "Combines BrowserSync, webpack-dev-middleware, and webpack-hot-middleware into one plugin", | ||
"license": "MIT", | ||
"author": "itgalaxy <[email protected]>", | ||
|
@@ -29,15 +29,15 @@ | |
"url": "https://github.com/itgalaxy/browser-sync-dev-hot-webpack-plugin/issues" | ||
}, | ||
"files": [ | ||
"src", | ||
"!**/__tests__" | ||
"src" | ||
], | ||
"main": "src/BrowserSyncDevHotWebpackPlugin.js", | ||
"dependencies": { | ||
"deepmerge": "^1.3.2" | ||
}, | ||
"devDependencies": { | ||
"ajv-cli": "^1.1.0", | ||
"browser-sync":"^2.18.8", | ||
"eslint": "^3.15.0", | ||
"eslint-plugin-ava": "^4.0.0", | ||
"eslint-plugin-import": "^2.2.0", | ||
|
@@ -52,7 +52,10 @@ | |
"npm-run-all": "^4.0.0", | ||
"package-schema": "^1.0.0", | ||
"remark-cli": "^3.0.0", | ||
"remark-preset-lint-itgalaxy": "^6.0.0" | ||
"remark-preset-lint-itgalaxy": "^6.0.0", | ||
"webpack": "^1 || ^2 || ^2.0.0-beta || ^2.1.0-beta || ^2.2.0-rc.0", | ||
"webpack-dev-middleware": "^1.0.0", | ||
"webpack-hot-middleware": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"browser-sync": "^2.0.0", | ||
|
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 @@ | ||
'use strict'; | ||
|
||
module.exports.desire = (dependency, fallback) => { | ||
try { | ||
require.resolve(dependency); | ||
} catch (error) { // eslint-disable-line no-unused-vars | ||
return fallback; | ||
} | ||
|
||
return require(dependency); // eslint-disable-line global-require, import/no-dynamic-require | ||
}; |