-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: bundle library and expose single file + preact dir
The library no longer exposes its internal structure in `lib`. Instead, exports can be accessed from the root. ```javascript import { Group, TextFieldEntry } from @bpmn-io/properties-panel; const myGroup = { id: myGroup, component: Group, entries: [ { id: customEntry, component: <TextFieldEntry /* ... */ /> } ] }; ``` BREAKING CHANGES: * Internal structure of the library is no longer exposed. Use root exports instead.
- Loading branch information
Showing
9 changed files
with
238 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
/node_modules | ||
/lib | ||
/preact | ||
/preact | ||
/dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
/node_modules | ||
/coverage | ||
/lib | ||
/preact | ||
/preact | ||
/dist |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import babel from '@rollup/plugin-babel'; | ||
import copy from 'rollup-plugin-copy'; | ||
import json from '@rollup/plugin-json'; | ||
import resolve from '@rollup/plugin-node-resolve'; | ||
|
||
import pkg from './package.json'; | ||
import babelConfig from './.babelrc.json'; | ||
|
||
export default [ | ||
{ | ||
input: 'src/index.js', | ||
output: [ | ||
{ | ||
sourcemap: true, | ||
format: 'commonjs', | ||
file: pkg.main | ||
}, | ||
{ | ||
sourcemap: true, | ||
format: 'esm', | ||
file: pkg.module | ||
} | ||
], | ||
external: [ | ||
'classnames', | ||
'min-dash', | ||
'min-dom', | ||
|
||
// exclude local preact copy to share it with extensions | ||
/\.\/preact/ | ||
], | ||
plugins: [ | ||
copy({ | ||
targets: [ | ||
{ src: 'node_modules/preact', dest: '.', copyOnce: true } | ||
] | ||
}), | ||
babel({ ...babelConfig, babelHelpers: 'bundled' }), | ||
json(), | ||
resolve() | ||
] | ||
} | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
export { default as CheckboxEntry, isEdited as isCheckboxEntryEdited } from './Checkbox'; | ||
export { default as CollapsibleEntry } from './Collapsible'; | ||
export { default as DescriptionEntry } from './Description'; | ||
export { default as ListEntry } from './List'; | ||
export { default as NumberFieldEntry, isEdited as isNumberFieldEntryEdited } from './NumberField'; | ||
export { default as SelectEntry, isEdited as isSelectEntryEdited } from './Select'; | ||
export { default as SimpleEntry, isEdited as isSimpleEntryEdited } from './Simple'; | ||
export { default as TextAreaEntry, isEdited as isTextAreaEntryEdited } from './TextArea'; | ||
export { default as TextFieldEntry, isEdited as isTextFieldEntryEdited } from './TextField'; | ||
export { default as ToggleSwitchEntry, isEdited as isToggleSwitchEntryEdited } from './ToggleSwitch'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
export { DropdownButton } from './DropdownButton'; | ||
export { default as Group } from './Group'; | ||
export { default as Header } from './Header'; | ||
export { HeaderButton } from './HeaderButton'; | ||
export { default as ListGroup } from './ListGroup'; | ||
export { default as ListItem } from './ListItem'; | ||
export * from './icons'; | ||
export * from './entries'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default as DebounceInputModule } from './debounce-input'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,5 @@ | ||
export { default } from './PropertiesPanel'; | ||
export { default as PropertiesPanel } from './PropertiesPanel'; | ||
export * from './components'; | ||
export * from './context'; | ||
export * from './features'; | ||
export * from './hooks'; |