Skip to content

Codemarket2/sbconnectall-frontend

Repository files navigation

Vijaa Frontend Monorepo

Next.js + React Native

You have to only use Yarn don't use npm

Install Dependencies:

$ yarn install 

If you want to install package from npm:

$ yarn workspace @frontend/web add <package name>

Next.js Web

Run Web Next.js:

$ yarn web

Storybook

To run stories of your storybook open a new termianl and run:

$ yarn web:storybook

Run Test Cases

To run Cypress test cases for web react components(headless - tests will run in terminal without opening the browser)

$ yarn web:test

cypress headless

To run Cypress test cases for web react components(head - tests will run in browser)

$ yarn web:test:head

cypress web Build Web:

If you only want to run a single test then you can use this command

$ yarn workspace @frontend/web run cypress run-ct --spec ./src/components/<path-to-your-test-file>
$ yarn web:build

Deploy Web:

$ yarn web:deploy

React Native

Install Pod Dependencies (Only on Mac OS):

$ yarn pod:install (if yarn didn't work try npm install pod-install)

Start metro server:

$ yarn mobile

Run android:

$ yarn android

Run ios:

$ yarn ios

Android Build

Clean the build folders:

$ yarn android:clean

Create build:

$ yarn android:build

iOS Build

Open project in xcode:

$ yarn xcode

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published