rules icon indicating copy to clipboard operation
rules copied to clipboard

Introduce @Rule decorator to annotate model

Open GregOnNet opened this issue 4 years ago • 2 comments

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.

GregOnNet avatar Aug 11 '20 09:08 GregOnNet

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

fkolar avatar Aug 11 '20 17:08 fkolar

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.

fkolar avatar Feb 19 '21 08:02 fkolar