Skip to content

Commit 1cafc7d

Browse files
committed
feat(blueprint): Migrate mapper to new build process.
1 parent a345e23 commit 1cafc7d

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

+189
-212
lines changed

packages/blueprint-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",
@@ -47,18 +47,6 @@
4747
"react-dom": "^16.13.1",
4848
"regenerator-runtime": "^0.12.1",
4949
"resolve-url-loader": "^3.0.0",
50-
"rollup": "^1.23.1",
51-
"rollup-plugin-async": "^1.2.0",
52-
"rollup-plugin-babel": "^4.3.3",
53-
"rollup-plugin-commonjs": "^10.1.0",
54-
"rollup-plugin-node-globals": "^1.4.0",
55-
"rollup-plugin-node-resolve": "^5.2.0",
56-
"rollup-plugin-replace": "^2.2.0",
57-
"rollup-plugin-sass": "^1.2.2",
58-
"rollup-plugin-size-snapshot": "^0.10.0",
59-
"rollup-plugin-sourcemaps": "^0.5.0",
60-
"rollup-plugin-terser": "^5.1.2",
61-
"rollup-pluginutils": "^2.8.2",
6250
"sass-loader": "^7.1.0",
6351
"style-loader": "^0.23.1",
6452
"url-loader": "^1.1.2",

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

Lines changed: 0 additions & 108 deletions
This file was deleted.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { AnyObject } from '@data-driven-forms/react-form-renderer';
2+
import { Context } from 'react';
3+
4+
declare const BlueprintContext: Context<AnyObject | undefined>;
5+
6+
export default BlueprintContext;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { default } from './blueprint-context';
2+
export * from './blueprint-context';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './blueprint-context';

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

66
export interface CheckboxOption extends AnyObject {
77
value?: any;

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
44
import MultipleChoiceList from '@data-driven-forms/common/src/multiple-choice-list';
55
import { Checkbox, FormGroup, Intent } from '@blueprintjs/core';
66

7-
import FormGroupWrapper from './form-group';
8-
import propsCatcher from '../common/props-catcher';
9-
import BlueprintContext from './blueprint-context';
7+
import FormGroupWrapper from '../form-group/form-group';
8+
import propsCatcher from '../props-catcher/props-catcher';
9+
import BlueprintContext from '../blueprint-context/blueprint-context';
1010

1111
const SingleCheckbox = ({ input, isDisabled, disabled, label, providerRequired, ...props }) => (
1212
<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: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default } from './checkbox';

0 commit comments

Comments
 (0)