Skip to content

Commit 948956a

Browse files
committed
chore: make basic-pipeline an optional plugin
chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin chore: make basic-pipeline an optional plugin fixes address code review fix linter issue fix missing param fix binding remove pipeline warning remove unused var
1 parent db8282c commit 948956a

File tree

15 files changed

+25
-28
lines changed

15 files changed

+25
-28
lines changed

dapps/templates/boilerplate/embark.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"embark-geth": {},
1919
"embark-parity": {},
2020
"embark-profiler": {},
21-
"embark-graph": {}
21+
"embark-graph": {},
22+
"embark-basic-pipeline": {}
2223
},
2324
"options": {
2425
"solc": {

dapps/templates/boilerplate/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"devDependencies": {
3535
"embark": "^5.3.0-nightly.9",
36+
"embark-basic-pipeline": "^5.3.0-nightly.7",
3637
"embark-geth": "^5.3.0-nightly.9",
3738
"embark-graph": "^5.3.0-nightly.7",
3839
"embark-ipfs": "^5.3.0-nightly.9",

dapps/templates/demo/embark.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"embark-geth": {},
1919
"embark-parity": {},
2020
"embark-profiler": {},
21-
"embark-graph": {}
21+
"embark-graph": {},
22+
"embark-basic-pipeline": {}
2223
},
2324
"options": {
2425
"solc": {

dapps/templates/demo/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"bootstrap": "4.3.1",
3636
"classnames": "2.2.6",
3737
"embark": "^5.3.0-nightly.9",
38+
"embark-basic-pipeline": "^5.3.0-nightly.7",
3839
"embark-geth": "^5.3.0-nightly.9",
3940
"embark-graph": "^5.3.0-nightly.7",
4041
"embark-ipfs": "^5.3.0-nightly.9",

dapps/tests/app/embark.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"embark-parity": {},
2626
"embark-profiler": {},
2727
"embark-graph": {},
28-
"embark-dapp-test-service": {}
28+
"embark-dapp-test-service": {},
29+
"embark-basic-pipeline": {}
2930
},
3031
"options": {
3132
"solc": {

dapps/tests/app/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"devDependencies": {
44
"bootstrap": "3.4.1",
55
"embark": "^5.3.0-nightly.9",
6+
"embark-basic-pipeline": "^5.3.0-nightly.7",
67
"embark-dapp-test-service": "^5.2.3",
78
"embark-geth": "^5.3.0-nightly.9",
89
"embark-graph": "^5.3.0-nightly.7",

dapps/tests/contracts/embark.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"embark-geth": {},
1919
"embark-parity": {},
2020
"embark-profiler": {},
21-
"embark-graph": {}
21+
"embark-graph": {},
22+
"embark-basic-pipeline": {}
2223
}
2324
}

dapps/tests/contracts/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"description": "Test DApp for integration testing purposes",
33
"devDependencies": {
44
"embark": "^5.3.0-nightly.9",
5+
"embark-basic-pipeline": "^5.3.0-nightly.7",
56
"embark-geth": "^5.3.0-nightly.9",
67
"embark-graph": "^5.3.0-nightly.7",
78
"embark-ipfs": "^5.3.0-nightly.9",

packages/core/core/src/plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ export class Plugin {
8989

9090
plugins: any;
9191

92+
pluginsAPI: any;
93+
9294
env: any;
9395

9496
loaded = false;
@@ -121,6 +123,7 @@ export class Plugin {
121123
this.acceptedContext = options.pluginConfig.context || [constants.contexts.any];
122124
this.version = options.version;
123125
this.constants = constants;
126+
this.pluginsAPI = options.pluginsAPI;
124127

125128
if (!Array.isArray(this.currentContext)) {
126129
this.currentContext = [this.currentContext];

packages/core/core/src/plugins.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ export class Plugins {
8787
events: this.events,
8888
config: this.config,
8989
plugins: this.plugins,
90+
pluginsAPI: this,
9091
fs: this.fs,
9192
isInternal: true,
9293
context: this.context,
@@ -121,6 +122,7 @@ export class Plugins {
121122
events: this.events,
122123
config: this.config,
123124
plugins: this.plugins,
125+
pluginsAPI: this,
124126
fs: this.fs,
125127
isInternal: true,
126128
context: this.context,
@@ -152,6 +154,7 @@ export class Plugins {
152154
events: this.events,
153155
config: this.config,
154156
plugins: this.plugins,
157+
pluginsAPI: this,
155158
fs: this.fs,
156159
isInternal: false,
157160
context: this.context,

0 commit comments

Comments
 (0)