Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.05 KB

DEVELOPMENT.md

File metadata and controls

61 lines (42 loc) · 2.05 KB

Development

This repository is a (nx) monorepo that contains the following npm packages:

They are all in the packages folder

Package Manager

We use yarn as the package manager. If you add or remove dependencies, please make sure the yarn.lock file is up-to-date.

Remember to run yarn install after every sync from remote and at the first clone.

Testing

Simply use nx test [package-name]. We use jest as testing framework.

Some packages have more than one test preset

  • react: nx run react:test-cm for testing react integeration with concurrent features
  • svelte: nx run svelte:test-ssr for testing svelte integration in ssr mode

Playgrounds

They are in fixtures folder. Use nx serve [name] to start dev server.

Do not commit any changes inside this folder unless it's intentional (e.g. update dependencies;solve breaking changes).

Build

Before submitting a pull request, make sure the package can be built without error

npm run build-tools
nx build [package-name]

The bundling script is in /tools/executors/rollup

Commit style guide

See Conventional Commits

Side notes

  • To test svelte, you should build svelte-preprocess first. nx build svelte-preprocess
  • Visual Studio Code is recommanded.
    • Use Volar to get .vue IntelliSense features