If github downloads slowly, it can be used gitee Mirror on.
# The installation item npm dependency will report errors under node 12, but will not affect normal use. npm i --legacy-peer-deps # Start the project and pass it after compilation http://127.0.0.1:8888/examples/pages/simple visit. npm start
Note: After modifying the code locally, execute the test case(
npm test --workspaces )It needs to be executed before
npm run build Complete compilation because jest does not support TypeScript
# Installation dependency npm i --legacy-peer-deps # Execute Build npm run build # Execute test case npm test --workspaces # Test a case
# <spec name>is the case name, such as inputImage npm test --workspace amis -- -t < spec-name >
# Run a single test file ./node_modules/.bin/jest packages/amis/__tests__/renderers/Form/buttonToolBar.test.tsx # Run an example in a single test file ./node_modules/.bin/jest packages/amis/__tests__/renderers/Form/buttonToolBar.test.tsx -t ' Renderer:button-toolbar '
# View test case coverage npm run coverage # Update snapshot npm run update-snapshot # Update a single snapshot
# <spec name>is the case name, such as inputImage npm run update-snapshot --workspace amis -- -t < spec-name >
# Publish internal registry npm run publish # Publish external network environment
# First, set the version number with the following command npm run version npm run release
git checkout -b feat-xxx