-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrate site to Vite and Vike for SSG #160
Merged
Changes from 18 commits
Commits
Show all changes
32 commits
Select commit
Hold shift + click to select a range
2fffeb6
site works in dev mode and build
mrm007 38c8b67
upgrade to React v17, Chakra v1, Emotion v11
mrm007 8692dac
upgrade to React v18, Chakra v2, TypeScript v5.3
mrm007 8336e90
remove traces of Gatsby from scripts
mrm007 58e1e02
use Vike for SSG
mrm007 ec33a0f
fix urls for preview site deployments
mrm007 5068ed1
upgrade react-syntax-highlighter and use light build
mrm007 d27ff58
dedupe lockfile
mrm007 b633ddd
fix deployment to GitHub Pages
mrm007 e8aee99
we do a little gold plating
mrm007 5bf202e
remove TODOs
mrm007 fbc87b8
a bit of cleanup
mrm007 9e67cf7
use the async light build of react-syntax-highlighter
mrm007 f02879e
optimize images with vite-imagetools
mrm007 8910a93
upgrade downshift
mrm007 055253a
fix SSR issues with hydration and syntax highlighting
mrm007 575680b
use pixels where needed
mrm007 b74031c
upgrade more dev deps, run Prettier
mrm007 7a44a41
clean up site scripts
mrm007 736c62e
test corepack
mrm007 f78b434
rename vite config to .mts so we can load ES Modules
mrm007 7dec002
small tweaks
mrm007 f644076
update vite-plugin-node-polyfills to latest
mrm007 ede4b99
fix a decent typo
mrm007 6ed80c3
site: Fix some styling bugs
michaeltaranto 9ba1521
site: More styling fixes
michaeltaranto a0357ca
go full ESM
mrm007 3e70df5
set html attributes directly
mrm007 6ff710d
site: Fix suggestions list
michaeltaranto 4c8289f
convert site scripts to ESM
mrm007 8acd9f6
await promise
mrm007 397f0eb
clean up site scripts
mrm007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
prefer-workspace-packages=true | ||
|
||
# Make sure the default patterns are still included (https://pnpm.io/npmrc#public-hoist-pattern) | ||
public-hoist-pattern[]="*eslint*" | ||
public-hoist-pattern[]="*prettier*" | ||
|
||
# Polyfills are only used in the site, but with `preconstruct dev` they are imported by our own code | ||
public-hoist-pattern[]="vite-plugin-node-polyfills" |
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 |
---|---|---|
|
@@ -45,36 +45,34 @@ | |
"homepage": "https://github.com/seek-oss/capsize#readme", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@babel/core": "^7.19.6", | ||
"@babel/preset-env": "^7.19.4", | ||
"@babel/preset-typescript": "^7.18.6", | ||
"@changesets/changelog-github": "^0.4.7", | ||
"@changesets/cli": "^2.25.0", | ||
"@manypkg/cli": "^0.21.0", | ||
"@preconstruct/cli": "^2.2.2", | ||
"@storybook/addon-viewport": "^6.5.13", | ||
"@storybook/builder-webpack5": "^6.5.13", | ||
"@storybook/cli": "^6.5.13", | ||
"@storybook/html": "^6.5.13", | ||
"@storybook/manager-webpack5": "^6.5.13", | ||
"@types/jest": "^29.2.0", | ||
"@babel/core": "^7.23.9", | ||
"@babel/preset-env": "^7.23.9", | ||
"@babel/preset-typescript": "^7.23.3", | ||
"@changesets/changelog-github": "^0.5.0", | ||
"@changesets/cli": "^2.27.1", | ||
"@manypkg/cli": "^0.21.2", | ||
"@preconstruct/cli": "^2.8.3", | ||
"@storybook/addon-viewport": "^6.5.16", | ||
"@storybook/builder-webpack5": "^6.5.16", | ||
"@storybook/cli": "^6.5.16", | ||
"@storybook/html": "^6.5.16", | ||
"@storybook/manager-webpack5": "^6.5.16", | ||
"@types/jest": "^29.5.11", | ||
"@types/node": "^20.11.13", | ||
"@vanilla-extract/babel-plugin": "^1.2.0", | ||
"@vanilla-extract/webpack-plugin": "^2.2.0", | ||
"@vanilla-extract/webpack-plugin": "^2.3.4", | ||
"chromatic": "^5.9.2", | ||
"husky": "^8.0.1", | ||
"husky": "^8.0.3", | ||
"is-ci": "^3.0.1", | ||
"jest": "^29.2.2", | ||
"prettier": "^2.7.1", | ||
"react": "^16.13.1", | ||
"react-dom": "^16.13.1", | ||
"typescript": "^4.8.4", | ||
"webpack": "^5.75.0" | ||
"jest": "^29.7.0", | ||
"prettier": "^2.8.8", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"typescript": "^5.3.3", | ||
"webpack": "^5.90.0" | ||
}, | ||
"resolutions": { | ||
"remark-mdx": "^1.6.22" | ||
}, | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"volta": { | ||
"node": "16.18.0" | ||
"node": "20.11.0" | ||
} | ||
} |
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This doesn't change the behaviour of the compiled code, so a changeset is not warranted IMO.