ouisys-component-library 0.0.2 → 0.0.3
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 +1 -3
- package/build/index.es.js +5 -6
- package/build/index.es.js.map +1 -1
- package/build/index.js +5 -5
- package/build/index.js.map +1 -1
- package/build/src/Disclaimers/Disclaimers.d.ts +3 -0
- package/build/{Disclaimers → src/Disclaimers}/Disclaimers.stories.d.ts +0 -0
- package/build/{Disclaimers → src/Disclaimers}/Disclaimers.test.d.ts +0 -0
- package/build/{Disclaimers → src/Disclaimers}/Disclaimers.types.d.ts +8 -2
- package/build/src/MOLink/MOLink.d.ts +4 -0
- package/build/src/MOLink/MOLink.stories.d.ts +32 -0
- package/build/src/MOLink/MOLink.test.d.ts +1 -0
- package/build/src/MOLink/MOLink.types.d.ts +10 -0
- package/build/src/PricePoint/PricePoint.d.ts +4 -0
- package/build/src/PricePoint/PricePoint.stories.d.ts +41 -0
- package/build/src/PricePoint/PricePoint.test.d.ts +1 -0
- package/build/src/index.d.ts +2 -0
- package/build/{utils → src/utils}/test/index.d.ts +1 -1
- package/package.json +26 -8
- package/build/Disclaimers/Disclaimers.d.ts +0 -3
- package/build/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -6,11 +6,10 @@ The code contained in this repository is a Component Library.
|
|
|
6
6
|
|
|
7
7
|
- **You don't have to clone this repo** in order to use the library, and this Component Library.
|
|
8
8
|
|
|
9
|
-
|
|
10
9
|
## Install CLI
|
|
11
10
|
|
|
12
11
|
```bash
|
|
13
|
-
yarn
|
|
12
|
+
yarn
|
|
14
13
|
```
|
|
15
14
|
|
|
16
15
|
### Storybook local env.
|
|
@@ -39,7 +38,6 @@ Alternatively you can add the `--watch` flag for continued refresh and testing,
|
|
|
39
38
|
|
|
40
39
|
## Usage
|
|
41
40
|
|
|
42
|
-
|
|
43
41
|
```bash
|
|
44
42
|
yarn add ouisys-component-library@latest
|
|
45
43
|
```
|
package/build/index.es.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import e from"react";var r,t={exports:{}};
|
|
2
2
|
/*!
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
*/
|
|
7
|
-
e=a,function(){var r={}.hasOwnProperty;function t(){for(var e=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var n=typeof i;if("string"===n||"number"===n)e.push(i);else if(Array.isArray(i)){if(i.length){var o=t.apply(null,i);o&&e.push(o)}}else if("object"===n)if(i.toString===Object.prototype.toString)for(var l in i)r.call(i,l)&&i[l]&&e.push(l);else e.push(i.toString())}}return e.join(" ")}e.exports?(t.default=t,e.exports=t):window.classNames=t}();var i=a.exports,n=function(e){var a=e.locale,n=e.className,o=void 0===n?"":n,l=e.legals,s=e.flow,u=e.dataQaId,c=void 0===u?"disclaimers":u,f=l.filter((function(r){return r.flow===s})),p=((s?f:l).reduce((function(r,e){return r[e.language]=e,r}),{})[a]||"").disclaimer;return r.createElement("div",{"data-qa-id":c,className:i(o,t)},r.createElement("div",{dangerouslySetInnerHTML:{__html:p}}))};export{n as Disclaimers};
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
|
+
*/r=t,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var n=arguments[a];if(n){var i=typeof n;if("string"===i||"number"===i)r.push(n);else if(Array.isArray(n)){if(n.length){var o=t.apply(null,n);o&&r.push(o)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){r.push(n.toString());continue}for(var l in n)e.call(n,l)&&n[l]&&r.push(l)}}}return r.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var a=t.exports,n="Disclaimers-module_wrapper__yyrGN";function i(r){var t=r.locale,i=r.className,o=void 0===i?"":i,l=r.legals,s=r.flow,c=r.dataQaId,u=void 0===c?"disclaimers":c,d=r.mcc,f=void 0===d?"":d,m=l.filter((function(e){return e.flow===s})),p=(s?m:l).reduce((function(e,r){return e[r.language]=r,e}),{}),v=(p[t]||"").disclaimer,g=(p[t]||"").mcc_disclaimer;return e.createElement("div",{"data-qa-id":u,className:a(o,n)},g&&f&&e.createElement("div",{dangerouslySetInnerHTML:{__html:g[f.toLowerCase()]}})||e.createElement("div",{dangerouslySetInnerHTML:{__html:v}})," ")}export{i as Disclaimers};
|
|
8
7
|
//# sourceMappingURL=index.es.js.map
|
package/build/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n
|
|
1
|
+
{"version":3,"file":"index.es.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\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 && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\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":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","window"],"mappings":";;;;;MAOC,WAGA,IAAIA,EAAS,CAAE,EAACC,eAGhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,EAEd,OACK,GAAgB,WAAZJ,EAAsB,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,WAAaP,EAAIO,SAASA,WAAWG,SAAS,iBAAkB,CACrGd,EAAQM,KAAKF,EAAIO,YACjB,QACA,CAED,IAAK,IAAII,KAAOX,EACXP,EAAOmB,KAAKZ,EAAKW,IAAQX,EAAIW,IAChCf,EAAQM,KAAKS,EAGf,CAxBkB,CAyBnB,CAED,OAAOf,EAAQiB,KAAK,IACpB,CAEoCC,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,EAAAC,QAAiBpB,GAOjBsB,OAAOtB,WAAaA,CAEtB,CApDA"}
|
package/build/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";function e(e){
|
|
1
|
+
"use strict";function e(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}Object.defineProperty(exports,"__esModule",{value:!0});var r,t=e(require("react")),a={exports:{}};
|
|
2
2
|
/*!
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
Copyright (c) 2018 Jed Watson.
|
|
4
|
+
Licensed under the MIT License (MIT), see
|
|
5
|
+
http://jedwatson.github.io/classnames
|
|
6
6
|
*/
|
|
7
|
-
r=
|
|
7
|
+
r=a,function(){var e={}.hasOwnProperty;function t(){for(var r=[],a=0;a<arguments.length;a++){var i=arguments[a];if(i){var n=typeof i;if("string"===n||"number"===n)r.push(i);else if(Array.isArray(i)){if(i.length){var o=t.apply(null,i);o&&r.push(o)}}else if("object"===n){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var l in i)e.call(i,l)&&i[l]&&r.push(l)}}}return r.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t}();var i=a.exports,n="Disclaimers-module_wrapper__yyrGN";exports.Disclaimers=function(e){var r=e.locale,a=e.className,o=void 0===a?"":a,l=e.legals,s=e.flow,u=e.dataQaId,c=void 0===u?"disclaimers":u,d=e.mcc,f=void 0===d?"":d,p=l.filter((function(e){return e.flow===s})),m=(s?p:l).reduce((function(e,r){return e[r.language]=r,e}),{}),v=(m[r]||"").disclaimer,g=(m[r]||"").mcc_disclaimer;return t.default.createElement("div",{"data-qa-id":c,className:i(o,n)},g&&f&&t.default.createElement("div",{dangerouslySetInnerHTML:{__html:g[f.toLowerCase()]}})||t.default.createElement("div",{dangerouslySetInnerHTML:{__html:v}})," ")};
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../node_modules/classnames/index.js"],"sourcesContent":["/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\tvar nativeCodeString = '[native code]';\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 && !arg.toString.toString().includes('[native code]')) {\n\t\t\t\t\tclasses.push(arg.toString());\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\n\t\t\t\tfor (var key in arg) {\n\t\t\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\t\t\tclasses.push(key);\n\t\t\t\t\t}\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":["hasOwn","hasOwnProperty","classNames","classes","i","arguments","length","arg","argType","push","Array","isArray","inner","apply","toString","Object","prototype","includes","key","call","join","module","exports","default","window"],"mappings":";;;;;;IAOC,WAGA,IAAIA,EAAS,CAAE,EAACC,eAGhB,SAASC,IAGR,IAFA,IAAIC,EAAU,GAELC,EAAI,EAAGA,EAAIC,UAAUC,OAAQF,IAAK,CAC1C,IAAIG,EAAMF,UAAUD,GACpB,GAAKG,EAAL,CAEA,IAAIC,SAAiBD,EAErB,GAAgB,WAAZC,GAAoC,WAAZA,EAC3BL,EAAQM,KAAKF,QACP,GAAIG,MAAMC,QAAQJ,IACxB,GAAIA,EAAID,OAAQ,CACf,IAAIM,EAAQV,EAAWW,MAAM,KAAMN,GAC/BK,GACHT,EAAQM,KAAKG,EAEd,OACK,GAAgB,WAAZJ,EAAsB,CAChC,GAAID,EAAIO,WAAaC,OAAOC,UAAUF,WAAaP,EAAIO,SAASA,WAAWG,SAAS,iBAAkB,CACrGd,EAAQM,KAAKF,EAAIO,YACjB,QACA,CAED,IAAK,IAAII,KAAOX,EACXP,EAAOmB,KAAKZ,EAAKW,IAAQX,EAAIW,IAChCf,EAAQM,KAAKS,EAGf,CAxBkB,CAyBnB,CAED,OAAOf,EAAQiB,KAAK,IACpB,CAEoCC,EAAOC,SAC3CpB,EAAWqB,QAAUrB,EACrBmB,EAAAC,QAAiBpB,GAOjBsB,OAAOtB,WAAaA,CAEtB,CApDA"}
|
|
File without changes
|
|
File without changes
|
|
@@ -18,13 +18,19 @@ export interface ILegals {
|
|
|
18
18
|
disclaimer: string;
|
|
19
19
|
date_created: string;
|
|
20
20
|
extra_disclaimer: string;
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
mcc_disclaimer: {
|
|
22
|
+
[key: string]: string;
|
|
23
|
+
} | null;
|
|
24
|
+
operator_price_point: {
|
|
25
|
+
[key: string]: string;
|
|
26
|
+
} | null;
|
|
27
|
+
flow?: ILegalFlows;
|
|
23
28
|
}
|
|
24
29
|
export interface DisclaimersProps {
|
|
25
30
|
locale: string;
|
|
26
31
|
legals: Array<ILegals>;
|
|
27
32
|
className?: string;
|
|
28
33
|
flow?: ILegalFlows;
|
|
34
|
+
mcc?: string;
|
|
29
35
|
dataQaId?: string;
|
|
30
36
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IKeywordShortcode, MOLinkProps } from './MOLink.types';
|
|
3
|
+
export declare const formatSMSLink: (keywordAndShortcode: IKeywordShortcode, useOpenAddresses?: boolean) => string;
|
|
4
|
+
export declare const MOLink: React.ComponentType<MOLinkProps>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { Story } from '@storybook/react';
|
|
2
|
+
import { MOLinkProps } from './MOLink.types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
importObject: string;
|
|
8
|
+
importPath: string;
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
className: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
dataQaId: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
keywordAndShortcode: {
|
|
24
|
+
control: {
|
|
25
|
+
type: string;
|
|
26
|
+
};
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
export default _default;
|
|
32
|
+
export declare const Main: Story<MOLinkProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface IKeywordShortcode {
|
|
3
|
+
keyword: string;
|
|
4
|
+
shortcode: string;
|
|
5
|
+
}
|
|
6
|
+
export declare type MOLinkProps = {
|
|
7
|
+
keywordAndShortcode: IKeywordShortcode;
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
dataQaId?: string;
|
|
10
|
+
} & React.HTMLAttributes<HTMLAnchorElement>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { Story } from '@storybook/react';
|
|
2
|
+
import { PricePointProps } from './PricePoint.types';
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
importObject: string;
|
|
8
|
+
importPath: string;
|
|
9
|
+
};
|
|
10
|
+
argTypes: {
|
|
11
|
+
locale: {
|
|
12
|
+
control: {
|
|
13
|
+
type: string;
|
|
14
|
+
};
|
|
15
|
+
description: string;
|
|
16
|
+
};
|
|
17
|
+
className: {
|
|
18
|
+
control: {
|
|
19
|
+
type: string;
|
|
20
|
+
};
|
|
21
|
+
description: string;
|
|
22
|
+
};
|
|
23
|
+
legals: {
|
|
24
|
+
description: string;
|
|
25
|
+
};
|
|
26
|
+
flow: {
|
|
27
|
+
control: {
|
|
28
|
+
type: string;
|
|
29
|
+
};
|
|
30
|
+
description: string;
|
|
31
|
+
};
|
|
32
|
+
dataQaId: {
|
|
33
|
+
control: {
|
|
34
|
+
type: string;
|
|
35
|
+
};
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
41
|
+
export declare const Main: Story<PricePointProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RenderOptions } from '@testing-library/react';
|
|
2
2
|
import React, { ReactElement } from 'react';
|
|
3
3
|
import renderer from 'react-test-renderer';
|
|
4
|
-
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions
|
|
4
|
+
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'wrapper'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
5
5
|
declare const jsonRenderer: (ui: React.ReactNode) => renderer.ReactTestRendererJSON | renderer.ReactTestRendererJSON[] | null;
|
|
6
6
|
export * from '@testing-library/react';
|
|
7
7
|
export { customRender as render, jsonRenderer };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ouisys-component-library",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.3",
|
|
4
4
|
"description": "Ouisys Components",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"module": "build/index.es.js",
|
|
@@ -41,10 +41,12 @@
|
|
|
41
41
|
"eslint-plugin-testing-library": "^3.10.1",
|
|
42
42
|
"identity-obj-proxy": "^3.0.0",
|
|
43
43
|
"jest": "^27.4.7",
|
|
44
|
+
"lint-staged": "^13.0.3",
|
|
44
45
|
"node-sass": "^6",
|
|
45
46
|
"postcss": "8",
|
|
46
|
-
"prettier": "^2.
|
|
47
|
-
"prettier-
|
|
47
|
+
"prettier": "^2.7.1",
|
|
48
|
+
"prettier-config-ouisys": "0.0.2",
|
|
49
|
+
"prettier-plugin-organize-imports": "^3.0.0",
|
|
48
50
|
"react": "^17.0.2",
|
|
49
51
|
"react-dom": "^17.0.2",
|
|
50
52
|
"react-test-renderer": "^17.0.2",
|
|
@@ -56,6 +58,7 @@
|
|
|
56
58
|
"rollup-plugin-typescript2": "^0.31.1",
|
|
57
59
|
"sass-loader": "^10",
|
|
58
60
|
"ts-jest": "^27.1.3",
|
|
61
|
+
"ts-node": "^10.9.1",
|
|
59
62
|
"typescript": "^4.5.4"
|
|
60
63
|
},
|
|
61
64
|
"dependencies": {},
|
|
@@ -64,14 +67,29 @@
|
|
|
64
67
|
"react-dom": ">=16.8.0"
|
|
65
68
|
},
|
|
66
69
|
"scripts": {
|
|
67
|
-
"build": "rollup -c",
|
|
70
|
+
"build": "rm -rf build && rollup -c",
|
|
68
71
|
"storybook": "start-storybook -p 6006",
|
|
69
72
|
"storybook:export": "build-storybook",
|
|
70
73
|
"build-storybook": "build-storybook",
|
|
71
74
|
"clean": "rm -rf ./dist && rm -rf ./build",
|
|
72
75
|
"watch": "tsc -b -w --preserveWatchOutput",
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
|
|
76
|
+
"lint": "eslint --fix 'src/**/*.{ts,tsx}'",
|
|
77
|
+
"format": "prettier --write .",
|
|
78
|
+
"test": "node --max_old_space_size=5096 node_modules/.bin/jest",
|
|
79
|
+
"test:local": "jest --runInBand",
|
|
80
|
+
"test:coverage": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=false; echo \"\\033[32m>>> 🌹 Coverage report now in /coverage folder\"",
|
|
81
|
+
"test:coverageWatch": "yarn run test -- --watch --coverage --coverage-reporters=lcov --watchAll=true",
|
|
82
|
+
"test:watch": "yarn run test -- --watch --watchAll=true",
|
|
83
|
+
"test:debug": "node --inspect-brk node_modules/.bin/jest --watch --ci --runInBand"
|
|
84
|
+
},
|
|
85
|
+
"husky": {
|
|
86
|
+
"hooks": {
|
|
87
|
+
"pre-commit": "lint-staged"
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
"lint-staged": {
|
|
91
|
+
"*": "prettier --ignore-unknown --write",
|
|
92
|
+
"src/**/*.{ts,tsx}": "eslint --fix"
|
|
93
|
+
},
|
|
94
|
+
"prettier": "prettier-config-ouisys"
|
|
77
95
|
}
|
package/build/index.d.ts
DELETED