From 67af024a1b9d0de84e83fab5a00a929ee3cf8e0e Mon Sep 17 00:00:00 2001 From: oroce Date: Tue, 20 Mar 2018 17:00:13 +0100 Subject: [PATCH 1/2] chore: use browserify and watchify as peer and dev depedency --- package.json | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index f870499..fcbef08 100644 --- a/package.json +++ b/package.json @@ -38,16 +38,17 @@ ], "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", @@ -55,9 +56,12 @@ "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", From c523745310edb7a92c9449a40c6de373bc75911c Mon Sep 17 00:00:00 2001 From: oroce Date: Thu, 22 Mar 2018 09:56:43 +0100 Subject: [PATCH 2/2] chore: notify users that browserify and watchify are mandatory for using persistify --- bin/cmd.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/cmd.js b/bin/cmd.js index 52c12f8..9de57fb 100755 --- a/bin/cmd.js +++ b/bin/cmd.js @@ -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();