Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extensibility #39

Open
tuoxiansp opened this issue Jun 3, 2020 · 0 comments
Open

Extensibility #39

tuoxiansp opened this issue Jun 3, 2020 · 0 comments
Labels
disscussion Need some ideas

Comments

@tuoxiansp
Copy link
Collaborator

tuoxiansp commented Jun 3, 2020

We have some modules that can be extend.

  • controls
  • components

For this, we will have some code running in the user land. A repo integrated with mould may like this:
|
|--mould
|----.mould
|----initMould.js // do some extension

// initMould.js
import {registerControl, registerComponent} from 'mould'

// maybe any other api design
registerControl(/* any control */)
registerComponent(/* any component */)

We may met two problems:

  1. We have two js/ts compiler in one repo, code standard can be incompatible.(initMould.js compare to other code files)
  2. Next.js may not support compiling codes outside the root dir.

|--mould
|----initMould.js (file outside our next.js repo)
|--node_modules
|----mould (our next.js repo)

More further, we hope to reach that react and mould could call each other seamlessly. Need some ideas here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disscussion Need some ideas
Projects
None yet
Development

No branches or pull requests

1 participant