Skip to content

Commit f7f2d02

Browse files
committed
Use pre-built phpdoc-parser to circumvent composer install
1 parent 3393625 commit f7f2d02

File tree

2 files changed

+36
-11
lines changed

2 files changed

+36
-11
lines changed

blueprint.json

+36-11
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@
1212
"networking": true
1313
},
1414
"steps": [
15+
{
16+
"step": "login",
17+
"username": "admin",
18+
"password": "password"
19+
},
1520
{
1621
"step": "setSiteOptions",
1722
"options": {
@@ -21,9 +26,14 @@
2126
}
2227
},
2328
{
24-
"step": "login",
25-
"username": "admin",
26-
"password": "password"
29+
"step": "installPlugin",
30+
"pluginZipFile": {
31+
"resource": "wordpress.org/plugins",
32+
"slug": "gatherpress"
33+
},
34+
"options": {
35+
"activate": false
36+
}
2737
},
2838
{
2939
"step": "writeFile",
@@ -44,7 +54,7 @@
4454
"resource": "vfs",
4555
"path": "/wordpress/wporg-mu-plugins.zip"
4656
},
47-
"extractToPath": "/wordpress/wp-content/mu-plugins"
57+
"extractToPath": "/wordpress/wp-content"
4858
},
4959
{
5060
"step": "writeFile",
@@ -72,16 +82,31 @@
7282
}
7383
},
7484
{
75-
"step": "installPlugin",
76-
"pluginZipFile": {
77-
"resource": "url",
78-
"url": "https://github-proxy.com/proxy/?repo=WordPress/phpdoc-parser&branch=master"
85+
"step": "writeFile",
86+
"path": "/wordpress/phpdoc-parser.zip",
87+
"data": {
88+
"resource": "url",
89+
"url": "https://raw.githubusercontent.com/carstingaxion/gatherpress-devhub/WIP/use-build-deps/zips/phpdoc-parser.zip",
90+
"caption": "Downloading phpdoc-parser."
7991
},
80-
"options": {
81-
"activate": true
92+
"progress": {
93+
"weight": 2,
94+
"caption": "Applying phpdoc-parser."
8295
}
96+
},
97+
{
98+
"step": "unzip",
99+
"zipFile": {
100+
"resource": "vfs",
101+
"path": "/wordpress/phpdoc-parser.zip"
83102
},
84-
{
103+
"extractToPath": "/wordpress"
104+
},
105+
{
106+
"step": "wp-cli",
107+
"command": "wp plugin activate phpdoc-parser"
108+
},
109+
{
85110
"step": "wp-cli",
86111
"command": "wp parser create '/wordpress/wp-content/plugins/gatherpress' --user=1"
87112
}
Binary file not shown.

0 commit comments

Comments
 (0)