Skip to content
/ amis Public

The front-end low code framework can generate various pages through JSON configuration.

License

Notifications You must be signed in to change notification settings

baidu/amis

Repository files navigation

Ruliu Group: 3395342| Ruliu Group 2:5511067|

 build  license  version  language  codecov  last

The front-end low code framework can generate various background pages through JSON configuration, greatly reducing development costs, and even without knowing the front-end.

developer's guide

The following is what you need to see to participate in the development of amis. Please refer to the previous document for usage.

If github downloads slowly, it can be used gitee Mirror on.

Node 12/14/16 is recommended. npm 7+, Because the workspaces function is used.

 # 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

If it is a development editor, you need to access http://127.0.0.1:8888/packages/amis -editor/

test

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 >

Release version

 # 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

How to contribute

Please use branch development to create branches first

 git checkout -b feat-xxx

Use after development submission git push --set-upstream origin feat-xxx Create a remote branch.

Then the system prompts https://github.com/xxx/amis/pull/new/feat-xxx Link to submit PR.

Please use typescript to write. All reasonable changes, new public renderers, use cases or document submissions will be received.

contributor

Low code platform

Amis can only implement front-end low code, and it is recommended to use if a complete low code platform is required Love fast