This repository was archived by the owner on Feb 7, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 32
32
"pattern-lab/styleguidekit-twig-default" : " dev-dev"
33
33
},
34
34
"scripts" : {
35
- "pre-install -cmd" : [
36
- " PatternLab\\ Installer::preInstallCmd "
35
+ "post-create-project -cmd" : [
36
+ " PatternLab\\ Installer::postCreateProjectCmd "
37
37
],
38
38
"post-package-install" : [
39
39
" PatternLab\\ Installer::postPackageInstall"
40
40
],
41
41
"post-package-update" : [
42
42
" PatternLab\\ Installer::postPackageUpdate"
43
43
],
44
+ "pre-install-cmd" : [
45
+ " PatternLab\\ Installer::preInstallCmd"
46
+ ],
44
47
"pre-package-uninstall" : [
45
48
" PatternLab\\ Installer::prePackageUninstall"
46
49
]
Original file line number Diff line number Diff line change 18
18
19
19
class Installer {
20
20
21
+ /**
22
+ * Run the PL tasks when a package is installed
23
+ * @param {Object} a script event object from composer
24
+ */
25
+ public static function postCreateProjectCmd (Event $ event ) {
26
+
27
+ // make sure pattern lab has been loaded
28
+ if (class_exists ("\PatternLab\Config " )) {
29
+
30
+ InstallerUtil::postCreateProjectCmd ($ event );
31
+
32
+ }
33
+
34
+ }
35
+
21
36
/**
22
37
* Run the PL tasks when a package is installed
23
38
* @param {Object} a script event object from composer
You can’t perform that action at this time.
0 commit comments