Skip to content

Commit

Permalink
use browserify and watchify as peer and dev depedency (#16)
Browse files Browse the repository at this point in the history
* chore: use browserify and watchify as peer and dev depedency

* chore: notify users that browserify and watchify are mandatory for using persistify
  • Loading branch information
oroce authored and royriojas committed Mar 23, 2018
1 parent 6b87c8b commit 08c825a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions bin/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,13 @@ function run() {
bundle();
}

try {
require.resolve( "browserify" );
require.resolve( "watchify" );
} catch (x) {
// eslint-disable-next-line no-console
console.error( "browserify and watchify are mandatory, please install those!" );
process.exit(1);
}

run();
10 changes: 7 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,30 @@
],
"devDependencies": {
"babelify": "^6.1.3",
"browserify": "^16.1.1",
"changelogx": "^1.0.18",
"esbeautifier": "^6.1.8",
"eslinter": "^3.2.1",
"precommit": "^1.1.5",
"prepush": "^3.1.4",
"react": "^0.13.3",
"simplessy": "^1.0.2"
"simplessy": "^1.0.2",
"watchify": "^3.11.0"
},
"dependencies": {
"browserify": "^12.0.1",
"file-entry-cache": "^1.2.0",
"flat-cache": "^1.2.1",
"hash-string": "^1.0.0",
"jq-trim": "^0.1.1",
"outpipe": "^1.1.1",
"subarg": "^1.0.0",
"through2": "^2.0.0",
"watchify": "^3.6.1",
"xtend": "^4.0.0"
},
"peerDependencies": {
"browserify": "^16.1.1",
"watchify": "^3.11.0"
},
"changelogx": {
"ignoreRegExp": [
"BLD: Release",
Expand Down

0 comments on commit 08c825a

Please sign in to comment.