From 77d8c81163d449cefbcd273e31c4e993376ca26c Mon Sep 17 00:00:00 2001 From: Ermakoy Date: Sun, 23 Dec 2018 23:38:49 +0300 Subject: [PATCH 1/3] feat: add TS definitions --- packages/shared/core/index.d.ts | 854 ++++++++++++++++++++++++++++++++ 1 file changed, 854 insertions(+) create mode 100644 packages/shared/core/index.d.ts diff --git a/packages/shared/core/index.d.ts b/packages/shared/core/index.d.ts new file mode 100644 index 000000000..0fad2a7ca --- /dev/null +++ b/packages/shared/core/index.d.ts @@ -0,0 +1,854 @@ +import * as React from 'react' + +interface InputType { + checked?: boolean + onChange?: (e) => void + onFocus?: (e) => void + onBlur?: (e) => void + style?: React.CSSProperties +} + +declare type OptionalThemeProp = + | string + | number + | { + xs?: string | number + sm?: string | number + md?: string | number + lg?: string | number + xl?: string | number + } + +interface BasicsProps { + opacity?: OptionalThemeProp + overflow?: OptionalThemeProp +} + +interface PaddingProps { + p?: OptionalThemeProp + px?: OptionalThemeProp + py?: OptionalThemeProp + pt?: OptionalThemeProp + pr?: OptionalThemeProp + pb?: OptionalThemeProp + pl?: OptionalThemeProp +} + +interface MarginProps { + m?: OptionalThemeProp + mx?: OptionalThemeProp + my?: OptionalThemeProp + mt?: OptionalThemeProp + mr?: OptionalThemeProp + mb?: OptionalThemeProp + ml?: OptionalThemeProp +} + +interface BorderProps { + borderTop?: OptionalThemeProp + borderRight?: OptionalThemeProp + borderBottom?: OptionalThemeProp + borderLeft?: OptionalThemeProp + bordeColor?: OptionalThemeProp + borderRadius?: OptionalThemeProp + boxShadow?: OptionalThemeProp +} + +interface FontProps { + fontFamily?: OptionalThemeProp + fontSize?: OptionalThemeProp + lineHeight?: OptionalThemeProp + fontWeight?: OptionalThemeProp + letterSpacing?: OptionalThemeProp + color?: OptionalThemeProp +} + +interface DimensionsProps { + width?: OptionalThemeProp + height?: OptionalThemeProp + maxWidth?: OptionalThemeProp + maxHeight?: OptionalThemeProp + minHeight?: OptionalThemeProp + minWidth?: OptionalThemeProp +} + +interface FlexProps { + display?: OptionalThemeProp + alignItems?: OptionalThemeProp + alignContent?: OptionalThemeProp + justifyContent?: OptionalThemeProp + flexWrap?: OptionalThemeProp + flexBasis?: OptionalThemeProp + flexDirection?: OptionalThemeProp + flex?: OptionalThemeProp + justifySelf?: OptionalThemeProp + alignSelf?: OptionalThemeProp + order?: OptionalThemeProp +} + +interface BorderProps { + background?: OptionalThemeProp + backgroundColor?: OptionalThemeProp + backgroundImage?: OptionalThemeProp + backgroundSize?: OptionalThemeProp + backgroundPosition?: OptionalThemeProp + backgroundRepeat?: OptionalThemeProp +} + +interface PositionProps { + position?: OptionalThemeProp + zIndex?: OptionalThemeProp + top?: OptionalThemeProp + right?: OptionalThemeProp + bottom?: OptionalThemeProp + left?: OptionalThemeProp +} + +interface TogglerRenderProps { + onToggle: (state?: boolean) => void + toggled: boolean +} +interface TogglerProps { + children: (props: TogglerRenderProps) => React.ReactNode + defaultToggled: boolean + onToggle: (value: boolean) => void +} + +export const Toggler: React.FunctionComponent + +interface SwitchStateProps { + focused: boolean + checked: boolean + disabled: boolean +} + +interface SwitchStateProps { + children: (props: SwitchStateProps & InputType) => JSX.Element +} + +export class SwitchState extends React.Component {} + +export interface BoxProps + extends BasicsProps, + PaddingProps, + MarginProps, + PositionProps, + BorderProps, + FlexProps, + FontProps, + DimensionsProps { + as?: string | React.ComponentType +} + +type Omit = Pick> + +export type OmitBoxProps = Omit + +export const Box: React.FunctionComponent + +export interface ButtonProps extends BoxProps { + children?: React.ReactNode + size?: 'sm' | 'lg' + variant?: + | 'primary' + | 'secondary' + | 'success' + | 'danger' + | 'warning' + | 'info' + | 'light' + | 'dark' +} + +export const Button: React.FunctionComponent + +export interface AlertProps extends BoxProps { + children: React.ReactNode + variant?: + | 'primary' + | 'secondary' + | 'success' + | 'danger' + | 'warning' + | 'info' + | 'light' + | 'dark' +} + +export const Alert: React.FunctionComponent + +export interface CheckboxProps extends BoxProps { + checked: boolean + disabled: boolean + size: 'sm' | 'lg' + value: string + onChange: (e: React.FormEvent) => void +} + +export const Checkbox: React.FunctionComponent + +export interface FormCheckProps extends BoxProps { + children: React.ReactNode + inline?: boolean +} + +export const FormCheck: React.FunctionComponent + +export const FormCheckLabel: React.FunctionComponent< + React.HTMLProps +> + +export interface FormGroupProps extends BoxProps { + children?: React.ReactNode +} + +export const FormGroup: React.FunctionComponent + +export interface GridProps extends BoxProps { + children?: React.ReactNode + gutter?: number + fluid?: boolean +} + +export const Grid: React.FunctionComponent + +export interface InputProps + extends BoxProps, + Omit, BoxProps & { size: any }> { + control?: boolean + size?: 'sm' | 'lg' + valid?: boolean +} + +export const Input: React.FunctionComponent + +export interface LabelProps + extends OmitBoxProps>, + BoxProps { + children?: React.ReactNode +} + +export const Label: React.FunctionComponent + +export interface RadioProps + extends Omit, BoxProps & { size: any }>, + BoxProps { + size?: 'sm' | 'lg' + checked?: boolean +} + +export const Radio: React.FunctionComponent + +export interface RadioGroupProps { + children?: React.ReactNode +} + +export class RadioGroup extends React.Component {} + +export interface RowProps extends BoxProps { + gutter?: number | string + children?: React.ReactNode +} + +export const Row: React.FunctionComponent + +export interface ColProps extends BoxProps { + children?: React.ReactNode + gutter?: number | string + xs?: string | number + sm?: string | number + md?: string | number + lg?: string | number + xl?: string | number +} + +export const Col: React.FunctionComponent + +export interface ControllFeedbackProps { + valid: boolean + children?: React.ReactNode +} + +export const ControllFeedback: React.FunctionComponent + +export interface SelectProps + extends Omit, BoxProps & { size: any }>, + BoxProps { + size?: 'sm' | 'md' | 'lg' + arrow: boolean + control?: boolean + valid?: boolean + children?: React.ReactNode +} + +export const Select: React.FunctionComponent + +export interface SwitchProps extends BoxProps { + checked?: boolean + disabled?: boolean + labeled?: boolean + onLabel?: string + offLabel: string + onChange: (e) => void +} + +export const Switch: React.FunctionComponent + +export interface TextareaProps + extends Omit, { size: any }> { + control?: boolean + size?: 'sm' | 'lg' + valid?: true +} + +export const TextArea: React.FunctionComponent + +export interface TypographyProps extends BoxProps { + children?: React.ReactNode + variant?: + | 'h1' + | 'h2' + | 'h3' + | 'h4' + | 'h5' + | 'h6' + | 'display-1' + | 'display-2' + | 'display-3' + | 'display-4' +} + +export const Typography: React.FunctionComponent + +export interface BreakpointProps { + children?: React.ReactNode + up?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' + down?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' +} + +export const Breakpoint: React.FunctionComponent + +export interface ThemeType { + fontFamily: string + colors: { + white: (props: Object) => string + gray100: (props: Object) => string + gray200: (props: Object) => string + gray300: (props: Object) => string + gray400: (props: Object) => string + gray500: (props: Object) => string + gray600: (props: Object) => string + gray700: (props: Object) => string + gray800: (props: Object) => string + gray900: (props: Object) => string + black: (props: Object) => string + + blue: (props: Object) => string + indigo: (props: Object) => string + purple: (props: Object) => string + pink: (props: Object) => string + red: (props: Object) => string + brick: (props: Object) => string + orange: (props: Object) => string + yellow: (props: Object) => string + green: (props: Object) => string + teal: (props: Object) => string + cyan: (props: Object) => string + + primary: (props: Object) => string + secondary: (props: Object) => string + success: (props: Object) => string + info: (props: Object) => string + warning: (props: Object) => string + danger: (props: Object) => string + light: (props: Object) => string + dark: (props: Object) => string + + primaryLight: (props: Object) => string + secondaryLight: (props: Object) => string + } + colorVariants: [ + 'primary', + 'secondary', + 'success', + 'danger', + 'warning', + 'info', + 'light', + 'dark' + ] + + fontSizes: [12, 14, 16, 20, 24, 32, 48, 64, 72] + spaces: [0, 8, 16, 24, 32, 40, 48, 56, 64, 72] + + borderRadius: '.25rem' + borderRadiusSm: '.2rem' + borderRadiusLg: '.3rem' + borderWidth: '1px' + + fontSizeBase: '1rem' + fontSizeSm: (props: Object) => string + fontSizeLg: (props: Object) => string + + fontWeightLight: 300 + fontWeightNormal: 400 + fontWeightBold: 700 + + lineHeightBase: 1.5 + lineHeightSm: 1.5 + lineHeightLg: 1.5 + + inputBtnPaddingY: '.375rem' + inputBtnPaddingX: '.75rem' + inputBtnLineHeight: (props: Object) => string + + inputBtnPaddingYSm: '.25rem' + inputBtnPaddingXSm: '.5rem' + inputBtnLineHeightSm: (props: Object) => string + + inputBtnPaddingYLg: '.5rem' + inputBtnPaddingXLg: '1rem' + inputBtnLineHeightLg: (props: Object) => string + + inputBtnBorderWidth: (props: Object) => string + + btnPaddingY: (props: Object) => string + btnPaddingX: (props: Object) => string + btnLineHeight: (props: Object) => string + + btnPaddingYSm: (props: Object) => string + btnPaddingXSm: (props: Object) => string + btnLineHeightSm: (props: Object) => string + + btnPaddingYLg: (props: Object) => string + btnPaddingXLg: (props: Object) => string + btnLineHeightLg: (props: Object) => string + + btnBorderWidth: 0 + btnDisabledOpacity: 0.8 + + inputPaddingY: (props: Object) => string + inputPaddingX: (props: Object) => string + inputLineHeight: (props: Object) => string + + inputPaddingYSm: (props: Object) => string + inputPaddingXSm: (props: Object) => string + inputLineHeightSm: (props: Object) => string + + inputPaddingYLg: (props: Object) => string + inputPaddingXLg: (props: Object) => string + inputLineHeightLg: (props: Object) => string + + inputBorderWidth: (props: Object) => string + inputBorderColor: (props: Object) => string + inputBgColor: (props: Object) => string + inputDisabledBgColor: (props: Object) => string + inputDisabledText: (props: Object) => string + inputPlaceholderText: (props: Object) => string + inputTextColor: (props: Object) => string + + controlFocusBorderColor: (props: Object) => string + + controlFocusBoxShadow: (props: Object) => (color: string) => string + + gridColumns: 12 + gridGutter: 8 + + gridMaxWidths: { + sm: '540px' + md: '720px' + lg: '960px' + xl: '1140px' + } + + alertPaddingY: '.75rem' + alertPaddingX: '1.25rem' + alertMarginBottom: '1rem' + + alertBgLevel: -10 + alertBorderLevel: -9 + alertColorLevel: 6 + + alertVariant: (props: Object) => (baseColorTheme: Object) => AlertColorVariant + + zIndexControl: 1 + zIndexInnerSwitch: 10 + zIndexModal: 1050 + zIndexModalBackdrop: 1071 + + transitionEnabled: true + transition: (props: Object) => (value: string) => string + + safeTransitionProperties: [ + 'color', + 'border-style', + 'visibility', + 'background', + 'background-color', + 'text-decoration', + 'box-shadow', + 'transform', + 'opacity' + ] + + transitionBase: (props: Object) => string + + breakpoints: { + xs: 0 + sm: 576 + md: 768 + lg: 992 + xl: 1200 + } + + yiqContrastedThreshold: 150 + colorInterval: 0.08 + + headingsMarginBottom: '.5rem' + headingsFontFamily: (props: Object) => string + headingsFontWeight: 500 + headingsLineHeight: 1.2 + headingsColor: 'inherit' + + h1FontSize: '2.5rem' + h2FontSize: '2rem' + h3FontSize: '1.75rem' + h4FontSize: '1.5rem' + h5FontSize: '1.25rem' + h6FontSize: '1rem' + + display1Size: '6rem' + display2Size: '5.5rem' + display3Size: '4.4rem' + display4Size: '3.5rem' + + display1Weight: 300 + display2Weight: 300 + display3Weight: 300 + display4Weight: 300 + + displayLineHeight: (props: Object) => string + + modalBackdropBg: 'rgba(0, 0, 0, 0.5)' + + modalInnerPadding: '1rem' + modalTransitionDuration: 300 // ms + + modalDialogMargin: '0.5rem' + modalDialogMarginYSmUp: '1.75rem' + + modalContentBg: (props: Object) => string + modalContentBorderWidth: (props: Object) => string + modalContentBorderColor: (props: Object) => string + + modalContentBorderRadius: (props: Object) => string + modalContentBoxShadowXs: (props: Object) => string + + modalContentBoxShadowSmUp: (props: Object) => string + + modalHeaderBorderColor: (props: Object) => string + modalFooterBorderColor: (props: Object) => string + modalHeaderBorderWidth: (props: Object) => string + modalFooterBorderWidth: (props: Object) => string + + base: () => () => (props: Object) => string + + controlFocus: ( + props: Object, + ) => (baseColor: string) => (props: Object) => string + + btnVariant: ( + props: Object, + ) => (baseColor: string) => (props: Object) => string + + colorLevel: ( + props: Object, + ) => ( + color: (props: Object) => string | string, + level: (props: Object) => string | string, + ) => string + + colorYik: ( + props: Object, + ) => (color: (props: Object) => string | string) => string +} + +export const theme: ThemeType +interface AlertColorVariant { + color: string + backgroundColor: string + borderColor: string + hr: { + borderTopColor: string + } +} + +export const lazyTh: (name: string) => (props: Object) => string + +export const th: ( + name: string, + transform?: (res) => string, +) => (props: Object) => string + +export const mixin: ( + name: string, + ...args: Array +) => (props: Object) => string + +export const prop: ( + name: string, + themeFallback: string, +) => (props: Object) => string + +export const calc: ( + value: string, + fn: (num: string | number) => string, +) => string + +export const unit: (unit: string) => (value: number | string) => string + +export const px: ReturnType + +interface styleArg { + prop: string + cssProperty: string + trasform: Function + variants: Array +} + +export function style(arg: styleArg): (props: Object) => Object + +export const composeStyles: ( + ...funcs: Array<(props: Object) => string> +) => ((props: Object) => Object) + +export const globalStyle: (customTheme: ThemeType) => Array + +export interface ModalProps { + children?: React.ReactNode + opened?: boolean + onClose?: () => void + initialFocusRef?: Object +} + +export const Modal: React.FunctionComponent + +export interface ModalBodyProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalBody: React.FunctionComponent + +export interface ModalCloseButtonProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalCloseButton: React.FunctionComponent + +export interface ModalContentProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalContent: React.FunctionComponent + +export const ModalContext: React.Context + +export interface ModalDialogProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalDialog: React.FunctionComponent + +export interface ModalFooterProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalFooter: React.FunctionComponent + +export interface ModalHeaderProps extends BoxProps { + children?: React.ReactNode +} + +export const ModalHeader: React.FunctionComponent + +export interface PortalProps { + type?: string + children?: React.ReactNode +} + +export const Portal: React.FunctionComponent + +/* + * Breakpoints + */ + +export const DEFAULT_BREAKPOINTS: { + xs: 0 + sm: 576 + md: 768 + lg: 992 + xl: 1200 +} + +export const getBreakpoints: (props: Object) => Object + +export const getBreakpointsEntries: (props: Object) => Array> + +export const getNextBreakpoint: (name: string, props: Object) => null | string + +export const getPreviousBreakpoint: ( + name: string, + props: Object, +) => null | string + +export const getBreakpointMin: (name: string, props: Object) => null | number + +export const getBreakpointMax: (name: string, props: Object) => null | number + +export const mediaMinWidth: (value: number | string) => string + +export const mediaMaxWidth: (value: number | string) => string + +export const mediaBetweenWidth: ( + min: string | number, + max: string | number, +) => string + +export const up: (name: string | number, code: string) => (props: Object) => any + +export const down: ( + name: string | number, + code: string, +) => (props: Object) => any + +export const between: ( + lower: string | number, + upper: string | number, + code: string, +) => (props: Object) => any + +export interface StyleResult extends ReturnType {} + +export interface ComposeStylesResult extends ReturnType {} + +// Basic + +export const opacity: StyleResult + +export const overflow: StyleResult + +export const basics: ComposeStylesResult + +// Typography + +export const fontFamily: StyleResult + +export const fontSize: StyleResult + +export const lineHeight: StyleResult + +export const fontWeight: StyleResult + +export const textAlign: StyleResult + +export const letterSpacing: StyleResult + +export const color: StyleResult + +export const typography: ComposeStylesResult + +// Dimensions + +export const width: StyleResult + +export const height: StyleResult + +export const maxWidth: StyleResult + +export const maxHeight: StyleResult + +export const minWidth: StyleResult + +export const minHeight: StyleResult + +export const dimensions: ComposeStylesResult + +// Flexbox + +export const display: StyleResult + +export const alignItems: StyleResult + +export const alignContent: StyleResult + +export const justifyContent: StyleResult + +export const flexWrap: StyleResult + +export const flexBasis: StyleResult + +export const flexDirection: StyleResult + +export const flex: StyleResult + +export const justifySelf: StyleResult + +export const alignSelf: StyleResult + +export const order: StyleResult + +export const flexboxes: ComposeStylesResult + +// Background + +export const background: StyleResult + +export const backgroundColor: StyleResult + +export const backgroundImage: StyleResult + +export const backgroundSize: StyleResult + +export const backgroundPosition: StyleResult + +export const backgroundRepeat: StyleResult + +export const backgrounds: ComposeStylesResult + +// Position + +export const position: StyleResult + +export const zIndex: StyleResult + +export const top: StyleResult + +export const right: StyleResult + +export const bottom: StyleResult + +export const left: StyleResult + +export const positions: ComposeStylesResult + +// Border + +export const border: StyleResult + +export const borderTop: StyleResult + +export const borderRight: StyleResult + +export const borderBottom: StyleResult + +export const borderLeft: StyleResult + +export const borderColor: StyleResult + +export const borderRadius: StyleResult + +export const boxShadow: StyleResult + +export const borders: ComposeStylesResult + +export const system: ComposeStylesResult From 46de56f1dcaf2350c28a493bfc3935bd9f6eef65 Mon Sep 17 00:00:00 2001 From: Ermakoy Date: Fri, 4 Jan 2019 22:50:19 +0300 Subject: [PATCH 2/3] feat: add d.ts file to build phase --- config/rollup.js | 13 ++++++++++++- package.json | 1 + packages/core-em/package.json | 1 + packages/core-sc/package.json | 4 ++++ packages/shared/core/index.d.ts | 2 ++ yarn.lock | 15 +++++++++++++++ 6 files changed, 35 insertions(+), 1 deletion(-) diff --git a/config/rollup.js b/config/rollup.js index 7f07b2d7b..8e121f75e 100644 --- a/config/rollup.js +++ b/config/rollup.js @@ -3,6 +3,7 @@ import resolve from 'rollup-plugin-node-resolve' import babel from 'rollup-plugin-babel' import replace from 'rollup-plugin-replace' import commonjs from 'rollup-plugin-commonjs' +import copy from 'rollup-plugin-cpy' import { uglify } from 'rollup-plugin-uglify' // eslint-disable-next-line @@ -11,10 +12,20 @@ const babelConfig = require('../../.babelrc') export const getRollupConfig = ({ pkg, pwd, buildName }) => { const SOURCE_DIR = path.resolve(pwd, 'src') const DIST_DIR = path.resolve(pwd, 'dist') + const CORE_DIR = path.resolve(pwd, '../shared/core'); const baseConfig = { input: `${SOURCE_DIR}/index.js`, - plugins: [babel({ exclude: '**/node_modules/**', ...babelConfig })], + plugins: [ + babel({ + "exclude": "**/node_modules/**", + ...babelConfig + }), + copy({ + "files": `${CORE_DIR}/*.d.ts`, + "dest": DIST_DIR + }) + ], } const esConfig = Object.assign({}, baseConfig, { diff --git a/package.json b/package.json index 3bb810bba..dbe299147 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "remark-external-links": "^3.0.0", "rollup": "^0.66.6", "rollup-plugin-babel": "^4.0.3", + "rollup-plugin-cpy": "^1.1.0", "rollup-plugin-commonjs": "^9.2.0", "rollup-plugin-node-resolve": "^3.4.0", "rollup-plugin-replace": "^2.1.0", diff --git a/packages/core-em/package.json b/packages/core-em/package.json index 2b47ba46c..571dd7285 100644 --- a/packages/core-em/package.json +++ b/packages/core-em/package.json @@ -15,6 +15,7 @@ "main": "dist/smooth-ui-core-em.cjs.js", "module": "dist/smooth-ui-core-em.es.js", "jsnext:main": "dist/smooth-ui-core-em.es.js", + "types": "dist/index.d.ts", "author": "Greg Bergé ", "license": "MIT", "scripts": { diff --git a/packages/core-sc/package.json b/packages/core-sc/package.json index 4cd53a98b..bb97a0fcb 100644 --- a/packages/core-sc/package.json +++ b/packages/core-sc/package.json @@ -14,6 +14,7 @@ "main": "dist/smooth-ui-core-sc.cjs.js", "module": "dist/smooth-ui-core-sc.es.js", "jsnext:main": "dist/smooth-ui-core-sc.es.js", + "types": "dist/index.d.ts", "author": "Greg Bergé ", "license": "MIT", "scripts": { @@ -34,5 +35,8 @@ "react": ">=16.3.0", "react-dom": ">=16.3.0", "styled-components": "^4.0.0" + }, + "devDependencies": { + "rollup-plugin-cpy": "^1.1.0" } } diff --git a/packages/shared/core/index.d.ts b/packages/shared/core/index.d.ts index 0fad2a7ca..c86b60e15 100644 --- a/packages/shared/core/index.d.ts +++ b/packages/shared/core/index.d.ts @@ -1,3 +1,5 @@ +/// + import * as React from 'react' interface InputType { diff --git a/yarn.lock b/yarn.lock index bc469a50b..9e61316d7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8481,6 +8481,11 @@ lodash.isequal@^4.5.0: resolved "https://registry.yarnpkg.com/lodash.isequal/-/lodash.isequal-4.5.0.tgz#415c4478f2bcc30120c22ce10ed3226f7d3e18e0" integrity sha1-QVxEePK8wwEgwizhDtMib30+GOA= +lodash.isobject@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-3.0.2.tgz#3c8fb8d5b5bf4bf90ae06e14f2a530a4ed935e1d" + integrity sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0= + lodash.iteratee@^4.5.0: version "4.7.0" resolved "https://registry.yarnpkg.com/lodash.iteratee/-/lodash.iteratee-4.7.0.tgz#be4177db289a8ccc3c0990f1db26b5b22fc1554c" @@ -11552,6 +11557,16 @@ rollup-plugin-commonjs@^9.2.0: resolve "^1.8.1" rollup-pluginutils "^2.3.3" +rollup-plugin-cpy@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/rollup-plugin-cpy/-/rollup-plugin-cpy-1.1.0.tgz#4518d5e662880218a1a13e03b8565773642898d4" + integrity sha512-QfRVnEvf06kYDVwZUYyDInQ8Xjd2Y8EIsazuMsUXskV4g7VKYz2kojJaqs0Ew5qfpyL3J9MjONE5mGfu93q5sw== + dependencies: + chalk "^2.3.2" + cpy "^7.0.1" + lodash.isobject "^3.0.2" + mkdirp "^0.5.1" + rollup-plugin-node-resolve@^3.4.0: version "3.4.0" resolved "https://registry.yarnpkg.com/rollup-plugin-node-resolve/-/rollup-plugin-node-resolve-3.4.0.tgz#908585eda12e393caac7498715a01e08606abc89" From c0bbeb7a86a350a56fffa4af9d96f71269f5d734 Mon Sep 17 00:00:00 2001 From: Ermakoy Date: Sat, 5 Jan 2019 09:18:01 +0300 Subject: [PATCH 3/3] fix: rm rollup plugin from core-sc package.json --- packages/core-sc/package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/core-sc/package.json b/packages/core-sc/package.json index bb97a0fcb..476470210 100644 --- a/packages/core-sc/package.json +++ b/packages/core-sc/package.json @@ -35,8 +35,5 @@ "react": ">=16.3.0", "react-dom": ">=16.3.0", "styled-components": "^4.0.0" - }, - "devDependencies": { - "rollup-plugin-cpy": "^1.1.0" } }