Frontend code for middlebury_theme
- Node ^18.13.0
To check if you already have node installed, open terminal and use the following command:
node -v
Clone the repo to a local machine, using your preferred method.
SAW is not used to work in this repo due to conflict with SAW and how node works.
Open terminal and change directory into the cloned local repo.
Install node modules:
npm install
You may be asked to fix dependencies, go ahead and do that.
Run local browser sync server and watch files:
npm start
npm run build
For development on saw.middlebury.edu
, you can build assets to a desired Drupal theme directory by creating an .env
file in the root directory of this repo.
THEME_DIR="../your/path/to/d8/web/themes/custom/middlebury_theme/"
Now when you run npm run build
or npm run dev
, assets will be output to that directory.