@turtlemint/tm-components-web-test v1.0.26
Installation
yarn add '@turtlemint/tm-components'
Usage
import Button from '@turtlemint/tm-components/button';
Contribution
- git clone https://gitlab.com/turtlemint/tm-components.git
- yarn install
- yarn start
- do your thing and submit MR
What's more in this from base repo?
- Storybook configuration
Available Scripts
In the project directory, you can run:
yarn start
Runs the app in the development mode. Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits. You will also see any lint errors in the console.
yarn test
Launches the test runner in the interactive watch mode. See the section about running tests for more information.
yarn run build
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes. Your app is ready to be deployed!
See the section about deployment for more information.
yarn run build:staging
Builds the app for staging to the build
folder.
It picks up the environment from the .env-cmdrc
file staging
object
yarn run lint
It simply runs tslint to list down the errors.
yarn run lint:fix
It fixes the errors if any of the lint
yarn analyze
This checks for bundle size and spins up a separate link for a view window
Learn More
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.
Common Issues with git url
Issue - fatal: could not read Username for 'https://gitlab.com': terminal prompts disabled
Solution - Run this command git config --global --add url."git@gitlab.com:".insteadOf "https://gitlab.com"