This is our repository for our public website. The intent of this site is to give us a public space for showcasing our work, news about the team, upcoming jobs and interesting commercial partnerships.
Please note that this is a continuous work-in-progress and we will continue to improve the website.
To get started with the site, use the below commands to build and run the site. This assumes that you already have node
installed.
Create a .env
file based on the .env_example
.
To deploy the site, only the _site
folder is needed.
npm install
npx @11ty/eleventy --serve
- Or to build css and run the app locally use
npm run dev
- You can also use
npm run build
to build the_site
folder
To prevent browser caching issues (which can otherwise occur even after invalidating the cache), the Eleventy build renames CSS and JS files that change regularly. Additional files can be added to this within .eleventy.js
.
To run the tests, use the below commands from the root of this project.
cd tests
npx playwright test
DecapCMS is our main CMS. Contentful still has some older content which isgradually being moved over. You will need to add the required values to your .env
for both of these.
To preview unpublished blogs, set const USE_PREVIEW = true;
in src/_data/blogs.js
. Please do not commit this change. The longer-term plan is to set this automatically based on the environment.
This is for the old CMS, which still contains some data. Our new CMS is backed up automatically.
- Install Contentful using
npm install -g contentful-cli
- Login using
npx contentful-cli login
- Run
cd contentful-backups
followed bynpx contentful-cli space export --space-id [space-id]
(the space ID should be in your .env file)