Mizu-ts is a joke script that simulates water(H2o) generation in TypeScript.
Note
A TypeScript port of Mizu, originally written in JavaScript.
https://shimabox.github.io/Mizu-ts/
https://shimabox.github.io/Mizu-ts/?m=1&h=60&o=100
key | default | type | description |
---|---|---|---|
m | 0 | number | Show measurement if set to 1 |
h | 30 | number | Number of H to generate |
o | 50 | number | Number of O to generate |
Fixed.
- 改善(interfaceを利用した実装にする, リファクタなど)
- Node.js >= 18.0.0
- npm >= 9.0.0
Volta is a convenient tool for managing Node.js and npm versions:
# Install Volta
curl https://get.volta.sh | bash
# Install Node.js and npm
volta install node@18
For dependency visualization, dependency-cruiser
is used. To generate visual graphs, you need to install Graphviz.
Follow the steps below to install it.
macOS
brew install graphviz
linux
# Ubuntu/Debian
sudo apt install graphviz
# Fedora
sudo dnf install graphviz
Official Graphviz download page.
Windows
Download the installer from the official Graphviz download page, and follow the setup instructions.
# Clone the repository
git clone https://github.com/shimabox/Mizu-ts.git
# Navigate to the project directory
cd Mizu-ts
# Install dependencies
npm install
npm run dev
npm run build
npm run preview
npm run lint
npm run format
npm run test
npm run coverage
npm run depcruise
This command generates dependency-graph.svg
in the project root.
npm run dependency-graph