Skip to content

Commit

Permalink
- update .distignore to support plugin builds with experiments better
Browse files Browse the repository at this point in the history
- remove built files from WPGraphQLIDE experiment (they shouldn't be versioned)
  • Loading branch information
jasonbahl committed Jun 4, 2024
1 parent afecad3 commit 9681ade
Show file tree
Hide file tree
Showing 14 changed files with 40 additions and 120,074 deletions.
51 changes: 31 additions & 20 deletions .distignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,34 @@
/.git
/.github
/.idea
/.log
/.vscode
/.wordpress-org
/bin
/github
/plugin-build
/documentation
/docs
/img
/phpstan
/tests
/docker
/docker-output
/tests
/node_modules
/packages
/artifacts
.git
.github
.idea
.log
.vscode
.wordpress-org
.husky
.editorconfig
bin
github
plugin-build
documentation
docs
img
phpstan
tests
docker
docker-output
tests
node_modules
packages
artifacts


## Ignore all src directories except the root src directory.
## The root src directory is the main plugin source.
## Nested src directories are ignored as they typically are used for JS source code.
src/**/src
.zip
*.zip


.DS_Store
.coveralls.yml
Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,14 @@
"phpstan analyze --ansi --memory-limit=2G"
],
"build-plugin": [
"composer install --no-dev && composer run-script zip && composer install"
"composer install --no-dev && composer run-script build-assets && composer run-script zip && composer install"
],
"build-assets": [
"npm install && npm run build"
],
"zip": [
"mkdir -p plugin-build/wp-graphql",
"rsync -rc --exclude-from=.distignore --exclude=plugin-build . plugin-build/wp-graphql/ --delete --delete-excluded -v",
"rsync -rc --exclude-from=.distignore --exclude=plugin-build --include=src . plugin-build/wp-graphql/ --delete --delete-excluded -v",
"cd plugin-build ; zip -r wp-graphql.zip wp-graphql",
"rm -rf plugin-build/wp-graphql/"
]
Expand Down
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
"scripts": {
"check-engines": "wp-scripts check-engines",
"build": "wp-scripts build",
"start": "wp-scripts start",
"postbuild": "cd src/Experimental/Experiment/WPGraphQLIDE && npm run build",
"start": "concurrently \"wp-scripts start\" && \"cd src/Experimental/Experiment/WPGraphQLIDE && npm run start\"",
"postinstall": "cd src/Experimental/Experiment/WPGraphQLIDE && npm install",
"test:e2e": "wp-scripts test-playwright --config tests/e2e/playwright.config.js",
"test:e2e:ui": "wp-scripts test-playwright --config tests/e2e/playwright.config.js --ui",
"test:unit": "wp-scripts test-unit-js --config tests/js-unit/jest.config.js",
Expand Down

This file was deleted.

Loading

0 comments on commit 9681ade

Please sign in to comment.