Build Status

Remix

Remix (aka. Browser-Solidity) is a browser-based Solidity compiler and IDE.

Visit https://remix.ethereum.org to use; it will always deliver the latest version.

Offline Usage

The gh-pages branch always has the latest stable build of Remix. It also contains a ZIP file with the entire build. Download it to use offline.

Note: it contains the latest release of Solidity available at the time of the packaging. No other compiler versions are supported.

Building

Many dependencies are only provided via npm:

npm install    # fetch dependencies
npm run build  # build application into build/app.js

Now point your browser to index.html to open the application.

Troubleshooting building

Here are some things to consider if you have trouble building the package.

  • Make sure that you have the correct version of node, npm and nvm. You can find the version that is tested on Travis CI by looking at the log in the build results.

Run:

node --version
npm --version
nvm --version
  • In Debian based OSes such as Ubuntu 14.04LTS you may need to run apt-get install build-essential. After installing build-essential run npm rebuild.

Unit Testing

Register new unit test files in test/index.js. The tests are written using tape. Run the tests via:

npm test

Browser Testing

To run the Selenium tests via Nightwatch serve the app through a local web server:

npm run serve # starts web server at localhost:8080

Then you will need to either:

  1. Have a Selenium server running locally on port 4444.
    • Run: npm run browser-test
  2. Or, install and run SauceConnect.
    • Run: sc -u <USERNAME> -k <ACCESS_KEY> (see .travis.yml for values)
    • Run: npm run browser-test-sc

Usage as a Chrome Extension

If you would like to use this as a Chrome extension, you must either build it first or pull from the gh-pages branch, both described above. After that, follow these steps:

  • Browse to chrome://extensions/
  • Make sure 'Developer mode' has been checked
  • Click 'Load unpacked extension...' to pop up a file-selection dialog
  • Select your browser-solidity folder


建立状态

Remix

Remix(又名。Browser-Solidity)是基于浏览器的Solidity编译器和IDE。

请访问 https://remix.ethereum.org 使用; 它将始终提供最新版本。

离线使用情况

gh-pages 分支始终具有最新的稳定版本的Remix。它还包含整个构建的ZIP文件。下载到离线使用。

注意:它包含最新版本的包装时可用的Solidity。不支持其他编译器版本。

建设

许多依赖项仅通过npm提供:

npm install    # fetch dependencies
npm run build  # build application into build/app.js

现在将浏览器指向 index.html 以打开应用程序。

疑难解答

如果您在构建软件包时遇到问题,请注意以下几点:

  • 确保您具有正确版本的 node npm nvm 。您可以通过查看构建结果的日志查找在Travis CI上测试的版本。

运行:

node –version
npm –version
nvm –version
  • 在基于Debian的操作系统(如Ubuntu 14.04LTS)中,您可能需要运行 apt-get install build-essential 。安装 build-essential 运行 npm rebuild

单元测试

test / index.js 中注册新的单元测试文件。测试使用磁带编写。通过以下方式运行测试:

npm test

浏览器测试

通过Nightwatch运行Selenium测试通过本地Web服务器为该应用程序提供服务:

npm run serve # starts web server at localhost:8080

然后,您将需要:

  1. Have a Selenium server running locally on port 4444.
    • Run: npm run browser-test
  2. Or, install and run SauceConnect.
    • Run: sc -u <USERNAME> -k <ACCESS_KEY> (see .travis.yml for values)
    • Run: npm run browser-test-sc

用作Chrome扩展程序

如果您希望将其用作Chrome扩展程序,则必须首先构建它,或者从上述的 gh-pages 分支中提取。 之后,请按照下列步骤操作:

  • 浏览至 chrome:// extensions /
  • 确保开发人员模式已被选中
  • 点击加载解压缩的扩展名…弹出一个文件选择对话框
  • 选择您的浏览器固体文件夹




相关问题推荐