The official University of Tennessee, Knoxville Web Design System was made to help UT web developers build interfaces that match UT's visual identity and make consistent the user interface of a variety of digital products.
The theme is built from the src
directory, using the directions listed under Installing this project. When built, all theme files will be in the build
directory.
The Torch WDS uses Node and Webpack compile the theme. You will need to install Node.js and NPM to build the theme.
git clone
this project by typing git clone git@github.com:utkwdn/utkwds.git
./utkwds/
directory.node -v
npm install
to install dependencies./utkwds/
directory.npm run build
to build the theme./build/
directory.Note: If you are using Visual Studio Code, the build process will automatically run when you open the editor. Tasks can be stopped and restarted using the Terminal
menu.
The NPM commands are:
npm run start
runs continually and watches the \src\
directory for changes. When you change a file, it rebuilds the theme in the \build\
directory.npm run build
will build a testing theme.npm run dist
will minimize all images and css and javascript for production and place a production ready version of the theme in the \dist\
directory. It also creates a zip file of the theme in the root directory that can be uploaded to WordPress.npm run wp-env start
will start a local WordPress environment for testing the theme. This requires Docker to be installed on your machine.npm run wp-env stop
will stop the local WordPress environment.npm run wp-env -- --xdebug
will restart the local WordPress environment with Xdebug enabled.