Merge pull request #358 from ethereum/asyncawait

support async / await
pull/1/head
chriseth 8 years ago committed by GitHub
commit 76a7f6b9a0
  1. 6
      .babelrc
  2. 1
      .gitignore
  3. 10
      package.json
  4. 2
      test/compiler-test.js
  5. 2
      test/gist-handler-test.js
  6. 2
      test/query-params-test.js

@ -1,5 +1,6 @@
{
"plugins": ["check-es2015-constants",
"plugins": ["fast-async",
"check-es2015-constants",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoped-functions",
"transform-es2015-block-scoping",
@ -15,7 +16,6 @@
"transform-es2015-shorthand-properties",
"transform-es2015-spread",
"transform-es2015-sticky-regex",
"transform-es2015-template-literals",
"transform-es2015-unicode-regex",
"transform-regenerator"]
]
}

1
.gitignore vendored

@ -4,3 +4,4 @@ node_modules
reports
soljson.js
npm-debug.log*
babelify-src

@ -10,16 +10,17 @@
"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": "mkdir -p build; browserify src/index.js -g yo-yoify -o build/app.js; babel build/app.js --out-file build/app.js",
"build": "mkdir -p 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 soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js",
"lint": "standard",
"serve": "http-server .",
"test": "node test/index.js"
"test": "standard; babel src --out-dir babelify-src; node test/index.js"
},
"devDependencies": {
"async": "^2.1.2",
"babel-cli": "^6.16.0",
"babel-eslint": "^7.1.1",
"babel-plugin-check-es2015-constants": "^6.8.0",
"babel-plugin-transform-es2015-arrow-functions": "^6.8.0",
"babel-plugin-transform-es2015-block-scoped-functions": "^6.8.0",
@ -39,6 +40,7 @@
"babel-plugin-transform-es2015-template-literals": "^6.8.0",
"babel-plugin-transform-es2015-unicode-regex": "^6.11.0",
"babel-plugin-transform-regenerator": "^6.16.1",
"babelify": "^7.3.0",
"brace": "^0.8.0",
"browserify": "^13.0.0",
"csslint": "^1.0.2",
@ -49,6 +51,7 @@
"ethereumjs-tx": "^1.1.1",
"ethereumjs-util": "^4.4.0",
"ethereumjs-vm": "^2.0.1",
"fast-async": "^6.1.2",
"http-server": "0.9.0",
"jquery": "^2.2.0",
"js-base64": "^2.1.9",
@ -81,6 +84,7 @@
"build/",
"src/mode-solidity.js",
"soljson.js"
]
],
"parser": "babel-eslint"
}
}

@ -2,7 +2,7 @@
var test = require('tape')
var Compiler = require('../src/app/compiler')
var Compiler = require('../babelify-src/app/compiler')
test('compiler.compile smoke', function (t) {
t.plan(1)

@ -2,7 +2,7 @@
var test = require('tape')
var GistHandler = require('../src/app/gist-handler')
var GistHandler = require('../babelify-src/app/gist-handler')
test('gistHandler.handleLoad with no gist param', function (t) {
t.plan(1)

@ -2,7 +2,7 @@
var test = require('tape')
var QueryParams = require('../src/app/query-params')
var QueryParams = require('../babelify-src/app/query-params')
test('queryParams.get', function (t) {
t.plan(2)

Loading…
Cancel
Save