-
Notifications
You must be signed in to change notification settings - Fork 141
Development
- clone the repo to your local
npm install
lerna bootstrap
- make some changes...
AVA contains multiple npm packages. We use lerna to manage all these packages.
All the packages would be placed in the packages/
folder.
So far, we have three "tools" and they contain five packages in total:
βββ packages
βββ chart-advisor # package: @antv/chart-advisor
βββ knowledge # package: @antv/knowledge
βββ datawizard # package set
βββ analyzer # package: @antv/dw-analyzer
βββ random # package: @antv/dw-random
βββ transform # package: @antv/dw-transform
Usually, we have a src
folder in each package. It contains the source code. Read the README.md
file to understand the structure of the package and try to modify things.
The __tests__
folder in each package is for jest testing. These test cases are linked by jest. You can find the settings in jest.config.js
.
Install a plugin for your editor, such as vscode-jest for vscode, then the tests should run automatically.
There is a web app in demo/
. It is for testing like a user of AVA.
Under the root of this repo, try:
npm start
and visit http://localhost:8881/, you might interact with the demos.
Also, try to add a demo after changing something or adding some features.
Site means the official website of AVA: https://ava.antv.vision/
It is under sites/ava-site/
and managed by lerna as well.
To develop the site:
// root
npm run setup:site
npm run start:site
// or, cd sites/ava-site
npm start
Visit http://localhost:8880/ after the build is complete.
Never push anything to the master branch unless you are the admin of this project. Use Pull Request.