This project requires the caswow.library to function correctly.
See the section on installing the caswow.library as part of the overall local development setup.
This project has transitioned to using PNPM as the package manager. The goal is to improve performance and efficiency in managing dependencies.
Install PNPM globally if you haven't already:
npm install -g pnpmImport existing lockfiles from NPM, if they exist:
pnpm importInstall dependencies:
pnpm installAll subsequent commands that previously used npm should now use pnpm without declaring run. For example, to run the development server, instead of npm run dev use:
pnpm devTo run CAS WOW locally, simply clone the repository and install dependencies. Currently, this project requires Node v22, which can be set on a project basis by entering nvm use in the terminal.
git clone git@github.com:ComponentAssemblySystems/casWOW.gitpnpm install
Run the following to link the caswow.library as a pnpm module:
$ cd /path/to/your/stylesheet
$ pnpm linkreturn to this project:
$ pnpm link ../caswow.library // path to your local caswow.library
$ pnpm installThen copy the caswow CSS files into the dependencies folder:
$ pnpm copy-casor you can import it into site.css:
@import "caswow.library/css/caswow.css";if the caswow.library is ever published, replace
pnpm link caswow.librarywithpnpm install caswow.libraryto add it to the package.json dependencies.
CASWOW uses Font Awesome for icons, with the current version set at v7.0.1.
To upgrade the version of Font Awesome, the following steps must be taken:
- Update the version in
package.json - Run
pnpm install - Run
copy-fato copy the latest Font Awesome webfonts and CSS files to their respective CASWOW directories - Run
pnpm buildto rebuild the CASWOW project with the new dependencies - Verify the build has picked up the latest changes by checking the version under
docs/css/fontawesome.css
You should now be able to run pnpm dev to view the icons with the newest version. If any icons are missing that are specific to the latest version, be sure to check dependencies/ and src/css/fontawesome.css to verify that the correct version has been copied over.
Architectural drawing found under
/plansPhoto by Amsterdam City Archives on Unsplash