Thank you for checking out our project! π βοΈ π³ π
Please visit the contribution guide in our main repository for advice on how to help the community.
Please have the latest stable versions of the following on your machine
If you run into trouble here, make sure your node, npm, and yarn are on the latest versions (yarn at least v1.3.2).
git clone https://github.com/SenseNet/sn-client.git
bonus: use your own fork for this stepcd sn-client
yarn
yarn build
to compile all the typescript packagesyarn test
to run unit tests
We use Gitflow workflow.
This means that we use a develop branch for the main development.
When you start to work on a new feature or bug, you:
- Checkout develop
- Pull latest develop
- Create new branch from develop
- Make some changes in code or documentation
- Create a pull request to develop
With yarn you can run any package scripts eg.: test, build, lint
yarn workspace @sensenet/redux test
There are aliases for the example applications like dms, component-docs, sn-app. You can run any command in these packages easily.
yarn dms build:webpack
yarn dms start
yarn snapp start
yarn storybook start
Cypress is installed to dms-demo app right now. To run the tests you simply need to run yarn test:dms:e2e
To develop e2e tests:
- You need a running instance of dms (
yarn start:dms:e2e
) with NODE_ENV set to test - Start cypress with
yarn cypress open -P examples/sn-dms-demo
in another command prompt - Add test to
examples/sn-dms-demo/cypress/integration
with a spec.ts | spec.js file extension
Running the tests locally will create a currentUser.json with a new test user. The tests are going to use this user.
In order to use another user, you can change the email and password of the current user or let the system create a new for you by deleting the JSON.