-
Notifications
You must be signed in to change notification settings - Fork 414
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,571 additions
and
1,316 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ module.exports = { | |
'workspaces', | ||
'binary', | ||
|
||
'linaria', | ||
'wyw-in-js', | ||
|
||
'scripts', | ||
'betterScripts', | ||
|
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 |
---|---|---|
@@ -1,30 +1,30 @@ | ||
import vite_ssr from "vite-plugin-ssr/plugin"; | ||
import vite_linaria from "@linaria/vite"; | ||
import vite_solid from "vite-plugin-solid"; | ||
import vite_ssr from 'vite-plugin-ssr/plugin'; | ||
import vite_wyw from '@wyw-in-js/vite'; | ||
import vite_solid from 'vite-plugin-solid'; | ||
|
||
export default (/** @type import('vite').ConfigEnv */ { mode }) => { | ||
const dev = mode === "development"; | ||
/** @type import('vite').UserConfig */ | ||
const config = { | ||
plugins: [ | ||
vite_linaria({ | ||
babelOptions: { | ||
presets: ["solid"], | ||
}, | ||
}), | ||
vite_solid({ | ||
dev: dev, | ||
hot: dev, | ||
ssr: true, | ||
}), | ||
vite_ssr({ | ||
includeAssetsImportedByServer: true, | ||
prerender: { | ||
partial: true, | ||
noExtraDir: true, | ||
}, | ||
}), | ||
], | ||
}; | ||
return config; | ||
const dev = mode === 'development'; | ||
/** @type import('vite').UserConfig */ | ||
const config = { | ||
plugins: [ | ||
vite_wyw({ | ||
babelOptions: { | ||
presets: ['solid'], | ||
}, | ||
}), | ||
vite_solid({ | ||
dev: dev, | ||
hot: dev, | ||
ssr: true, | ||
}), | ||
vite_ssr({ | ||
includeAssetsImportedByServer: true, | ||
prerender: { | ||
partial: true, | ||
noExtraDir: true, | ||
}, | ||
}), | ||
], | ||
}; | ||
return config; | ||
}; |
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,21 @@ | ||
#!/bin/bash | ||
|
||
# Find package.json files in the current folder (excluding node_modules) | ||
package_json_files=$(find . -name "package.json" ! -path "*/node_modules/*") | ||
|
||
# Loop through each package.json file found | ||
for package_json_file in $package_json_files; do | ||
# Get the directory path of the package.json file | ||
package_dir=$(dirname "$package_json_file") | ||
|
||
# Get all @linaria/* dependencies | ||
linaria_dependencies=$(cat "$package_json_file" | jq -r '(.dependencies + .devDependencies) | with_entries(select(.key | startswith("@wyw-in-js"))) | keys[]' 2>/dev/null) | ||
|
||
# Link @linaria dependencies | ||
if [[ $linaria_dependencies != "null" ]]; then | ||
for dep in $linaria_dependencies; do | ||
echo "Running pnpm link --global $dep in $package_dir" | ||
(cd "$package_dir" && pnpm link --global $dep) | ||
done | ||
fi | ||
done |
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
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
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
Oops, something went wrong.