0.1.3 • Published 4 years ago

moulduikits v0.1.3

Weekly downloads
1
License
MIT
Repository
-
Last release
4 years ago

For Mould UI Kits

Develope with mould

  1. Develope your components in src and export it in index.ts

  2. 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
            }
        ]
    }
}
  1. 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.)

TODO

  1. CI and semantic release
  2. solve sync problem

TSDX Bootstrapped

This project was bootstrapped with TSDX.

Local Development

Below is a list of commands you will probably find useful.

npm start or yarn start

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.

npm run build or yarn build

Bundles the package to the dist folder. The package is optimized and bundled with Rollup into multiple formats (CommonJS, UMD, and ES Module).