- Clone this repository
- Install dependencies with
yarn install
Majestic has 2 main components as follows
- The UI written in React JS and GraphQL
- The UI source is in
./ui- Runningyarn uiwill start the webpack dev server
- The UI source is in
- A Node JS GraphQL server
- The server source is in
./server - Create a sample projector use one of your project with Jest so you can test your changes
- If you are using VSCode, edit the
\.vscode\launch.jsonfile and change theROOTdirectory to your sample project and then you can pressF5to run the server. - If you are not using VSCode, edit the
\server\services\cli.tsfile and change the root path so you test with your sample project and then runningyarn watch-serverwill start the server in watch mode
- The server source is in
We have a couple of integration tests written using Cypress available in the ./integration folder.
To run the integration test
- Do a production build by running
yarn prod cd ./integration- Run
yarn prepare-packagesto install required packages - Run
yarn run-integrationto run the integration tests
The UI is built by Webpack and the server is also built by Webpack to decrease install times.
Run yarn prod to build a production bundle and the artifacts would be available in dist folder.
Running yarn ship will perform a production build and will publish a new version to npm.