prodo-dev / prodo

Prodo is a React framework to build apps faster.
https://docs.prodo.dev
MIT License
115 stars 5 forks source link

Emphasize that the model file needs to be called model #161

Open coffee-cup opened 4 years ago

coffee-cup commented 4 years ago

If you use the babel plugin, then the model must be defined in a file called model.ts or model.js. This isn't super clear in the docs and can be confusing (https://github.com/prodo-ai/prodo/issues/132#issuecomment-539000734). We should bring more attention to this fact.

mathieudutour commented 4 years ago

How about passing the path of the model as an option to the babel plugin? At least there isn't too much magic.

coffee-cup commented 4 years ago

Great idea