Unverified Commit 33dee098 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #1157 from ethereum/remixonnpm

Fix deploy build folder to npm package
parents 21278fbd 0c589575
...@@ -4,7 +4,6 @@ node_modules ...@@ -4,7 +4,6 @@ node_modules
reports reports
soljson.js soljson.js
npm-debug.log* npm-debug.log*
babelify-src
package-lock.json package-lock.json
remix remix
.DS_Store .DS_Store
.vscode
node_modules
reports
npm-debug.log*
package-lock.json
remix
.DS_Store
#!/usr/bin/env node #!/usr/bin/env node
var httpServer = require('http-server') var httpServer = require('http-server')
var remixd = require('remixd')
var server = httpServer.createServer({ var server = httpServer.createServer({
root: __dirname + '/../' root: __dirname + '/../'
}); })
console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080') console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080')
server.listen(8080, '127.0.0.1', function () {}); server.listen(8080, '127.0.0.1', function () {})
var router = new remixd.Router()
router.start(__dirname)
...@@ -7,7 +7,7 @@ setupRemixd () { ...@@ -7,7 +7,7 @@ setupRemixd () {
cd contracts cd contracts
echo 'sharing folder: ' echo 'sharing folder: '
echo $PWD echo $PWD
node ../node_modules/remixd/src/main.js -s $PWD & ./../node_modules/remixd/bin/remixd -s $PWD &
cd .. cd ..
} }
......
{ {
"name": "remix-ide", "name": "remix-ide",
"version": "0.5.0", "version": "0.5.2-alpha.1",
"description": "Minimalistic browser-based Solidity IDE", "description": "Minimalistic browser-based Solidity IDE",
"devDependencies": { "devDependencies": {
"async": "^2.1.2", "async": "^2.1.2",
...@@ -145,6 +145,7 @@ ...@@ -145,6 +145,7 @@
"browsertest": "sleep 5 && npm run nightwatch_local", "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/", "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 && cd node_modules/solc && wget https://ethereum.github.io/solc-bin/soljson.js && cd ../../", "downloadsolc": "rimraf soljson.js && cd node_modules/solc && wget https://ethereum.github.io/solc-bin/soljson.js && cd ../../",
"downloadsolc_root": "wget https://ethereum.github.io/solc-bin/soljson.js",
"lint": "standard | notify-error", "lint": "standard | notify-error",
"make-mock-compiler": "node ci/makeMockCompiler.js", "make-mock-compiler": "node ci/makeMockCompiler.js",
"minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false", "minify": "uglifyjs --in-source-map inline --source-map-inline -c warnings=false",
...@@ -155,7 +156,7 @@ ...@@ -155,7 +156,7 @@
"nightwatch_remote_parallel": "nightwatch --config nightwatch.js --env safari,chrome,default", "nightwatch_remote_parallel": "nightwatch --config nightwatch.js --env safari,chrome,default",
"nightwatch_remote_safari": "nightwatch --config nightwatch.js --env safari", "nightwatch_remote_safari": "nightwatch --config nightwatch.js --env safari",
"onchange": "onchange build/app.js -- npm-run-all lint", "onchange": "onchange build/app.js -- npm-run-all lint",
"prepublish": "mkdirp build; npm-run-all -ls downloadsolc build", "prepublish": "mkdirp build; npm-run-all -ls downloadsolc_root build",
"remixd": "node ./node_modules/remixd/src/main.js -s ./contracts", "remixd": "node ./node_modules/remixd/src/main.js -s ./contracts",
"selenium": "execr --silent selenium-standalone start", "selenium": "execr --silent selenium-standalone start",
"selenium-install": "selenium-standalone install", "selenium-install": "selenium-standalone install",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment