@ -6,30 +6,33 @@
"scripts" : {
"start" : "npm run dev" ,
"dev" : "gulp dev --debug" ,
"disc" : "gulp disc --debug" ,
"clear" : "rm -rf node_modules/eth-contract-metadata && rm -rf node_modules/eth-phishing-detect" ,
"dist" : "npm run clear && npm install && gulp dist" ,
"test" : "npm run lint && npm run test-unit && npm run test-integration" ,
"test-unit" : "METAMASK_ENV=test mocha --require test/helper.js --recursive \"test/unit/**/*.js\"" ,
"single-test" : "METAMASK_ENV=test mocha --require test/helper.js" ,
"test-integration" : "npm run buildMock && npm run buildCiUnits && karma start" ,
"test-coverage" : "nyc npm run test-unit && if [ $COVERALLS_REPO_TOKEN ]; then nyc report --reporter=text-lcov | coveralls; fi" ,
"ci" : "npm run lint && npm run test-coverage && npm run test-integration" ,
"lint" : "gulp lint" ,
"buildCiUnits" : "node test/integration/index.js" ,
"watch" : "mocha watch --recursive \"test/unit/**/*.js\"" ,
"genStates" : "node development/genStates.js" ,
"ui" : "npm run genStates && beefy ui-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./" ,
"ui" : "npm run test:flat:build:states && beefy ui-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./" ,
"mock" : "beefy mock-dev.js:bundle.js --live --open --index=./development/index.html --cwd ./" ,
"buildMock" : "npm run genStates && browserify ./mock-dev.js -o ./development/bundle.js" ,
"watch" : "mocha watch --recursive \"test/unit/**/*.js\"" ,
"mascara" : "node ./mascara/example/server" ,
"dist" : "npm run dist:clear && npm install && gulp dist" ,
"dist:clear" : "rm -rf node_modules/eth-contract-metadata && rm -rf node_modules/eth-phishing-detect" ,
"test" : "npm run lint && npm run test:coverage && npm run test:integration" ,
"test:unit" : "METAMASK_ENV=test mocha --require test/helper.js --recursive \"test/unit/**/*.js\"" ,
"test:single" : "METAMASK_ENV=test mocha --require test/helper.js" ,
"test:integration" : "npm run test:flat && npm run test:mascara" ,
"test:coverage" : "nyc npm run test:unit && npm run test:coveralls-upload" ,
"test:coveralls-upload" : "if [ $COVERALLS_REPO_TOKEN ]; then nyc report --reporter=text-lcov | coveralls; fi" ,
"test:flat" : "npm run test:flat:build && karma start test/flat.conf.js" ,
"test:flat:build" : "npm run test:flat:build:ui && npm run test:flat:build:tests" ,
"test:flat:build:tests" : "node test/integration/index.js" ,
"test:flat:build:states" : "node development/genStates.js" ,
"test:flat:build:ui" : "npm run test:flat:build:states && browserify ./mock-dev.js -o ./development/bundle.js" ,
"test:mascara" : "npm run test:mascara:build && karma start test/mascara.conf.js" ,
"test:mascara:build" : "mkdir -p dist/mascara && npm run test:mascara:build:ui && npm run test:mascara:build:background && npm run test:mascara:build:tests" ,
"test:mascara:build:ui" : "browserify mascara/test/test-ui.js -o dist/mascara/ui.js" ,
"test:mascara:build:background" : "browserify mascara/src/background.js -o dist/mascara/background.js" ,
"test:mascara:build:tests" : "browserify test/integration/lib/first-time.js -o dist/mascara/tests.js" ,
"lint" : "gulp lint" ,
"disc" : "gulp disc --debug" ,
"announce" : "node development/announcer.js" ,
"generateNotice" : "node notices/notice-generator.js" ,
"deleteNotice" : "node notices/notice-delete.js" ,
"mascara" : "node ./mascara/example/server" ,
"buildMascaraCi" : "browserify mascara/test/window-load.js -o mascara/test/bundle.js" ,
"buildMascaraSWCi" : "browserify mascara/src/background.js -o mascara/test/background.js" ,
"mascaraCi" : "npm run buildMascaraCi && npm run buildMascaraSWCi && node mascara/test/index.js" ,
"testMascara" : "cd mascara/test && npm run mascaraCi && testem ci -P 3"
"deleteNotice" : "node notices/notice-delete.js"
} ,
"browserify" : {
"transform" : [
@ -93,8 +96,8 @@
"iframe-stream" : "^3.0.0" ,
"inject-css" : "^0.1.1" ,
"jazzicon" : "^1.2.0" ,
"json-rpc-engine" : "^3.1 .0" ,
"json-rpc-middleware-stream" : "^1.0.0 " ,
"json-rpc-engine" : "^3.2 .0" ,
"json-rpc-middleware-stream" : "^1.0.1 " ,
"loglevel" : "^1.4.1" ,
"metamask-logo" : "^2.1.2" ,
"mississippi" : "^1.2.0" ,
@ -174,7 +177,6 @@
"jsdom" : "^11.1.0" ,
"jsdom-global" : "^3.0.2" ,
"jshint-stylish" : "~2.2.1" ,
"json-rpc-engine" : "^3.0.1" ,
"karma" : "^1.7.1" ,
"karma-chrome-launcher" : "^2.2.0" ,
"karma-cli" : "^1.0.1" ,