File tree Expand file tree Collapse file tree 8 files changed +46
-3
lines changed Expand file tree Collapse file tree 8 files changed +46
-3
lines changed Original file line number Diff line number Diff line change 2
2
.idea /
3
3
wordpress
4
4
.wordpress /
5
+ .vscode /
Original file line number Diff line number Diff line change
1
+ {
2
+ "version" : " 0.2.0" ,
3
+ "configurations" : [
4
+ {
5
+ "name" : " Listen for Xdebug" ,
6
+ "type" : " php" ,
7
+ "request" : " launch" ,
8
+ "port" : 9003 ,
9
+ "xdebugSettings" : {
10
+ "max_children" : 128 ,
11
+ "max_data" : 1024 ,
12
+ "max_depth" : 3 ,
13
+ "show_hidden" : 1
14
+ },
15
+ "pathMappings" : {
16
+ "/var/www/html/wp-content/plugins/wp-graphql-filter-query" : " ${workspaceFolder}" ,
17
+ "/var/www/html" : " ${workspaceFolder}/.wordpress/wordpress" ,
18
+ }
19
+ }
20
+ ]
21
+ }
Original file line number Diff line number Diff line change
1
+ {
2
+ "phpcs.standard" : " ./.phpcs.xml.dist" ,
3
+ "phpcs.ignorePatterns" : [" vendor" ],
4
+ "phpcs.executablePath" : " ./vendor/bin/phpcs" ,
5
+ "phpcbf.onsave" : true ,
6
+ "phpcbf.executablePath" : " vendor/bin/phpcbf" ,
7
+ "phpcbf.configSearch" : true ,
8
+ "phpSniffer.autoDetect" : true ,
9
+ "editor.formatOnSaveTimeout" : 5000 ,
10
+ "phpcbf.debug" : true ,
11
+ }
Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ ARG PLUGIN_NAME=wp-graphql-filter-query
7
7
ARG php_ini_file_path="/usr/local/etc/php/php.ini"
8
8
9
9
# Setup the OS
10
- RUN apt-get -qq update ; apt-get -y install unzip curl sudo subversion mariadb-client \
10
+ RUN apt-get -qq update ; apt-get -y install unzip curl sudo subversion mariadb-client less \
11
11
&& apt-get autoclean \
12
12
&& chsh -s /bin/bash www-data
13
13
Original file line number Diff line number Diff line change 1
1
PLUGIN_DIR =/var/www/html/wp-content/plugins/wp-graphql-filter-query
2
- BIN_DIR =$(PLUGIN_DIR ) /bin/
2
+ BIN_DIR =$(PLUGIN_DIR ) /bin
3
3
COMPOSER =docker run --rm -it -v ` pwd ` :/app -w /app composer
4
4
DC =docker-compose
5
5
21
21
$(DC ) up -d
22
22
$(DC ) exec wp $(BIN_DIR ) /wait-for-it.sh db:3306
23
23
$(DC ) exec wp install-wp-tests
24
+ $(DC ) cp wp:/tmp/wordpress-tests-lib ` pwd` /.wordpress/wordpress-tests-lib
24
25
25
26
down :
26
27
$(DC ) down --volumes
Original file line number Diff line number Diff line change @@ -27,3 +27,10 @@ make test
27
27
```
28
28
make lint
29
29
```
30
+
31
+ ### vscode
32
+
33
+ Install the following plugins to gain formatting and lint errors showing up in the editor
34
+
35
+ ![ image] ( https://user-images.githubusercontent.com/24898309/174314127-6238f618-0355-4187-b43c-c7a81f451c5f.png )
36
+
Original file line number Diff line number Diff line change 2
2
3
3
WP_REQUIRED_PLUGINS=" wp-graphql query-monitor"
4
4
5
+ wp core download
6
+
5
7
if ! $( wp core is-installed) ; then
6
8
echo " Waiting for MySQL..."
7
9
wp core install --url=http://localhost:8080 --title=Example --admin_user=admin --admin_password=admin --admin_email=admin@example.com --path=/var/www/html
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ services:
28
28
define('WP_HOME', 'http://' . $$_SERVER['HTTP_HOST'] );
29
29
define('WP_DEBUG_LOG', true);
30
30
volumes :
31
- # - wp-data :/var/www/html
31
+ - ./.wordpress/wordpress :/var/www/html
32
32
- ./:/var/www/html/wp-content/plugins/wp-graphql-filter-query
33
33
ports :
34
34
- 8080:80
You can’t perform that action at this time.
0 commit comments