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

DCE tools architect notes #2

Open
sashafirsov opened this issue Mar 13, 2024 · 0 comments
Open

DCE tools architect notes #2

sashafirsov opened this issue Mar 13, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@sashafirsov
Copy link
Member

The toolkit would comprise:

  • watcher CLI, from VS Code
  • Html2Dce.java single file( or stdin ) analyzer with output of validation warnings and DCE manifest with source maps
  • DceGenerator.ts node CLI to accept the DCE manifest(s) and generates per HTML files and updates aggregated code
  • node CLI which invokes watcher, on change runs analyzer pyped to generator. Output only warnings in IDE-console friendly format
  • later watcher would be replaced by IDE plugin. Per IDE specific impl.

Generated Files

Aggregated files updated by analyzer of individual updated HTML. The aggregated DCE module name is configurable, defaults to index

  • "module": "index.js", - import of generated .dce.js
  • "types": "./index.d.ts" - typings from generated .dce.d.ts
  • "web-types": "./web-types.json" - IntelliJ
  • .vscode/settings.json
 "html.customData": [
    "./html.customData.json",
    "./dist/html.customData-dce.json"
  ]

per HTML file

  • .dce.d.ts
  • .dce.js
@sashafirsov sashafirsov added the documentation Improvements or additions to documentation label Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant