-
Notifications
You must be signed in to change notification settings - Fork 7
Development setup
Andrew Huth edited this page Aug 1, 2022
·
10 revisions
To work on this project, you'll need to do some setup.
Ensure you have the following installed
Clone the repo by navigating to the location on your system where you want the project to live, and running
git clone git@github.com:chanzuckerberg/axe-storybook-testing.git
When that's done, navigate to the project directory
cd axe-storybook-testing
Install the necessary development dependencies with
yarn install
Run
yarn demo:setup
This will install the demo app's dependencies.
Make sure everything is working by running any or all of the following (each command is independent, and can be ran in any order):
-
yarn demo:storybook
- Run the demo app's Storybook. -
yarn demo
- Run axe-storybook-testing on the demo app. There should be some "failures". -
yarn all
- Run linting, type checking, unit tests, and integration tests in one command.
You need to install some missing packages. Try
sudo apt-get install gconf-service libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libcairo2 \
libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 \
libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxss1 libxtst6 libappindicator1 \
libnss3 libasound2 libatk1.0-0 libc6 ca-certificates fonts-liberation lsb-release xdg-utils wget
If you're using a remote development server (such as a CZI dev server), make sure you've setup your local ssh config to forward the Storybook port ~/.ssh/config
:
LocalForward 6007 localhost:6007
Congrats! You have a fully-functional development setup.