- Terminal (macOS) or Command Prompt (PC)
- Node - Tested with node 18.20.8
- npm
- nvm - Recommended to use tested Node version
- If you haven't already cloned the repository, do so by running the following in your command line:
git clone https://github.com/ucla/UCLA-Design-Systems.git
- Navigate to your local copy:
cd UCLA-Design-Systems
- Make sure
nodeandnpmhave been installed successfully.
node -v
npm -v
- Prepare the development environment:
bash scripts/prepare.sh
- Go into the 'fractal' directory
cd fractal
- Switch to tested node version
- In order to install node v18 on a mac with arm64(Apple Processor), you would need to use Rosseta.
You can install Rosseta using the following command:
/usr/sbin/softwareupdate --install-rosetta --agree-to-license- Then run
arch -x86_64 zshand continue instructions using the next nvm command.
nvm install 18nvm use
- Install Node Modules for Fractal
npm install
- Run a Fractal Build
npm run build
- Start Fractal
npm run start
Your local environment should be running at http://localhost:3000.
| Task | Description |
|---|---|
npm run build |
Build Fractal framework, build expanded styling and scripts for both documentation and components library, and remove string filters (used for production versioning) |
npm run start |
Start Fractal development web server, watch for styling and script changes for both the documentation and components library, and run linters for both the documentation and components library |
This project uses conventional commits, which is a requirement for the semantic release plugin installed into the repository.
The Conventional Commits specification is a lightweight convention on top of commit messages. It provides an easy set of rules for creating an explicit commit history; which makes it easier to write automated tools on top of. This convention dovetails with SemVer, by describing the features, fixes, and breaking changes made in commit messages.
You can read more about it here: conventional commits
conventional commits cheat sheet
