-
Develope your components in
src
and export it inindex.ts
-
yarn add file:path/to/local/moulduikits
and add your component config in mould/setup in mould project.
// /mould/setup.ts
import moulduikits from 'moulduikits'
const { Example } = moulduikits
const { Raw, Editable, Icon} = Example
export default ({Components}) => {
return {
Components: [
...Components,
{
category: {
name: 'Example',
isBase: false
},
type: 'Example',
Raw,
Icon,
Editable
}
]
}
}
- if success, use it in editor and send PR to this project.
(Trickly: develope in mould project as atomic component and then paste to this project is preferred development because of the sync problem.)
- CI and semantic release
- solve sync problem
This project was bootstrapped with TSDX.
Below is a list of commands you will probably find useful.
Runs the project in development/watch mode. Your project will be rebuilt upon changes. TSDX has a special logger for you convenience. Error messages are pretty printed and formatted for compatibility VS Code's Problems tab.
Your library will be rebuilt if you make edits.
Bundles the package to the dist
folder.
The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).