This repository is a template for banking app plugins. The application is built using react and react-native
Follow the https://github.com/Vizir/styleguide/blob/master/git.md guide, except instead of using the card id for commits/branchs use the scope of what you are doing.
Use the name of the jira card. Eg: VB-9
Use the format {type}({scope}): {message}. Eg: feat(buttons): added rounded option fix(input): fixed input mask
README.md - You are here!
\lib
\api (api requests related code)
\[endpoint] (request for specific endpoint)
\common (Reusable components with logic)
\constants
\contexts
\entities
\errors (Error classes and translations)
\i18n
\layout (Dumb UI components)
\navigation (Navigation related code)
\redux
\[scope]
[action].tsx
index.tsx
\utils
entry.ts (entrypoint code - register hooks here)
\component
index.tsx
component.tsx
component.native.tsx
component.styles.tsx
component.styles.native.tsx
component.styles.base.tsx
component.container.tsx
types.ts
To setup the application:
- Check if the node version is
10.19
; - Install the dependencies
yarn install
;
To generate an updated distribution, run yarn release
When developing, use the command yarn dev
to watch for changes.
If you are developing inside an app, you can change the outdir in tsconfig.json
to output the dist folder directly to the dist folder inside app's node_modules
There is a docker container configured for building the library, follow these steps to setup and run it:
-
Install docker and docker-compose
-
Install the dependencies:
docker-compose run lib yarn install
- Generate distribution:
docker-compose run lib