2.3.30 • Published 15 days ago

@ushurengg/uicomponents v2.3.30

Weekly downloads
-
License
-
Repository
-
Last release
15 days ago

Using the Makefile to run the Bundle / Build commands

Bundle

Bundle command is used for bundling the React components together as javascript, which can be used with BackboneJS project

Usage:

make bundle <buildversion>

Build

Build command is used for the purpose of building the components as an npm package.

Usage:

make build

After this command is run, we need to run the following commands:

  1. Update version number: npm version [\<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease --preid=\<prerelease-id> | from-git]

Usage:

npm version patch

The above command will save the package version in package.json as 1.0.2 if the current version in package.json is 1.0.1

Note: While making a release please tag this repo as well with that release number

  1. Publish to npm registry: npm publish

Usage:

npm publish

Note: For publish, we need to have our npm token configured in $HOME/.npmrc file. Please get in touch with Devops team for the token

  1. Referencing the components in React Projects

    • Update $HOME/.npmrc with correct npm token
    • run the following command to install the package
    npm install @ushurengg/uicomponents

Publishing storybook

  1. Build Storybook npm run storybook:build
  2. Login to AWS with ushur developer account as Devops
  3. Go to S3 bucket storybook2
  4. Create a backup of the existing content
  5. Upload the content of storybook-static to storybook2 S3 bucket

Snyk Issues

Snyk is a tool that automates finding vulnerabilities in code.

Snyk automatically runs in CI/CD.

If you want to run Snyk locally you can run:

SNYK_TOKEN=<token> npm run snyk

where SNYK_TOKEN is an env variable you can get from here.

If Snyk finds an issue in open source code, evaluate the issue and see if it is worth fixing.

For example, if a particular item involves a difficult upgrade path, consider ignoring it for now and create a JIRA ticket to address it in the future. Note at the time of writing, it is not clear how to provide an unlimited expiry date via the CLI.

snyk ignore --id=SNYK-JS-LOADERUTILS-3042992 --reason="React Scripts upgrade required" --expiry=2025-06-07

Ignored issues are stored in the file .snyk at the root of ushur-ui directory.

Similarly, if Snyk finds an issue in our own repo code, in some cases you can disable the issue if required. For example,

// file deepcode ignore InsufficientPostmessageValidation: This issue is ignored because it will never be triggered. 

Use the right click context button in the VsCode IDE if you have the Snyk extension installed and choose Quick Fix to 'ignore this particular suggestion'.

However, in some cases Snyk will not allow you to ignore the issue if is severe like a XSS issue. We should fix those issues in our code.

Worst case we can ignore a whole file as follows:

snyk ignore --file-path=src/App.tsx

Getting Started with Create React App

This project was bootstrapped with Create React App.

Available Scripts

In the project directory, you can run:

npm 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.

npm test

Launches the test runner in the interactive watch mode.\ See the section about running tests for more information.

npm 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.

npm run eject

Note: this is a one-way operation. Once you eject, you can’t go back!

If you aren’t satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

npm run bundle

Note:This will make a bundle.js and index.css file in the uicomponents/dist folder

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify

2.3.30

15 days ago

2.3.29

21 days ago

2.3.28

2 months ago

2.3.27

2 months ago

2.3.26

2 months ago

2.3.25

2 months ago

2.3.24

3 months ago

2.3.23

3 months ago

2.3.22

3 months ago

2.3.16-1

3 months ago

2.3.21

3 months ago

2.3.20

4 months ago

2.3.17

4 months ago

2.3.19

4 months ago

2.3.18

4 months ago

2.3.16

5 months ago

2.3.15

5 months ago

2.3.14

5 months ago

2.3.13

5 months ago

2.3.12

6 months ago

2.3.11

6 months ago

2.3.10

6 months ago

2.3.9

6 months ago

2.1.602

6 months ago

2.3.8

6 months ago

2.3.1-fix-export-5

6 months ago

2.3.1-fix-export-4

6 months ago

2.3.7

6 months ago

2.3.1-fix-export-2

6 months ago

2.3.6

6 months ago

2.3.5

6 months ago

2.1.6002

7 months ago

2.3.4

