ngx-metaui / rules

One Framework to build a highly declarative and customizable UI without using templates.
Other
38 stars 8 forks source link

Introduce @Rule decorator to annotate model #65

Open GregOnNet opened 4 years ago

GregOnNet commented 4 years ago

Hi @fkolar,

we recently discussed how to use a builder to run OSS compilation. Maybe we can do it simpler with a custom webpack configuration.

I have seen this in a project that allows the use of PUG-templates in Angular CLI: https://github.com/danguilherme/ng-cli-pug-loader

I do not know what impact this could have on i18n. That's why I am not sure if this is a proper solution.

fkolar commented 4 years ago

Interesting, this why we also also solve the i18n , to extract i18n metaui to i18n Angular format.

fkolar commented 3 years ago

As discussed on the call we will break this down into several phase:

  1. Use existing oss.js script that we use to convert OSS to OSS.ts and turn this into TS along with its own tsConfig
  2. Once we have oss.ts we will update this with new logic that will extra metadata information and add them to the decorator.
  3. The assumption here is that in the first phase we are not going to have ossUrl:'./xxxxxx.oss' in our decorator but we will work always with minified string and we will expect the oss is always in the same directory Entity.