Skip to content

middlebury/midd-frontend

Repository files navigation

midd-frontend

Frontend code for middlebury_theme

CI dependency status dev dependency status

Requirements

  • Node ^18.13.0

To check if you already have node installed, open terminal and use the following command:

node -v

Getting started

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.

Development

Run local browser sync server and watch files:

npm start

Build for production

npm run build

Changing output path

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.