$ yarn reset
$ cd web/yesplz-mobile
$ yarn start
Scripts | Descriptions |
---|---|
yarn reset | install dependencies across all packages. Important to do after added new dependencies in each packages |
yarn build | Build all /web packages |
yarn storybook | Run storybook for all packages (port: 9009) |
yarn test | Run tests of all packages |
Scripts | Descriptions |
---|---|
yarn start | Serve development server in specific port |
yarn build | Build project |
yarn analyze | Run bundle size analyzer. Must build the project first. |
yarn test | Run tests. add --watch for auto reload |
Scripts | Descriptions |
---|---|
yarn start | Serve development server in specific port |
yarn build | Build project |
yarn analyze | Run bundle size analyzer. Must build the project first. |
yarn test | Run tests. add --watch for auto reload |
- ssh to yesplz server.
- Go to
~/yesplz_front/
directory. git pull
to get last code updates or change branch if necessary.- Run
docker-compose stop
to stop running containers (usesudo
for non root users). - Run
docker-compose up -d --build
to start building the images (usesudo
for non root users). To start container without building the image, rundocker-compose up -d
.
- Go to
/packages/core-web/vf_svg
. - You can edit the svg parts. Note: The filters button won’t be merged, since it was moved to React component for reusability purpose.
- To merge assets, run
python merge_svg_assets.py
(or with usingpython3
) to producevf_bundle.svg
file (vf with horizontal thumbnails) andpython merge_svg_thumb_vertical_assets.py
to producevf_bundle_thumb_vertical.svg
(vf with vertical thumbnails).
- To update docker script, go to
/docker/
directory and modifyDockerfile
. Docker compose file is located on root directory. - There are environment variable configurations for mobile web (
/docker/.env
) and desktop web (/docker/.env.desktop
). (PRODUCTION) - You can also modify the nginx configuration at
/docker/nginx.conf
to change routing / redirect rules.
Add these extension in your chrome browser to help with debugging:
For vscode users, please install eslint addons and add this to vscode user settings:
"eslint.options": {
"configFile": ".eslintrc"
}
.env.local file in web\yesplz-* directory will override default .env