ouisys-component-library 0.0.1
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 +60 -0
- package/build/Disclaimers/Disclaimers.d.ts +3 -0
- package/build/Disclaimers/Disclaimers.stories.d.ts +7 -0
- package/build/Disclaimers/Disclaimers.types.d.ts +21 -0
- package/build/index.css +2 -0
- package/build/index.css.map +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.es.css +2 -0
- package/build/index.es.css.map +1 -0
- package/build/index.es.js +82 -0
- package/build/index.es.js.map +1 -0
- package/build/index.js +106 -0
- package/build/index.js.map +1 -0
- package/package.json +69 -0
package/README.md
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Ouisys Component Library
|
|
2
|
+
|
|
3
|
+
The code contained in this repository is a Component Library.
|
|
4
|
+
|
|
5
|
+
### Notes to keep in mind:
|
|
6
|
+
|
|
7
|
+
- **You don't have to clone this repo** in order to use the library, and this Component Library.
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Install CLI
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
yarn
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
### Storybook local env.
|
|
17
|
+
|
|
18
|
+
To start your local dev. server:
|
|
19
|
+
|
|
20
|
+
```bash
|
|
21
|
+
yarn storybook
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
To build Storybook static files:
|
|
25
|
+
|
|
26
|
+
```bash
|
|
27
|
+
yarn storybook:export
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
### Testing
|
|
31
|
+
|
|
32
|
+
To run tests on your local code:
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
yarn test
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Alternatively you can add the `--watch` flag for continued refresh and testing, as well as the `-u` flag to update your snapshots, when relevant and needed.
|
|
39
|
+
|
|
40
|
+
## Usage
|
|
41
|
+
|
|
42
|
+
```typescript
|
|
43
|
+
import React from 'react';
|
|
44
|
+
import { Button, ButtonProps } from 'ouisys-component-library/Button';
|
|
45
|
+
|
|
46
|
+
export const Component = ({
|
|
47
|
+
children
|
|
48
|
+
}: ButtonProps) => {
|
|
49
|
+
|
|
50
|
+
const renderComponent = () => (
|
|
51
|
+
<Component>
|
|
52
|
+
{childen}
|
|
53
|
+
</Component>
|
|
54
|
+
)
|
|
55
|
+
};
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Governance and contribution
|
|
59
|
+
|
|
60
|
+
To read on this topic, please do so [here](https://www.notion.so/sammedia/Contribute-8584924aec804effbd87d81184831fb4)
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare type ILegalFlows = "pin" | "mo" | "oneClick" | "click2sms" | "moRedir" | "ussd" | "tpayHe";
|
|
2
|
+
export interface ILegals {
|
|
3
|
+
id: number;
|
|
4
|
+
country: string;
|
|
5
|
+
service: string;
|
|
6
|
+
scenario: string;
|
|
7
|
+
language: string;
|
|
8
|
+
top_legal: string;
|
|
9
|
+
price_point: string;
|
|
10
|
+
disclaimer: string;
|
|
11
|
+
date_created: string;
|
|
12
|
+
extra_disclaimer: string;
|
|
13
|
+
flow?: ILegalFlows;
|
|
14
|
+
}
|
|
15
|
+
export interface DisclaimersProps {
|
|
16
|
+
locale: string;
|
|
17
|
+
legals: Array<ILegals>;
|
|
18
|
+
className?: string;
|
|
19
|
+
flow?: ILegalFlows;
|
|
20
|
+
dataQaId?: string;
|
|
21
|
+
}
|
package/build/index.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Disclaimers.module.scss"],"names":[],"mappings":"AAAA,mCACE,oBAAuB","file":"index.css","sourcesContent":[".wrapper {\n background-color: red; }\n"]}
|
package/build/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["Disclaimers.module.scss"],"names":[],"mappings":"AAAA,mCACE,oBAAuB","file":"index.es.css","sourcesContent":[".wrapper {\n background-color: red; }\n"]}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
var styles = {"wrapper":"Disclaimers-module_wrapper__yyrGN"};
|
|
4
|
+
|
|
5
|
+
var classnames = {exports: {}};
|
|
6
|
+
|
|
7
|
+
/*!
|
|
8
|
+
Copyright (c) 2018 Jed Watson.
|
|
9
|
+
Licensed under the MIT License (MIT), see
|
|
10
|
+
http://jedwatson.github.io/classnames
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
(function (module) {
|
|
14
|
+
/* global define */
|
|
15
|
+
|
|
16
|
+
(function () {
|
|
17
|
+
|
|
18
|
+
var hasOwn = {}.hasOwnProperty;
|
|
19
|
+
|
|
20
|
+
function classNames() {
|
|
21
|
+
var classes = [];
|
|
22
|
+
|
|
23
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
24
|
+
var arg = arguments[i];
|
|
25
|
+
if (!arg) continue;
|
|
26
|
+
|
|
27
|
+
var argType = typeof arg;
|
|
28
|
+
|
|
29
|
+
if (argType === 'string' || argType === 'number') {
|
|
30
|
+
classes.push(arg);
|
|
31
|
+
} else if (Array.isArray(arg)) {
|
|
32
|
+
if (arg.length) {
|
|
33
|
+
var inner = classNames.apply(null, arg);
|
|
34
|
+
if (inner) {
|
|
35
|
+
classes.push(inner);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
} else if (argType === 'object') {
|
|
39
|
+
if (arg.toString === Object.prototype.toString) {
|
|
40
|
+
for (var key in arg) {
|
|
41
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
42
|
+
classes.push(key);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
} else {
|
|
46
|
+
classes.push(arg.toString());
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
return classes.join(' ');
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (module.exports) {
|
|
55
|
+
classNames.default = classNames;
|
|
56
|
+
module.exports = classNames;
|
|
57
|
+
} else {
|
|
58
|
+
window.classNames = classNames;
|
|
59
|
+
}
|
|
60
|
+
}());
|
|
61
|
+
}(classnames));
|
|
62
|
+
|
|
63
|
+
var cn = classnames.exports;
|
|
64
|
+
|
|
65
|
+
var Disclaimers = function (_a) {
|
|
66
|
+
var locale = _a.locale, _b = _a.className, className = _b === void 0 ? '' : _b, legals = _a.legals, flow = _a.flow, _c = _a.dataQaId, dataQaId = _c === void 0 ? 'disclaimers' : _c;
|
|
67
|
+
var filteredLegals = legals.filter(function (obj) { return obj.flow === flow; });
|
|
68
|
+
var legalsArr = flow ? filteredLegals : legals;
|
|
69
|
+
var arrayToObject = function (array) {
|
|
70
|
+
return array.reduce(function (obj, item) {
|
|
71
|
+
obj[item.language] = item;
|
|
72
|
+
return obj;
|
|
73
|
+
}, {});
|
|
74
|
+
};
|
|
75
|
+
var legalsObject = arrayToObject(legalsArr);
|
|
76
|
+
var disclaimer = (legalsObject[locale] || '').disclaimer;
|
|
77
|
+
return (React.createElement("div", { "data-qa-id": dataQaId, className: cn(className, styles.wrapper) },
|
|
78
|
+
React.createElement("div", { dangerouslySetInnerHTML: { __html: disclaimer } })));
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export { Disclaimers };
|
|
82
|
+
//# sourceMappingURL=index.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n"],"names":[],"mappings":";;;;;;;;;;;;;AAKA;AACA;AACA,CAAC,YAAY;AAEb;AACA,CAAC,IAAI,MAAM,GAAG,EAAE,CAAC,cAAc,CAAC;AAChC;AACA,CAAC,SAAS,UAAU,GAAG;AACvB,EAAE,IAAI,OAAO,GAAG,EAAE,CAAC;AACnB;AACA,EAAE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;AAC7C,GAAG,IAAI,GAAG,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;AAC1B,GAAG,IAAI,CAAC,GAAG,EAAE,SAAS;AACtB;AACA,GAAG,IAAI,OAAO,GAAG,OAAO,GAAG,CAAC;AAC5B;AACA,GAAG,IAAI,OAAO,KAAK,QAAQ,I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106 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopNamespace(e) {
|
|
8
|
+
if (e && e.__esModule) return e;
|
|
9
|
+
var n = Object.create(null);
|
|
10
|
+
if (e) {
|
|
11
|
+
Object.keys(e).forEach(function (k) {
|
|
12
|
+
if (k !== 'default') {
|
|
13
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () { return e[k]; }
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
n["default"] = e;
|
|
22
|
+
return Object.freeze(n);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
var React__namespace = /*#__PURE__*/_interopNamespace(React);
|
|
26
|
+
|
|
27
|
+
var styles = {"wrapper":"Disclaimers-module_wrapper__yyrGN"};
|
|
28
|
+
|
|
29
|
+
var classnames = {exports: {}};
|
|
30
|
+
|
|
31
|
+
/*!
|
|
32
|
+
Copyright (c) 2018 Jed Watson.
|
|
33
|
+
Licensed under the MIT License (MIT), see
|
|
34
|
+
http://jedwatson.github.io/classnames
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
(function (module) {
|
|
38
|
+
/* global define */
|
|
39
|
+
|
|
40
|
+
(function () {
|
|
41
|
+
|
|
42
|
+
var hasOwn = {}.hasOwnProperty;
|
|
43
|
+
|
|
44
|
+
function classNames() {
|
|
45
|
+
var classes = [];
|
|
46
|
+
|
|
47
|
+
for (var i = 0; i < arguments.length; i++) {
|
|
48
|
+
var arg = arguments[i];
|
|
49
|
+
if (!arg) continue;
|
|
50
|
+
|
|
51
|
+
var argType = typeof arg;
|
|
52
|
+
|
|
53
|
+
if (argType === 'string' || argType === 'number') {
|
|
54
|
+
classes.push(arg);
|
|
55
|
+
} else if (Array.isArray(arg)) {
|
|
56
|
+
if (arg.length) {
|
|
57
|
+
var inner = classNames.apply(null, arg);
|
|
58
|
+
if (inner) {
|
|
59
|
+
classes.push(inner);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
} else if (argType === 'object') {
|
|
63
|
+
if (arg.toString === Object.prototype.toString) {
|
|
64
|
+
for (var key in arg) {
|
|
65
|
+
if (hasOwn.call(arg, key) && arg[key]) {
|
|
66
|
+
classes.push(key);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
classes.push(arg.toString());
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return classes.join(' ');
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (module.exports) {
|
|
79
|
+
classNames.default = classNames;
|
|
80
|
+
module.exports = classNames;
|
|
81
|
+
} else {
|
|
82
|
+
window.classNames = classNames;
|
|
83
|
+
}
|
|
84
|
+
}());
|
|
85
|
+
}(classnames));
|
|
86
|
+
|
|
87
|
+
var cn = classnames.exports;
|
|
88
|
+
|
|
89
|
+
var Disclaimers = function (_a) {
|
|
90
|
+
var locale = _a.locale, _b = _a.className, className = _b === void 0 ? '' : _b, legals = _a.legals, flow = _a.flow, _c = _a.dataQaId, dataQaId = _c === void 0 ? 'disclaimers' : _c;
|
|
91
|
+
var filteredLegals = legals.filter(function (obj) { return obj.flow === flow; });
|
|
92
|
+
var legalsArr = flow ? filteredLegals : legals;
|
|
93
|
+
var arrayToObject = function (array) {
|
|
94
|
+
return array.reduce(function (obj, item) {
|
|
95
|
+
obj[item.language] = item;
|
|
96
|
+
return obj;
|
|
97
|
+
}, {});
|
|
98
|
+
};
|
|
99
|
+
var legalsObject = arrayToObject(legalsArr);
|
|
100
|
+
var disclaimer = (legalsObject[locale] || '').disclaimer;
|
|
101
|
+
return (React__namespace.createElement("div", { "data-qa-id": dataQaId, className: cn(className, styles.wrapper) },
|
|
102
|
+
React__namespace.createElement("div", { dangerouslySetInnerHTML: { __html: disclaimer } })));
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
exports.Disclaimers = Disclaimers;
|
|
106
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n Copyright (c) 2018 Jed Watson.\n Licensed under the MIT License (MIT), see\n http://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames() {\n\t\tvar classes = [];\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (!arg) continue;\n\n\t\t\tvar argType = typeof arg;\n\n\t\t\tif (argType === 'string' || argType === 'number') {\n\t\t\t\tclasses.push(arg);\n\t\t\t} else if (Array.isArray(arg)) {\n\t\t\t\tif (arg.length) {\n\t\t\t\t\tvar inner = classNames.apply(null, arg);\n\t\t\t\t\tif (inner) {\n\t\t\t\t\t\tclasses.push(inner);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else if (argType === 'object') {\n\t\t\t\tif (arg.toString === Object.prototype.toString) {\n\t\t\t\t\tfor (var key in arg) {\n\t\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn classes.join(' ');\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n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C7C,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzB,OAAO;AACP,MAAM;AACN,KAAK,MAAM;AACX,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;AAClC,KAAK;AACL,IAAI;AACJ,GAAG;AACH;AACA,EAAE,OAAO,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC3B,EAAE;AACF;AACA,CAAC,IAAqC,MAAM,CAAC,OAAO,EAAE;AACtD,EAAE,UAAU,CAAC,OAAO,GAAG,UAAU,CAAC;AAClC,EAAE,iBAAiB,UAAU,CAAC;AAC9B,EAAE,MAKM;AACR,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,CAAC;AACjC,EAAE;AACF,CAAC,EAAE;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ouisys-component-library",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Ouisys Components",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"module": "build/index.es.js",
|
|
7
|
+
"files": [
|
|
8
|
+
"build"
|
|
9
|
+
],
|
|
10
|
+
"author": "Emmancipate <emman@sam-media.com>",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"devDependencies": {
|
|
13
|
+
"@babel/core": "^7.16.7",
|
|
14
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
15
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
16
|
+
"@storybook/addon-actions": "^6.4.13",
|
|
17
|
+
"@storybook/addon-essentials": "^6.4.13",
|
|
18
|
+
"@storybook/addon-links": "^6.4.13",
|
|
19
|
+
"@storybook/preset-scss": "^1.0.3",
|
|
20
|
+
"@storybook/react": "^6.4.13",
|
|
21
|
+
"@testing-library/jest-dom": "^5.16.1",
|
|
22
|
+
"@types/react": "^17.0.38",
|
|
23
|
+
"@typescript-eslint/eslint-plugin": "^4.19.0",
|
|
24
|
+
"@typescript-eslint/parser": "^4.19.0",
|
|
25
|
+
"babel-loader": "^8.2.3",
|
|
26
|
+
"babel-preset-react-app": "^10.0.1",
|
|
27
|
+
"classnames": "^2.3.1",
|
|
28
|
+
"eslint": "^7.16.0",
|
|
29
|
+
"eslint-config-airbnb": "^18.2.1",
|
|
30
|
+
"eslint-config-ouisys": "0.0.1",
|
|
31
|
+
"eslint-config-prettier": "^7.1.0",
|
|
32
|
+
"eslint-plugin-import": "^2.22.1",
|
|
33
|
+
"eslint-plugin-jest": "^24.1.3",
|
|
34
|
+
"eslint-plugin-jsx-a11y": "^6.4.1",
|
|
35
|
+
"eslint-plugin-prettier": "^3.3.0",
|
|
36
|
+
"eslint-plugin-react": "^7.21.5",
|
|
37
|
+
"eslint-plugin-react-hooks": "^4.2.0",
|
|
38
|
+
"eslint-plugin-testing-library": "^3.10.1",
|
|
39
|
+
"jest": "^27.4.7",
|
|
40
|
+
"node-sass": "^6",
|
|
41
|
+
"prettier": "^2.2.1",
|
|
42
|
+
"prettier-plugin-organize-imports": "^1.1.1",
|
|
43
|
+
"react": "^17.0.2",
|
|
44
|
+
"react-dom": "^17.0.2",
|
|
45
|
+
"rollup": "^2.64.0",
|
|
46
|
+
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
47
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
48
|
+
"rollup-plugin-typescript2": "^0.31.1",
|
|
49
|
+
"sass-loader": "^10",
|
|
50
|
+
"ts-jest": "^27.1.3",
|
|
51
|
+
"typescript": "^4.5.4"
|
|
52
|
+
},
|
|
53
|
+
"dependencies": {},
|
|
54
|
+
"peerDependencies": {
|
|
55
|
+
"react": ">=16.8.0",
|
|
56
|
+
"react-dom": ">=16.8.0"
|
|
57
|
+
},
|
|
58
|
+
"scripts": {
|
|
59
|
+
"build": "rollup -c",
|
|
60
|
+
"storybook": "start-storybook -p 6006",
|
|
61
|
+
"storybook:export": "build-storybook",
|
|
62
|
+
"build-storybook": "build-storybook",
|
|
63
|
+
"clean": "rm -rf ./dist && rm -rf ./build",
|
|
64
|
+
"watch": "tsc -b -w --preserveWatchOutput",
|
|
65
|
+
"test": "jest",
|
|
66
|
+
"test:watch": "jest --watch",
|
|
67
|
+
"lint": "eslint \"src/**/*.{ts,tsx,js,jsx}\""
|
|
68
|
+
}
|
|
69
|
+
}
|