-
Notifications
You must be signed in to change notification settings - Fork 309
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better exports first pass (still busted) Fix package lock Start improving build scripts WIP I have no idea how to make this work Update configs Fix storybook Fix build error Partial port to vitest Maybe working reliably now Fix other package tests Bump hypertxt version Fix build issue with react-select I dont know if I'm getting closer Start cleaning up the build scripts now that we are closer Improve build setup further Simplify Add support for more minimal imports Move files around so that the exports are cleaner Fix up css gen Extra line Hopefully make coverage work agian sync package lock Fix react 18 script Github actions being super weird Im dumb Hopefully move forward for now Remove cra4 support Hopefully fix script on ci Fix coverage reporting?
- Loading branch information
Showing
247 changed files
with
19,218 additions
and
62,733 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
persist-credentials: false | ||
- uses: actions/setup-node@v1 | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16 | ||
- name: Install and Build 🔧 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
run_in_parallel() { | ||
local funcs=("$@") | ||
local pids=() | ||
|
||
# Start the functions in the background and store their PIDs | ||
for func in "${funcs[@]}"; do | ||
($func) & | ||
pids+=($!) | ||
done | ||
|
||
# Wait for all functions and exit if any of them fail | ||
for pid in "${pids[@]}"; do | ||
wait $pid || exit $? | ||
done | ||
} | ||
|
||
generate_index_css() { | ||
echo "/* Auto-generated file */" > dist/index.css | ||
find dist/esm -name '*.css' -print | sed 's/^dist\/esm\//\@import ".\/esm\//' | sed 's/$/";/' >> dist/index.css | ||
} | ||
|
||
ensure_bash_4() { | ||
if [ "${BASH_VERSINFO[0]}" -lt 4 ]; then | ||
if [ -x "/opt/homebrew/bin/bash" ]; then | ||
exec /opt/homebrew/bin/bash "$0" "$@" | ||
elif [ -x "/usr/local/bin/bash" ]; then | ||
exec /usr/local/bin/bash "$0" "$@" | ||
else | ||
echo "Bash 4 or higher is required." | ||
exit 1 | ||
fi | ||
fi | ||
} | ||
|
||
remove_all_css_imports() { | ||
local directory=$1 | ||
local sed_cmd="sed -i" | ||
|
||
# Check if sed is GNU sed or BSD sed | ||
if sed --version 2>/dev/null | grep -q GNU; then | ||
sed_cmd="sed -i" # GNU sed | ||
else | ||
sed_cmd="sed -i ''" # BSD sed | ||
fi | ||
|
||
find "$directory" -type f -name "*.js" -exec $sed_cmd "/require('.\/.*\.css');/d" {} + | ||
find "$directory" -type f -name "*.js" -exec $sed_cmd "/import \".\/.*\.css\";/d" {} + | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"classNameSlug": "gdg-[hash]" | ||
} |
Oops, something went wrong.