freemium-ui 2.0.0-beta.0 → 2.0.0-beta.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,46 +1,86 @@
1
- # Getting Started with Create React App
1
+ <h1 align="center">Freemium Ui</h1>
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ ## [DEMO](https://freemium-ui.netlify.app)
4
4
 
5
- ## Available Scripts
5
+ [React](https://reactjs.org/) based light weight ui components based on [Styled Components](https://styled-components.com/)
6
6
 
7
- In the project directory, you can run:
7
+ ## Installation
8
8
 
9
- ### `npm start`
9
+ Peer Dependencies to be installed
10
10
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
11
+ ```
12
+ npm install styled-components
13
+ ```
13
14
 
14
- The page will reload if you make edits.\
15
- You will also see any lint errors in the console.
15
+ Install the package
16
16
 
17
- ### `npm test`
17
+ ```
18
+ npm install freemium-ui
19
+ ```
18
20
 
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
+ Please note that `@next` will only point to pre-releases; to get the latest stable release use `@latest` instead.
21
22
 
22
- ### `npm run build`
23
+ ## Usage
23
24
 
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
25
+ Here is a quick example to get you started, **it's all you need**:
26
26
 
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
27
+ ```jsx
28
+ import React from 'react';
29
+ import ReactDOM from 'react-dom';
30
+ import { Button } from 'freemium-ui';
31
+ // import { Button } from 'freemium-ui/Button';
29
32
 
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
33
+ function App() {
34
+ return <Button>Freemium Button</Button>;
35
+ }
31
36
 
32
- ### `npm run eject`
37
+ ReactDOM.render(<App />, document.querySelector('#app'));
38
+ ```
33
39
 
34
- **Note: this is a one-way operation. Once you `eject`, you can’t go back!**
40
+ ## Contribution
35
41
 
36
- 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.
42
+ Install Dependencies
37
43
 
38
- 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.
44
+ ```
45
+ npm install
46
+ ```
39
47
 
40
- 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.
48
+ Start the app using storybook
41
49
 
42
- ## Learn More
50
+ ```
51
+ npm run storybook
52
+ ```
43
53
 
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
54
+ Build Freemium Ui Core Components
45
55
 
46
- To learn React, check out the [React documentation](https://reactjs.org/).
56
+ ```
57
+ npm run build
58
+ ```
59
+
60
+ JavaScript heap out of memory could lead to build failure. Check the [official docs](https://rollupjs.org/troubleshooting/#error-javascript-heap-out-of-memory). Or execute any of the required below config
61
+
62
+ ```
63
+ export NODE_OPTIONS="--max-old-space-size=8192"
64
+ export NODE_OPTIONS="--max-old-space-size=12288"
65
+ export NODE_OPTIONS="--max-old-space-size=16384"
66
+ ```
67
+
68
+ To check the heap size in MB
69
+
70
+ ```
71
+ node -e 'console.log(v8.getHeapStatistics().heap_size_limit/(1024*1024))'
72
+ ```
73
+
74
+ Generate a PAT with `admin:org`, `write:packages`, `read:packages`, `delete:packages`
75
+
76
+ Authenticate to npm github package
77
+
78
+ ```
79
+ npm login --registry=https://registry.npmjs.org/
80
+ ```
81
+
82
+ Publish the package to npm
83
+
84
+ ```
85
+ npm publish
86
+ ```