Skip to content

Commit

Permalink
Merge 54070eb into 2c3e7e4
Browse files Browse the repository at this point in the history
  • Loading branch information
jassmith committed Nov 26, 2023
2 parents 2c3e7e4 + 54070eb commit 14c2938
Show file tree
Hide file tree
Showing 250 changed files with 27,984 additions and 71,438 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/beta.js.yml
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Build
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Build
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/node.js.yml
Expand Up @@ -11,9 +11,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Use Node.js 16
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 16.16.0
- run: npm install
- run: npm run build
- run: npm run test -- --coverage
Expand All @@ -30,8 +30,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 16.16.0
- run: npm install
- run: npm run test-18
6 changes: 3 additions & 3 deletions .github/workflows/release.js.yml
Expand Up @@ -17,7 +17,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Bootstrap
Expand All @@ -35,7 +35,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Bootstrap
Expand All @@ -53,7 +53,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Bootstrap
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/storybook.js.yml
Expand Up @@ -11,7 +11,7 @@ jobs:
uses: actions/checkout@v2.3.1
with:
persist-credentials: false
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16
- name: Install and Build 🔧
Expand Down
2 changes: 1 addition & 1 deletion .storybook/.babelrc.json
Expand Up @@ -18,7 +18,7 @@
],
"@babel/preset-react",
"@babel/preset-typescript",
"@linaria/babel-preset"
"@linaria"
],
"plugins": ["@babel/plugin-proposal-class-properties"]
}
2 changes: 2 additions & 0 deletions .storybook/main.js
@@ -1,4 +1,5 @@
const MiniCssExtractPlugin = require("mini-css-extract-plugin");
const ResolveTypeScriptPlugin = require("resolve-typescript-plugin");

module.exports = {
stories: ["../**/src/**/*.stories.tsx"],
Expand Down Expand Up @@ -32,6 +33,7 @@ module.exports = {
});

config.optimization.minimize = false;
config.resolve.plugins = [new ResolveTypeScriptPlugin()];

return config;
},
Expand Down
24 changes: 0 additions & 24 deletions babel.cjs.json

This file was deleted.

48 changes: 48 additions & 0 deletions config/build-util.sh
@@ -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" {} +
}
3 changes: 3 additions & 0 deletions config/linaria.json
@@ -0,0 +1,3 @@
{
"classNameSlug": "gdg-[hash]"
}

0 comments on commit 14c2938

Please sign in to comment.