Skip to content

Commit a4fc282

Browse files
committed
feat(carbon): Migrate to new build process.
1 parent 1cafc7d commit a4fc282

Some content is hidden

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

94 files changed

+120
-112
lines changed

packages/carbon-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",
@@ -55,18 +55,6 @@
5555
"react-dom": "^16.13.1",
5656
"regenerator-runtime": "^0.12.1",
5757
"resolve-url-loader": "^3.0.0",
58-
"rollup": "^1.23.1",
59-
"rollup-plugin-async": "^1.2.0",
60-
"rollup-plugin-babel": "^4.3.3",
61-
"rollup-plugin-commonjs": "^10.1.0",
62-
"rollup-plugin-node-globals": "^1.4.0",
63-
"rollup-plugin-node-resolve": "^5.2.0",
64-
"rollup-plugin-replace": "^2.2.0",
65-
"rollup-plugin-sass": "^1.2.2",
66-
"rollup-plugin-size-snapshot": "^0.10.0",
67-
"rollup-plugin-sourcemaps": "^0.5.0",
68-
"rollup-plugin-terser": "^5.1.2",
69-
"rollup-pluginutils": "^2.8.2",
7058
"sass-loader": "^7.1.0",
7159
"semantic-release": "^17.2.3",
7260
"style-loader": "^0.23.1",

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

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Checkbox as CarbonCheckbox, FormGroup } from 'carbon-components-react';
77

88
import WithDescription from '../common/with-description';
99
import prepareProps, { buildLabel } from './prepare-props';
10-
import HelperTextBlock from '../common/helper-text-block';
10+
import HelperTextBlock from '../helper-text-block/helper-text-block';
1111

1212
const Wrapper = ({ label, description, children, helperText, error, showError, isRequired }) => (
1313
<FormGroup
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';
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';
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)