Copyright © 2016 The University of Melbourne
The contents of this repository have been produced by The University of Melbourne for internal use and must not be distributed without the express permission of The University of Melbourne.
To set up the design system locally, run:
git clone [email protected]:marcom-unimelb/unimelb-design-system.git
cd unimelb-design-system
cp .env.example .env
bundle install
npm install
- Run
foreman start
ornpm start
- Visit http://localhost:7001/
npm-shrinkwrap.json
must be kept up to date when adding, removing or updating dependencies. NPM will take care of it for you automatically in some cases. If unsure, use npm run shrink
to delete and recreate the shrinkwrap file.
Run rake assets:build
or npm run build
. The compiled targets can be found in the /build
directory.
- Create a local branch off the most recent legacy tag - e.g.
git checkout tags/v5.0.1 -b fix-something-in-injection
- Recreate
.env
from.env.example
and setCDNURL
to"https://d2h9b02ioca40d.cloudfront.net/shared"
- Fix whatever you need to fix in the injection and commit the changes.
- Run
NODE_ENV=production npm run build
to compile the targets. - Copy the files to slingshot, test your changes and deploy.
- Create a tag from your branch - e.g.
git tag v5.0.2
, thengit push origin v5.0.2
. - Delete your local branch - e.g.
git branch -d v5.0.2
.