Skip to content

Commit

Permalink
See pewresearch/pewresearch-org@426cc28 from refs/heads/release/5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
prcdevgitbot committed Feb 29, 2024
1 parent a125c1b commit e564708
Show file tree
Hide file tree
Showing 520 changed files with 1,256,215 additions and 1,143,053 deletions.
8 changes: 8 additions & 0 deletions .scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ cd blocks || exit
for dir in $(find . -type d -name 'src' -exec test -e '{}/block.json' ';' -print -prune | sed 's/\/src//g'); do
# Go to the directory
cd $dir || exit
### Check for package-lock.json and if exists delete it
if [ -f "package-lock.json" ]; then
echo "Deleting package-lock.json in $dir"
rm package-lock.json
fi
## Check for node_modules
if [ ! -d "node_modules" ]; then
echo "Running npm install in $dir"
Expand All @@ -15,6 +20,9 @@ for dir in $(find . -type d -name 'src' -exec test -e '{}/block.json' ';' -print
# Run npm build
echo "Running npm build in $dir"
npm run build
# Delete the node_modules directory
echo "Deleting node_modules in $dir"
rm -rf node_modules
# Go back to the /blocks directory
cd - || exit
done
18 changes: 18 additions & 0 deletions .scripts/clean.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

# Start at the /blocks directory
cd blocks || exit

# Find all directories that contain a src/block.json file
for dir in $(find . -type d -name 'src' -exec test -e '{}/block.json' ';' -print -prune | sed 's/\/src//g'); do
# Go to the directory
cd $dir || exit
## Check for node_modules
# Delete the node_modules directory
if [ ! -d "node_modules" ]; then
echo "Deleting node_modules in $dir"
rm -rf node_modules
fi
# Go back to the /blocks directory
cd - || exit
done
2 changes: 1 addition & 1 deletion blocks/accordion-controller/build/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('classnames', 'prc-block-utils', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'c7049db785d7bd6f9411');
<?php return array('dependencies' => array('classnames', 'prc-block-utils', 'prc-icons', 'react', 'wp-block-editor', 'wp-blocks', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '29d5a74fea8b11936417');
2 changes: 1 addition & 1 deletion blocks/accordion-controller/build/index.js

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

2 changes: 1 addition & 1 deletion blocks/accordion-controller/build/index.js.map

Large diffs are not rendered by default.

Loading

0 comments on commit e564708

Please sign in to comment.