This site is built with
The Hero design is inspired by Vercel.
- v1: Source code
- v2: Source code (Web Archive)
- v3: Source code (Live)
First, install the dependencies
yarnand run the development server:
yarn devOpen http://localhost:3000 with your browser to see the result.
🦀 + 🕸 = ❤️
The Full Text Search in WebAssembly is aiming for minimizing bundle size and heavy computation on the client side. Make sure Cargo and the following tools are installed.
curl https://sh.rustup.rs -sSf | shcargo install wasm-packbrew install binaryencargo install twiggyAt the project root, run
# execute script with Cargo
cargo run scripts/fulltext-search
# or npm
yarn fulltext-searchIt will generate the WebAssembly and JavaScript glue code in wasm/fulltext-search/pkg.
To lint the script, run
cargo clippyMore information about Clippy, please check out its repository.
to start development server
to start production server
to generate production build. The built assets will be in under /.next directory.
to export the app to static HTML, which can be run standalone without the need of a Node.js server.
to deploy the static app from yarn export to github pages. The deployment is triggered by merging into gh-pages branch.
to generate fulltext-search WebAssembly module.
to run unit testing with Jest. To run unit tests in CI, run yarn test:ci.
to run end-to-end testing with Playwright. To run unit tests in CI, run yarn test:e2e:ci.
to generate optimized web images.
Usage: yarn new:article [options] <title>
Bootstrap a new article.
Arguments:
title article title
Options:
-p, --publishedat <string> publishing date (default: "Apr 27, 2023")
-d, --description <string> description (default: "✍️ Enter description here")
-t, --tag <string> tag (default: "✍️ Enter tag here")
-h, --help display help for command
Make sure to run yarn image afterward to generate optimized hero image.