From 6eeebcb484d1e02d29a91db62c403cca44e0f114 Mon Sep 17 00:00:00 2001 From: yann300 Date: Tue, 27 Mar 2018 17:02:15 +0200 Subject: [PATCH] add remixd to remix-ide binary --- bin/remix-ide | 10 ++++++---- package.json | 5 ++++- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/bin/remix-ide b/bin/remix-ide index 176d10b71e..dc1dee70f9 100755 --- a/bin/remix-ide +++ b/bin/remix-ide @@ -1,14 +1,16 @@ #!/usr/bin/env node var httpServer = require('http-server') -// var remixd = require('remixd') removing remixd capabilities for now +var remixd = require('remixd') var server = httpServer.createServer({ root: __dirname + '/../' }) -console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080') +var folder = process.argv.length > 2 ? process.argv[2] : __dirname server.listen(8080, '127.0.0.1', function () {}) -// var router = new remixd.Router() -// router.start(__dirname) +var router = new remixd.Router() +router.start(folder) + +console.log('\x1b[33m%s\x1b[0m', 'Starting Remix IDE at http://localhost:8080 and sharing ' + folder) diff --git a/package.json b/package.json index 7a65e9706f..797f10ac35 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "remix-ide", - "version": "0.5.2-alpha.7", + "version": "0.5.2-alpha.8", "description": "Minimalistic browser-based Solidity IDE", "devDependencies": { "async": "^2.1.2", @@ -54,6 +54,9 @@ "yo-yo": "^1.2.2", "yo-yoify": "^3.1.0" }, + "dependencies": { + "remixd": "git+https://github.com/ethereum/remixd.git" + }, "repository": { "type": "git", "url": "git+https://github.com/ethereum/remix-ide.git"