Skip to content

Commit

Permalink
feat: create async wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
alaibe committed Feb 12, 2019
1 parent c1d84fe commit bc24598
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 25 deletions.
1 change: 1 addition & 0 deletions packages/embark-async-wrapper/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
## Embark Async Wrapper
59 changes: 59 additions & 0 deletions packages/embark-async-wrapper/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
"name": "embark-async-wrapper",
"version": "4.0.0-beta.0",
"author": "Iuri Matias <iuri.matias@gmail.com>",
"contributors": [],
"description": "Embark is a framework that allows you to easily develop and deploy DApps",
"homepage": "https://embark.status.im/",
"keywords": [
"blockchain",
"dapps",
"ethereum",
"ipfs",
"serverless",
"solc",
"solidity"
],
"license": "MIT",
"repository": "github:embark-framework/embark",
"main": "./dist/index.js",
"scripts": {
"build": "cross-env BABEL_ENV=node babel src --extensions \".js,.ts\" --out-dir dist --root-mode upward --source-maps",
"ci": "npm run qa",
"clean": "npx rimraf dist embark-*.tgz package",
"lint": "npm-run-all lint:*",
"lint:js": "eslint src/",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"package": "npm pack",
"qa": "npm-run-all lint build package",
"reset": "npm run clean && npx rimraf node_modules",
"start": "npm run watch",
"typecheck": "tsc",
"watch": "run-p watch:*",
"watch:build": "npm run build -- --verbose --watch",
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
},
"eslintConfig": {
"extends": "../../.eslintrc.json"
},
"dependencies": {
"async": "2.6.1",
"@babel/runtime-corejs2": "7.3.1"
},
"devDependencies": {
"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"cross-env": "5.2.0",
"eslint": "5.7.0",
"npm-run-all": "4.1.5",
"rimraf": "2.6.3",
"tslint": "5.11.0",
"typescript": "3.3.1"
},
"engines": {
"node": ">=8.12.0",
"npm": ">=6.4.1",
"yarn": ">=1.12.3"
}
}

File renamed without changes.
4 changes: 4 additions & 0 deletions packages/embark-async-wrapper/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../tsconfig.json",
"include": ["src/**/*"]
}
3 changes: 3 additions & 0 deletions packages/embark-async-wrapper/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../tslint.json"
}
9 changes: 2 additions & 7 deletions packages/embark-compiler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"ci": "npm run qa",
"clean": "npx rimraf dist embark-*.tgz package",
"lint": "npm-run-all lint:*",
"lint:js": "eslint src/",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"package": "npm pack",
"qa": "npm-run-all lint typecheck build package",
Expand All @@ -33,18 +32,14 @@
"watch:build": "npm run build -- --verbose --watch",
"watch:typecheck": "npm run typecheck -- --preserveWatchOutput --watch"
},
"eslintConfig": {
"extends": "../../.eslintrc.json"
},
"dependencies": {
"async": "2.6.1",
"@babel/runtime-corejs2": "7.3.1"
"@babel/runtime-corejs2": "7.3.1",
"embark-async-wrapper": "4.0.0-beta.0"
},
"devDependencies": {
"@babel/cli": "7.2.3",
"@babel/core": "7.2.2",
"cross-env": "5.2.0",
"eslint": "5.7.0",
"npm-run-all": "4.1.5",
"rimraf": "2.6.3",
"tslint": "5.11.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/embark-compiler/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {Callback, CompilerPluginObject, Embark, Plugins} from "embark";
import {__} from "i18n";

const async = require("./utils/async_extend.js");
const async = require("embark-async-wrapper");

class Compiler {
private logger: any;
Expand Down
2 changes: 1 addition & 1 deletion packages/embark-vyper/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
"extends": "../../.eslintrc.json"
},
"dependencies": {
"async": "2.6.1",
"@babel/runtime-corejs2": "7.3.1",
"embark-async-wrapper": "4.0.0-beta.0",
"shelljs": "0.5.3"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion packages/embark-vyper/src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
let async = require('./utils/async_extend.js');
const async = require("embark-async-wrapper");
const shelljs = require('shelljs');
const path = require('path');

Expand Down
15 changes: 0 additions & 15 deletions packages/embark-vyper/src/utils/async_extend.js

This file was deleted.

0 comments on commit bc24598

Please sign in to comment.