Skip to content

Commit 704f14c

Browse files
committed
feat(suir): Migrate to new build process.
1 parent a4fc282 commit 704f14c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+139
-129
lines changed

packages/suir-component-mapper/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@
1111
"license": "Apache-2.0",
1212
"scripts": {
1313
"start": "webpack-dev-server --env dev --config ./config/webpack.config.js --open --hot",
14-
"build": "yarn build:cjs && yarn build:esm && yarn build:umd && yarn build:typings",
15-
"build:cjs": "BABEL_ENV=cjs rollup -c ./rollup.config.js --format=cjs --environment FORMAT:cjs",
16-
"build:esm": "BABEL_ENV=esm rollup -c ./rollup.config.js --format=esm --environment FORMAT:esm",
17-
"build:umd": "rollup -c ./rollup.config.js --format=umd --environment FORMAT:umd",
18-
"build:typings": "node ../../scripts/copy-files.js",
14+
"build": "yarn build:cjs && yarn build:esm && yarn build:typings && yarn build:packages",
15+
"build:cjs": "BABEL_ENV=cjs babel src --out-dir ./ --ignore \"src/tests/*\"",
16+
"build:esm": "BABEL_ENV=esm babel src --out-dir ./esm --ignore \"src/tests/*\"",
17+
"build:typings": "node ../../scripts/generate-typings.js",
18+
"build:packages": "node ../../scripts/generate-packages.js",
1919
"release": "semantic-release"
2020
},
2121
"repository": "[email protected]:data-driven-forms/react-forms.git",

packages/suir-component-mapper/rollup.config.js

Lines changed: 0 additions & 84 deletions
This file was deleted.

packages/suir-component-mapper/src/files/checkbox.d.ts renamed to packages/suir-component-mapper/src/checkbox/checkbox.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { UseFieldApiComponentConfig, AnyObject } from "@data-driven-forms/react-form-renderer";
22
import { CheckboxProps as SuirCheckboxProps } from 'semantic-ui-react';
33
import { ReactNode } from "react";
4-
import { CommonFieldProps } from "./common-field-props";
4+
import { CommonFieldProps } from "../common/common-field-props";
55

66
export interface CheckboxOption extends AnyObject {
77
label: ReactNode;

packages/suir-component-mapper/src/files/checkbox.js renamed to packages/suir-component-mapper/src/checkbox/checkbox.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ import React from 'react';
22
import PropTypes from 'prop-types';
33
import { FormCheckbox } from 'semantic-ui-react';
44

5-
import FormFieldGrid from '../common/form-field-grid';
5+
import FormFieldGrid from '../form-field-grid/form-field-grid';
66
import { validationError, validationWarning } from '../common/helpers';
7-
import MultipleChoiceList from '../common/multiple-choice-list';
7+
import MultipleChoiceList from './multiple-choice-list';
88
import { useFieldApi } from '@data-driven-forms/react-form-renderer';
99

1010
export const SingleCheckbox = (props) => {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from './checkbox';
2+
export * from './checkbox';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from './checkbox';
2+
export * from './checkbox';

packages/suir-component-mapper/src/common/multiple-choice-list.js renamed to packages/suir-component-mapper/src/checkbox/multiple-choice-list.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import { FormCheckbox, Header, FormField } from 'semantic-ui-react';
55
import { createUseStyles } from 'react-jss';
66
import clsx from 'clsx';
77

8-
import { validationError } from './helpers';
9-
import FormFieldGrid from './form-field-grid';
8+
import { validationError } from '../common/helpers';
9+
import FormFieldGrid from '../form-field-grid/form-field-grid';
1010

1111
const useStyles = createUseStyles({
1212
header: {

packages/suir-component-mapper/src/files/common-field-props.d.ts renamed to packages/suir-component-mapper/src/common/common-field-props.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ReactNode } from "react";
2-
import { FormFieldGridProps, HelperTextProps } from "./form-field-grid";
1+
import { ReactNode } from 'react';
2+
import { FormFieldGridProps, HelperTextProps } from '../form-field-grid';
33

44
export interface CommonFieldProps {
55
isReadOnly?: boolean;

packages/suir-component-mapper/src/files/component-mapper.d.ts renamed to packages/suir-component-mapper/src/component-mapper/component-mapper.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ interface componentMapper extends ComponentMapper {
3434
[ComponentTypes.SLIDER]: React.ComponentType;
3535
}
3636

37-
interface RawComponents {
37+
export interface RawComponents {
3838
RawSelect: React.ComponentType;
3939
}
4040

0 commit comments

Comments
 (0)