Martspec is focused on promoting a healthy lifestyle. Our objective is to assist users in leading a healthier lifestyle by considering their vitamin and mineral intake, psychological well-being, and body characteristics.
nvm current # Check current *node* version
nvm use 16.16.0 # Use *node* version 16
git clone <repo link> # Clone repo to your local computer
yarn install # Install all dependencies
yarn svr # Run website locally
yarn outdated # See what packages can be updated
yarn upgrade-interactive --latest # Interactively update to the latest versions
stateDiagram-v2
classDef redEvent fill:#f00,color:white,font-weight:bold,stroke-width:2px,stroke:yellow
classDef greenEvent fill:#00A36C,color:white,font-weight:bold,stroke-width:2px,stroke:orange
[*] --> Main: clone repo
Main --> MS_123: Create your branch
MS_123 --> PullRequest: Create PR to main
note left of MS_123
Name it with Jira ticket.
Example MS-123
end note
PullRequest --> Approved:::greenEvent
PullRequest --> Rejected:::redEvent
Rejected --> MS_123: fix issues
Approved --> Main: merge
Main --> martspec.com: deploy to website
martspec.com --> [*]
note left of martspec.com
git checkout main
yarn deploy
end note
We use ladle to create and use example-components (stories).
Go to martspec.com/development to see the components we have developed.
commands:
yarn ladle serve # Start dev server locally
We use webp format for non SVG images on the site. When we get new images from designer do this:
-
Copy PNG images to an empty /src/img/new folder.
-
Run script /src/img/img.sh:
- open the Git Bash terminal
- run
./src/img/img.sh
-
Delete images from the /src/img/new folder after checking the resulting images.
This will create .webp images in /src/img folder whose max size would be 512px.
-
DIR_INPUT
- the source directory with the images to convert (relative to the script folder). Default valuenew
for /src/img/new folder. -
DIR_OUT
- the output directory with the resulting images (relative to the script folder). Default empty value for /src/img folder. -
MAX_SIZE
- maximum size in px for the image height and width. Default value:512
.