File tree 2 files changed +13
-1
lines changed
2 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -129,7 +129,14 @@ const util = {
129
129
args += arg + '=' + val + ' '
130
130
}
131
131
return args . replace ( / " / g, '\\"' )
132
- }
132
+ } ,
133
+
134
+ buildExtension : ( ) => {
135
+ const extensionDir = path . join ( config . projects . antimuon . dir , 'vendor' , 'brave-extension' )
136
+ const options = { cwd : extensionDir }
137
+ util . run ( 'yarn' , [ 'install' ] , options )
138
+ util . run ( 'yarn' , [ 'run' , 'build' ] , options )
139
+ } ,
133
140
}
134
141
135
142
module . exports = util
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ program
14
14
. option ( '--submodule_sync' , 'run submodule sync' )
15
15
. option ( '--init' , 'initialize all dependencies' )
16
16
. option ( '--all' , 'update all projects' )
17
+ . option ( '--build_extension' , 'update all projects' )
17
18
projectNames . forEach ( ( project ) => {
18
19
program . option ( '--' + project + '_ref <ref>' , project + ' ref to checkout' )
19
20
} )
@@ -53,3 +54,7 @@ if (updatedVersion || program.init || program.run_sync) {
53
54
if ( updatedVersion || program . init || program . run_hooks ) {
54
55
util . gclientRunhooks ( )
55
56
}
57
+
58
+ if ( program . init || program . all || program . build_extension ) {
59
+ util . buildExtension ( )
60
+ }
You can’t perform that action at this time.
0 commit comments