To start Fractal
, you’ll need to run the following command:
yarn gulp
This will create a local Fractal server
instance available at http://localhost:3000 (unless port 3000 is taken).
Full list of available Fractal
commands:
# start fractal in development mode
yarn gulp
# build static assets only
yarn build
# export fractal to static files
yarn fractal:build
# build static assets & export fractal to static files
yarn build:all
Using yarn build
will export Fractal
to static files, exported to static-html
.
This is useful for seeing the actual HTML output for each page, or just having a reference to components without having to start the Fractal
server.
# cd into project directory
cd [project-directory]
# run axe
yarn axe
# run axe for a specific template
AXE_FILTER=home yarn axe