From 30bc69b2147122147e4ded09767b1c1bfc90a937 Mon Sep 17 00:00:00 2001 From: boryslevytskyi Date: Sat, 13 May 2017 18:51:33 +0300 Subject: [PATCH] add e2e npm script --- npm-debug.log | 45 --------------------------------------------- package.json | 3 ++- 2 files changed, 2 insertions(+), 46 deletions(-) delete mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index e95edc6..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,45 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'run', 'serv' ] -2 info using npm@3.10.10 -3 info using node@v6.10.0 -4 verbose run-script [ 'preserv', 'serv', 'postserv' ] -5 info lifecycle BitwiseCmd@1.0.0~preserv: BitwiseCmd@1.0.0 -6 silly lifecycle BitwiseCmd@1.0.0~preserv: no script for preserv, continuing -7 info lifecycle BitwiseCmd@1.0.0~serv: BitwiseCmd@1.0.0 -8 verbose lifecycle BitwiseCmd@1.0.0~serv: unsafe-perm in lifecycle true -9 verbose lifecycle BitwiseCmd@1.0.0~serv: PATH: /usr/local/lib/node_modules/npm/bin/node-gyp-bin:/Users/boryslevytskyi/git/BitwiseCmd/node_modules/.bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/share/dotnet:/Library/Frameworks/Mono.framework/Versions/Current/Commands -10 verbose lifecycle BitwiseCmd@1.0.0~serv: CWD: /Users/boryslevytskyi/git/BitwiseCmd -11 silly lifecycle BitwiseCmd@1.0.0~serv: Args: [ '-c', 'webpack-dev-server --content-base ./src' ] -12 silly lifecycle BitwiseCmd@1.0.0~serv: Returned: code: 1 signal: null -13 info lifecycle BitwiseCmd@1.0.0~serv: Failed to exec serv script -14 verbose stack Error: BitwiseCmd@1.0.0 serv: `webpack-dev-server --content-base ./src` -14 verbose stack Exit status 1 -14 verbose stack at EventEmitter. (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:255:16) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at EventEmitter.emit (events.js:191:7) -14 verbose stack at ChildProcess. (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:40:14) -14 verbose stack at emitTwo (events.js:106:13) -14 verbose stack at ChildProcess.emit (events.js:191:7) -14 verbose stack at maybeClose (internal/child_process.js:877:16) -14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) -15 verbose pkgid BitwiseCmd@1.0.0 -16 verbose cwd /Users/boryslevytskyi/git/BitwiseCmd -17 error Darwin 16.5.0 -18 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "run" "serv" -19 error node v6.10.0 -20 error npm v3.10.10 -21 error code ELIFECYCLE -22 error BitwiseCmd@1.0.0 serv: `webpack-dev-server --content-base ./src` -22 error Exit status 1 -23 error Failed at the BitwiseCmd@1.0.0 serv script 'webpack-dev-server --content-base ./src'. -23 error Make sure you have the latest version of node.js and npm installed. -23 error If you do, this is most likely a problem with the BitwiseCmd package, -23 error not with npm itself. -23 error Tell the author that this fails on your system: -23 error webpack-dev-server --content-base ./src -23 error You can get information on how to open an issue for this project with: -23 error npm bugs BitwiseCmd -23 error Or if that isn't available, you can get their info via: -23 error npm owner ls BitwiseCmd -23 error There is likely additional logging output above. -24 verbose exit [ 1, true ] diff --git a/package.json b/package.json index 105da44..a28c4b2 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,8 @@ "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "serv": "webpack-dev-server --content-base ./src" + "serv": "webpack-dev-server --content-base ./src", + "e2e": "protractor ./tests/e2e.chrome.js --params.appUrl='http://localhost:8080/#clear'" }, "repository": { "type": "git",