7 months ago

2.3.3

7 months ago

2.1.601

7 months ago

2.3.1

7 months ago

2.2.3

7 months ago

2.2.5

7 months ago

2.2.4

8 months ago

2.2.2

8 months ago

2.2.1

8 months ago

2.2.0

8 months ago

2.1.12

8 months ago

2.1.11

8 months ago

2.1.10

8 months ago

2.1.9

8 months ago

2.1.8

9 months ago

2.1.7

9 months ago

2.1.6

9 months ago

2.1.5

9 months ago

2.1.3

9 months ago

2.1.4

9 months ago

2.1.2

9 months ago

2.1.1

9 months ago

2.1.0

10 months ago

2.0.37

10 months ago

2.0.36

10 months ago

2.0.35

10 months ago

2.0.32-1

11 months ago

2.0.34

11 months ago

2.0.33

11 months ago

2.0.32

11 months ago

2.0.31

11 months ago

2.0.30

11 months ago

2.0.29

11 months ago

2.0.28

12 months ago

2.0.27

12 months ago

2.0.26

1 year ago

2.0.25

1 year ago

2.0.24

1 year ago

2.0.23

1 year ago

2.0.22

1 year ago

2.0.21

1 year ago

2.0.20

1 year ago

2.0.19

1 year ago

2.0.18

1 year ago

2.0.17

1 year ago

2.0.16

1 year ago

2.0.15

1 year ago

2.0.14

1 year ago

2.0.12

1 year ago

2.0.11

1 year ago

2.0.10

1 year ago

2.0.9

1 year ago

2.0.8

1 year ago

2.0.7

1 year ago

2.0.6

1 year ago

2.0.5

1 year ago

2.0.4

1 year ago

2.0.3

1 year ago

0.2.101

1 year ago

0.2.100

1 year ago

2.0.2

1 year ago

2.0.1

1 year ago

0.2.99

1 year ago

0.2.98

1 year ago

0.2.97

1 year ago

0.2.96

1 year ago

0.2.95

1 year ago

0.2.94

1 year ago

0.2.93

1 year ago

0.2.92

1 year ago

0.2.91

1 year ago

0.2.90

1 year ago

0.2.89

1 year ago

0.2.88

1 year ago

0.2.87

1 year ago

0.2.86

1 year ago

0.2.85

1 year ago

0.2.84

1 year ago

0.2.83

1 year ago

0.2.82

1 year ago

0.2.81

2 years ago

0.2.80

2 years ago

0.2.79

2 years ago

0.2.78

2 years ago

0.2.77

2 years ago

0.2.76

2 years ago

0.2.75

2 years ago

0.2.74

2 years ago

0.2.73

2 years ago

0.2.72

2 years ago

0.2.71

2 years ago

0.2.70

2 years ago

0.2.69

2 years ago

0.2.68

2 years ago

0.2.67

2 years ago

0.2.66

2 years ago

0.2.65

2 years ago

0.2.64

2 years ago

0.2.63

2 years ago

0.2.62

2 years ago

0.2.61

2 years ago

0.2.60

2 years ago

0.2.59

2 years ago

0.2.58

2 years ago

0.2.57

2 years ago

0.2.56

2 years ago

0.2.55

2 years ago

0.2.54

2 years ago

0.2.53

2 years ago

0.2.52

2 years ago

0.2.51

2 years ago

0.2.50

2 years ago

0.2.49

2 years ago

0.2.48

2 years ago

0.2.47

2 years ago

0.2.46

2 years ago

0.2.45

2 years ago

0.2.44

2 years ago

0.2.43

2 years ago

0.2.42

2 years ago

0.2.41

2 years ago

0.2.40

2 years ago

0.2.39

2 years ago

0.2.38

2 years ago

0.2.37

2 years ago

0.2.36

2 years ago

0.2.35

2 years ago

0.2.34

2 years ago

0.2.33

2 years ago

0.2.32

2 years ago

0.2.31

2 years ago

0.2.30

2 years ago

0.2.29

2 years ago

0.2.28

2 years ago

0.2.27

2 years ago

0.2.26

2 years ago

0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.8

3 years ago

0.1.7

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago