You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
.addOptionalParam('root','Overrides root directory. If sources is also overridden must be the sub-folder of the sources dir')
146
146
.addOptionalParam('package','Compile the contracts within a specific mono-repo package. Artifacts and 0xc classes will be placed in the package directory')
147
147
.addOptionalParam('tsgen','Skip the TypeScript class generation',true,config_1.types.boolean)
148
+
.addOptionalParam('install','CSV sol path to install, default installs all compiled contracts from sources')
148
149
.addFlag('watch','Watch sources directory and reruns compilation task on changes')
Copy file name to clipboardExpand all lines: src/index.ts
+42-7Lines changed: 42 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@ task(TASK_COMPILE, 'Compiles the entire project, building all artifacts')
21
21
.addOptionalParam('root','Overrides root directory. If sources is also overridden must be the sub-folder of the sources dir')
22
22
.addOptionalParam('package','Compile the contracts within a specific mono-repo package. Artifacts and 0xc classes will be placed in the package directory')
23
23
.addOptionalParam('tsgen','Skip the TypeScript class generation',true,types.boolean)
24
+
.addOptionalParam('install','CSV sol path to install, default installs all compiled contracts from sources')
24
25
.addFlag('watch','Watch sources directory and reruns compilation task on changes')
25
26
26
27
.setAction(async(
@@ -30,6 +31,7 @@ task(TASK_COMPILE, 'Compiles the entire project, building all artifacts')
30
31
root?: string
31
32
watch?: boolean
32
33
tsgen?: boolean
34
+
install?: string
33
35
package?: string
34
36
},
35
37
{ run, config, artifacts },
@@ -41,6 +43,9 @@ task(TASK_COMPILE, 'Compiles the entire project, building all artifacts')
41
43
if(compilationArgs.tsgen===false){
42
44
config['0xweb'].tsgen=false;
43
45
}
46
+
if(compilationArgs.install!=null){
47
+
config['0xweb'].install=compilationArgs.install;
48
+
}
44
49
if(compilationArgs.package!=null){
45
50
config['0xweb'].package=compilationArgs.package;
46
51
@@ -177,7 +182,18 @@ task(TASK_CLEAN, 'Clears the cache and deletes all artifacts')
0 commit comments