This repo contains the assets to manage the look and feel of the campus WCMS websites.
- Fork and clone this repository locally
- Install
nodeandnpmby downloading the installer from nodejs.com or with Homebrew - Run
npm installin the project root to install all node dependencies - Run
npm run preview- This fetches the HTML content from several live sites and saves them locally for testing.
img,link, andscripttags are updated to point to local resrouces.
- Run
npm run dev- This starts Laravel Mix and builds the Sass files into ucsc.css.
- It copies the javascript and image files into their proper location in the
dist/folder. - It runs a localhost server and opens the site in a browser window.
This repo is connected to Netlify. Each commit to the master branch (via pull request) will trigger a build and deploy to webassets.ucsc.edu. The WCMS sites will load the updated stylesheets from that site.
- Testing:
- basic comparision
- automated visual regression
- Bundling javascript dependencies
- SVG sprites for certain icons
- Design System documentation
- Generate cache-busting code for WCMS