ADD browserify livereload & refactor npm scripts
Showing
.babelrc
deleted
100644 → 0
... | @@ -3,24 +3,13 @@ | ... | @@ -3,24 +3,13 @@ |
"name": "browser-solidity", | "name": "browser-solidity", | ||
"version": "0.0.0", | "version": "0.0.0", | ||
"description": "Minimalistic browser-based Solidity IDE", | "description": "Minimalistic browser-based Solidity IDE", | ||
"scripts": { | |||
"browser-test": "nightwatch --config nightwatch.js --env local", | |||
"browser-test-remote-chrome": "nightwatch --config nightwatch.js --env chrome", | |||
"browser-test-remote-firefox": "nightwatch --config nightwatch.js --env default", | |||
"browser-test-remote-ie": "nightwatch --config nightwatch.js --env ie", | |||
"browser-test-remote-safari": "nightwatch --config nightwatch.js --env safari", | |||
"browser-test-remote-parallel": "nightwatch --config nightwatch.js --env safari,ie,default,chrome", | |||
"build": "mkdirp build; browserify src/index.js -g yo-yoify -o build/app.js -t [ babelify ]; babel --plugins=transform-es2015-template-literals build/app.js --out-file build/app.js", | |||
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/", | |||
"downloadsolc": "rm -f soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js", | |||
"lint": "standard", | |||
"serve": "http-server .", | |||
"test": "standard; babel src --out-dir babelify-src; node test/index.js" | |||
}, | |||
"devDependencies": { | "devDependencies": { | ||
"async": "^2.1.2", | "async": "^2.1.2", | ||
"babel-cli": "^6.16.0", | "babel-cli": "^6.16.0", | ||
"babel-eslint": "^7.1.1", | "babel-eslint": "^7.1.1", | ||
"babel-plugin-check-es2015-constants": "^6.8.0", | "babel-plugin-check-es2015-constants": "^6.8.0", | ||
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0", | "babel-plugin-transform-es2015-arrow-functions": "^6.8.0", | ||
"babel-plugin-transform-es2015-block-scoped-functions": "^6.8.0", | "babel-plugin-transform-es2015-block-scoped-functions": "^6.8.0", | ||
... | @@ -41,30 +30,44 @@ | ... | @@ -41,30 +30,44 @@ |
"babel-plugin-transform-es2015-unicode-regex": "^6.11.0", | "babel-plugin-transform-es2015-unicode-regex": "^6.11.0", | ||
"babel-plugin-transform-regenerator": "^6.16.1", | "babel-plugin-transform-regenerator": "^6.16.1", | ||
"babel-polyfill": "^6.22.0", | "babel-polyfill": "^6.22.0", | ||
"babel-plugin-yo-yoify": "^0.3.3", | |||
"babel-preset-es2015": "^6.24.0", | |||
"babelify": "^7.3.0", | "babelify": "^7.3.0", | ||
"brace": "^0.8.0", | "brace": "^0.8.0", | ||
"browserify": "^13.0.0", | "browserify": "^13.0.0", | ||
"browserify-reload": "^1.0.3", | |||
"csslint": "^1.0.2", | "csslint": "^1.0.2", | ||
"ethereum-remix": "https://github.com/ethereum/remix", | "ethereum-remix": "https://github.com/ethereum/remix", | ||
"ethereumjs-abi": "https://github.com/ethereumjs/ethereumjs-abi", | "ethereumjs-abi": "https://github.com/ethereumjs/ethereumjs-abi", | ||
"ethereumjs-block": "^1.2.2", | "ethereumjs-block": "https://github.com/ethereumjs/ethereumjs-block", | ||
"ethereumjs-tx": "^1.1.1", | "ethereumjs-tx": "https://github.com/ethereumjs/ethereumjs-tx", | ||
"ethereumjs-util": "^4.4.0", | "ethereumjs-util": "https://github.com/ethereumjs/ethereumjs-util", | ||
"ethereumjs-vm": "^2.0.1", | "ethereumjs-vm": "https://github.com/ethereumjs/ethereumjs-vm", | ||
"execr": "^1.0.1", | |||
"exorcist": "^0.4.0", | |||
"fast-async": "^6.1.2", | "fast-async": "^6.1.2", | ||
"http-server": "0.9.0", | "http-server": "0.9.0", | ||
"jquery": "^2.2.0", | "jquery": "^2.2.0", | ||
"js-base64": "^2.1.9", | "js-base64": "^2.1.9", | ||
"mkdirp": "^0.5.1", | "mkdirp": "^0.5.1", | ||
"nightwatch": "^0.9.3", | "nightwatch": "^0.9.3", | ||
"notify-error": "^1.2.0", | |||
"npm-run-all": "^4.0.2", | |||
"onchange": "^3.2.1", | |||
"rimraf": "^2.6.1", | |||
"selenium-standalone": "^6.0.1", | |||
"solc": "https://github.com/ethereum/solc-js", | "solc": "https://github.com/ethereum/solc-js", | ||
"standard": "^8.5.0", | "standard": "^8.5.0", | ||
"swarmgw": "^0.2.0", | "swarmgw": "^0.2.0", | ||
"tape": "^4.5.1", | "tape": "^4.5.1", | ||
"uglify-js": "^2.8.16", | |||
"uglifyify": "^3.0.4", | |||
"watchify": "^3.9.0", | |||
"web3": "^0.18.0", | "web3": "^0.18.0", | ||
"webworkify": "^1.2.1", | "webworkify": "^1.2.1", | ||
"yo-yo": "^1.2.2", | "yo-yo": "^1.2.2" | ||
"yo-yoify": "^3.3.0" | |||
}, | }, | ||
"repository": { | "repository": { | ||
"type": "git", | "type": "git", | ||
... | @@ -88,5 +91,74 @@ | ... | @@ -88,5 +91,74 @@ |
"soljson.js" | "soljson.js" | ||
], | ], | ||
"parser": "babel-eslint" | "parser": "babel-eslint" | ||
}, | |||
"babel": { | |||
"plugins": [ | |||
"transform-es2015-template-literals", | |||
"transform-es2015-literals", | |||
"transform-es2015-function-name", | |||
"transform-es2015-arrow-functions", | |||
"transform-es2015-block-scoped-functions", | |||
"transform-es2015-classes", | |||
"transform-es2015-object-super", | |||
"transform-es2015-shorthand-properties", | |||
"transform-es2015-duplicate-keys", | |||
"transform-es2015-computed-properties", | |||
"transform-es2015-for-of", | |||
"transform-es2015-sticky-regex", | |||
"transform-es2015-unicode-regex", | |||
"check-es2015-constants", | |||
"transform-es2015-spread", | |||
"transform-es2015-parameters", | |||
"transform-es2015-destructuring", | |||
"transform-es2015-block-scoping" | |||
] | |||
}, | |||
"browserify": { | |||
"transform": [ | |||
["babelify", { | |||
"sourceMapsAbsolute": false, | |||
"sourceMaps": true, | |||
"plugins": [ | |||
["fast-async", { | |||
"runtimePattern": null, | |||
"compiler": { | |||
"es7": true, | |||
"noRuntime": true, | |||
"promises": true, | |||
"wrapAwait": true | |||
} | |||
}], | |||
["yo-yoify"] | |||
], | |||
"presets": ["es2015"] | |||
}], | |||
["uglifyify"] | |||
] | |||
}, | |||
"scripts": { | |||
"build": "browserify src/index.js -d | npm run minify --silent | npm run sourcemap", | |||
"browsertest": "sleep 5 && npm run nightwatch_local", | |||
"csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/", | |||
"downloadsolc": "rimraf soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js", | |||
"lint": "standard | notify-error", | |||
"make-mock-compiler": "node ci/makeMockCompiler.js", | |||
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false", | |||
"nightwatch_local": "nightwatch --config nightwatch.js --env local", | |||
"nightwatch_remote_chrome": "nightwatch --config nightwatch.js --env chrome", | |||
"nightwatch_remote_firefox": "nightwatch --config nightwatch.js --env default", | |||
"nightwatch_remote_ie": "nightwatch --config nightwatch.js --env ie", | |||
"nightwatch_remote_parallel": "nightwatch --config nightwatch.js --env ie,safari,chrome,default", | |||
"nightwatch_remote_safari": "nightwatch --config nightwatch.js --env safari", | |||
"onchange": "onchange build/app.js -- npm-run-all lint", | |||
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc make-mock-compiler build", | |||
"selenium": "execr --silent selenium-standalone start", | |||
"selenium-install": "selenium-standalone install", | |||
"serve": "execr --silent http-server .", | |||
"sourcemap": "exorcist --root ../ build/app.js.map > build/app.js", | |||
"start": "npm-run-all -lpr serve watch onchange", | |||
"test": "standard; npm run csslint; node test/index.js", | |||
"test-browser": "npm-run-all -lpr selenium serve browsertest", | |||
"watch": "watchify src/index.js -dv --delay 0 -p browserify-reload -o '| npm run sourcemap'" | |||
} | } | ||
} | } |
Please
register
or
sign in
to comment