File tree Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Expand file tree Collapse file tree 5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -43,8 +43,10 @@ SOFTWARE.
43
43
44
44
<!-- Hooks -->
45
45
<hook src =" src/scripts/hooks/beforePluginInstall.js" type =" before_plugin_install" />
46
- <hook src =" src/scripts/hooks/afterPluginInstall.js" type =" after_plugin_install" />
47
- <hook src =" src/scripts/hooks/afterPluginAdd.js" type =" after_plugin_add" />
46
+ <hook src =" src/scripts/hooks/beforePrepare.js" type =" after_plugin_install" />
47
+ <hook src =" src/scripts/hooks/afterPrepare.js" type =" after_plugin_add" />
48
+ <hook src =" src/scripts/hooks/beforePrepare.js" type =" before_prepare" />
49
+ <hook src =" src/scripts/hooks/afterPrepare.js" type =" after_prepare" />
48
50
49
51
<!-- JavaScript -->
50
52
<js-module src =" src/branch.js" name =" Branch" >
Original file line number Diff line number Diff line change @@ -42,9 +42,11 @@ SOFTWARE.
42
42
</engines >
43
43
44
44
<!-- Hooks -->
45
- <hook src =" src/scripts/hooks/beforePluginInstall.js" type =" before_plugin_install" />
46
- <hook src =" src/scripts/hooks/afterPluginInstall.js" type =" after_plugin_install" />
47
- <hook src =" src/scripts/hooks/afterPluginAdd.js" type =" after_plugin_add" />
45
+ <hook src =" src/scripts/hooks/beforePluginInstall.js" type =" before_plugin_install" /> <!-- install node modules-->
46
+ <hook src =" src/scripts/hooks/beforePrepare.js" type =" after_plugin_install" /> <!-- support yarn cordova:reset -->
47
+ <hook src =" src/scripts/hooks/afterPrepare.js" type =" after_plugin_add" /> <!-- support yarn cordova:reset -->
48
+ <hook src =" src/scripts/hooks/beforePrepare.js" type =" before_prepare" /> <!-- support multiple platforms -->
49
+ <hook src =" src/scripts/hooks/afterPrepare.js" type =" after_prepare" /> <!-- support multiple platforms -->
48
50
49
51
<!-- JavaScript -->
50
52
<js-module src =" src/branch.js" name =" Branch" >
Original file line number Diff line number Diff line change 8
8
// entry
9
9
module . exports = run
10
10
11
- // after prepare hooks based on platform
11
+ // builds after platform config
12
12
function run ( context ) {
13
13
var preferences = configPreferences . read ( context )
14
14
var platforms = context . opts . cordova . platforms
Original file line number Diff line number Diff line change 6
6
// entry
7
7
module . exports = run
8
8
9
- // before plugin install hooks
9
+ // builds before plugin install hooks
10
10
function run ( context ) {
11
11
nodeDependencies . install ( context )
12
12
}
Original file line number Diff line number Diff line change 12
12
// entry
13
13
module . exports = run
14
14
15
- // after prepare hooks based on platform
15
+ // builds before platform config
16
16
function run ( context ) {
17
17
var preferences = configPreferences . read ( context )
18
18
var platforms = context . opts . cordova . platforms
You can’t perform that action at this time.
0 commit comments