Skip to content

Commit 8a9ee0d

Browse files
committed
feat(pf4): Migrate to new build process.
1 parent 704f14c commit 8a9ee0d

File tree

107 files changed

+127
-143
lines changed

Some content is hidden

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

107 files changed

+127
-143
lines changed

packages/pf4-component-mapper/package.json

Lines changed: 5 additions & 17 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",
@@ -51,18 +51,6 @@
5151
"react-dom": "^16.13.1",
5252
"regenerator-runtime": "^0.12.1",
5353
"resolve-url-loader": "^3.0.0",
54-
"rollup": "^1.23.1",
55-
"rollup-plugin-async": "^1.2.0",
56-
"rollup-plugin-babel": "^4.3.3",
57-
"rollup-plugin-commonjs": "^10.1.0",
58-
"rollup-plugin-node-globals": "^1.4.0",
59-
"rollup-plugin-node-resolve": "^5.2.0",
60-
"rollup-plugin-postcss": "^3.1.2",
61-
"rollup-plugin-replace": "^2.2.0",
62-
"rollup-plugin-size-snapshot": "^0.10.0",
63-
"rollup-plugin-sourcemaps": "^0.5.0",
64-
"rollup-plugin-terser": "^5.1.2",
65-
"rollup-pluginutils": "^2.8.2",
6654
"sass-loader": "^7.1.0",
6755
"semantic-release": "^17.2.3",
6856
"style-loader": "^0.23.1",

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

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

packages/pf4-component-mapper/src/files/checkbox.d.ts renamed to packages/pf4-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 PfCheckboxProps } from '@patternfly/react-core';
33
import { ReactNode } from "react";
4-
import FormGroupProps from "./form-group";
4+
import FormGroupProps from "../form-group";
55

66
interface CheckboxOptions extends AnyObject {
77
label?: ReactNode;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import React from 'react';
22
import PropTypes from 'prop-types';
3-
import MultipleChoiceList from '../common/multiple-choice-list';
3+
import MultipleChoiceList from './multiple-choice-list';
44
import { useFieldApi } from '@data-driven-forms/react-form-renderer';
5-
import FormGroup from '../common/form-group';
5+
import FormGroup from '../form-group/form-group';
66
import { Checkbox as Pf4Checkbox } from '@patternfly/react-core';
7-
import IsRequired from '../common/is-required';
7+
import IsRequired from '../is-required/is-required';
88

99
const SingleCheckbox = (props) => {
1010
const { label, isRequired, helperText, meta, description, input, isReadOnly, isDisabled, id, FormGroupProps, ...rest } = useFieldApi(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/pf4-component-mapper/src/common/multiple-choice-list.js renamed to packages/pf4-component-mapper/src/checkbox/multiple-choice-list.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
44
import { Checkbox } from '@patternfly/react-core';
55

66
import MultipleChoiceListCommon, { wrapperProps } from '@data-driven-forms/common/src/multiple-choice-list';
7-
import FormGroup from './form-group';
7+
import FormGroup from '../form-group/form-group';
88

99
const FinalCheckbox = (props) => <Checkbox isChecked={props.checked} {...props} onChange={(_value, e) => props.onChange(e)} />;
1010

packages/pf4-component-mapper/src/files/component-mapper.js renamed to packages/pf4-component-mapper/src/component-mapper/component-mapper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import Tabs from './tabs';
33
import SubForm from './sub-form';
44
import Wizard from './wizard';
55
import Select from './select';
6-
import RawSelect from '../common/select/select';
6+
import RawSelect from '../select/select/select';
77
import FieldArray from './field-array';
88
import TextField from './text-field';
99
import Textarea from './textarea';
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from './component-mapper';
2+
export * from './component-mapper';

0 commit comments

Comments
 (0)