dukeboard/kevoree-modeling-framework

JavaScript generation should not generate files in src/main/resources

Opened this issue · 3 comments

When you ask the plugin to generate also the JavaScript model using <js>true</js>, it will generate some files in src/main/resources (index.html and model-js-all.js).
This is really not a good idea.

Could you elaborate a bit ?

The generated code looks like a sloppy test. Maybe it should be generated, but it should be placed in, I do not know, let say target/js/examples, not in the project's main folder

Somehow, yes. It's true. However, the index is generated only if there is no index: it does not override if you changed it.
The *-all.js is generated in resources, next to the index to show what is generated, also because it is linked to the index, and to allow it is embedded in the Jar.
But true, we could generate it elsewhere.