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

Prepare compiling interfaces to new Angular components #1381

Open
8 tasks done
Michiel-s opened this issue Dec 27, 2022 · 0 comments
Open
8 tasks done

Prepare compiling interfaces to new Angular components #1381

Michiel-s opened this issue Dec 27, 2022 · 0 comments
Assignees

Comments

@Michiel-s
Copy link
Member

Michiel-s commented Dec 27, 2022

Purpose
The current prototypes generated by Ampersand are generated using AngularJS. This is old technology with a lot of limitations. For that reason we want to use more modern technology: Angular. This requires that the Ampersand generator generates different output for the prototype. This ticket is for the work to be done at the side of the Ampersand generator.

Relates to epic AmpersandTarski/prototype#69 (Benefits are explained there in more detail)

TODOs

  • Design template for project.module.ts -> see https://gist.github.com/Michiel-s/fcc18549275c80459be55fca76118256
  • Implement function in compiler to generate project.module.ts
  • Generate files in root folder of provided outputDir. Currently in subfolder public/app/project, must be .
  • Design template for <Interface>.component.ts
  • Design template for <Interface>.interfaces.ts (sounds cryptic, but this is what it is: a typescript interface specification of the ampersand INTERFACE data structure`)
  • Design templates for all BOX and Atomic components (based on work of A-team)
  • Implement function in compiler to generate 3 files for each INTERFACE, using the templates mentioned above
  • The .timestamp file used in AngularJS generator is not needed anymore. Keep it for the AngularJS generator only
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants