New SpiritSwap version.
To run locally on your computer please use the command yarn.
- To Install Dependencies
yarn
- To Run
yarn start
- To Build
yarn build
if you want to build for a specific subdirectory
yarn build --env rootPath=/<path>/<to>/<subfolder>/
Run inside another terminal:
yarn storybook
This loads the stories from ./stories
.
NOTE: Stories should reference the components as if using the library, similar to the example playground. This means importing from the root project directory. This has been aliased in the tsconfig and the storybook webpack config as a helper.
Run inside another terminal:
yarn test
If you do some HTML changes, please update the tests.
This loads the tests from ./test
.
It really important to have many tests as possible if the package start growing to avoid future issues.
Then run the example inside another:
cd example
yarn
yarn start
One actions are added by default:
We use a semantic versioning to update the build or changes that we have on the project. They way to handle this is using a command
git add .
yarn run commit
git push