Skip to content

Commit f56c3c5

Browse files
Add .distignore (#54)
* Add .distignore * Update devdependencies * Update playwright to 1.53 * Use new headless mode * Do not use headless * Adjust instructions to use wp dist-archive to adopt
1 parent c44dced commit f56c3c5

4 files changed

Lines changed: 64 additions & 29 deletions

File tree

.distignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# node/npm
2+
node_modules
3+
package.json
4+
package-lock.json
5+
debug.log
6+
7+
# PHP/composer dev
8+
composer.json
9+
composer.lock
10+
/vendor
11+
12+
# tests & reports
13+
test
14+
playwright.config.ts
15+
phpunit.xml
16+
phpcs.xml
17+
playwright-report
18+
test-results
19+
20+
# config & scripts
21+
bin
22+
config
23+
24+
# CI/config files
25+
.gitignore
26+
.git
27+
.github
28+
.wp-env.json
29+
.distignore
30+
31+
# editor/os
32+
.vscode

RELEASE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ Perform the following steps to release a new version of the plugin on wordpress.
1212
10. If Subversion repo already existed: run `svn update` inside repo `tiny-compress-images`.
1313
11. Update svn:ignore property of trunk when .gitignore is updated: `svn propedit svn:ignore trunk`. Make sure src/vendor/\* is NOT ignored in SVN.
1414
12. Delete everything in trunk `rm -rf <path-to-local-svn-repo/trunk/*`.
15-
13. Manually copy the Git release to the local Subversion repo: run following command under your Github repo: `git ls-files | xargs tar c | tar x -C <path-to-local-svn-repo>/trunk/`.
15+
13. Manually copy the Git release to the local Subversion repo: run following command under your Github repo: `rsync -av --delete --exclude-from='.distignore' ./ <path-to-local-svn-repo>/trunk/`.
1616
14. Go back to your svn repo and add new files `svn st | awk '/^\?/ { print $2; }' | xargs svn add`.
17-
15. Delete deleted files: `svn st | awk '/^!/ { print $2; }' | xargs svn rm`.
1817
16. To double check changes to the repo, check difference with `svn status`.
1918
17. Commit the trunk to Subversion: `svn ci -m "<message>"`.
2019
18. Tag the new release in Subversion and commit: `svn cp trunk tags/<version> && svn ci -m "<message>"`.

package-lock.json

Lines changed: 30 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"test:playwright": "playwright test"
88
},
99
"devDependencies": {
10-
"@playwright/test": "^1.49.1"
10+
"@playwright/test": "^1.53.0"
1111
}
1212
}

0 commit comments

Comments
 (0)