Skip to content

Commit

Permalink
Merge pull request #220 from TylerB24890/fix/issue-97-file-distribution
Browse files Browse the repository at this point in the history
Fix: Issue 97 - NPM Archive Distribution
  • Loading branch information
peterwilsoncc committed Aug 28, 2024
2 parents 228f22d + 348c47a commit ff7a8bc
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/.distignore export-ignore
/.gitattributes export-ignore
/.github/ export-ignore
/.gitignore export-ignore
/.nvmrc export-ignore
/.wordpress-org/ export-ignore
/.wordpress-version-checker.json export-ignore
/.wp-env.json export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
/CONTRIBUTING.md export-ignore
/CREDITS.md export-ignore
/composer.lock export-ignore
/package-lock.json export-ignore
/phpcs.xml export-ignore
/phpunit.xml.dist export-ignore
/tests/ export-ignore
/webpack.config.js export-ignore
32 changes: 31 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,37 @@
"phpcs": "./vendor/bin/phpcs . -p -s",
"phpcbf": "./vendor/bin/phpcbf .",
"phpcs:compat": "./vendor/bin/phpcs *.php includes -p --standard=PHPCompatibilityWP --extensions=php --runtime-set testVersion 7.4-",
"test:unit": "./vendor/bin/phpunit"
"test:unit": "./vendor/bin/phpunit",
"pre-archive-cmd": [
"composer install --no-dev --no-interaction --no-progress --optimize-autoloader"
],
"post-archive-cmd": [
"composer install --no-interaction --no-progress"
]
},
"archive": {
"exclude": [
"/.distignore",
"/.github",
"/.gitignore",
"/.wordpress-org",
"/.wp-env.json",
"/.wp-env.override.json",
"/CHANGELOG.md",
"/CODE_OF_CONDUCT.md",
"/composer.json",
"/composer.lock",
"/CONTRIBUTING.md",
"/CREDITS.md",
"/package-lock.json",
"/package.json",
"/phpcs.xml",
"/phpunit.xml.dist",
"/README.md",
"/webpack.config.js",
"/node_modules",
"/tests"
]
},
"config": {
"allow-plugins": {
Expand Down

0 comments on commit ff7a8bc

Please sign in to comment.