Skip to content

DCE tools architect notes #2

@sashafirsov

Description

@sashafirsov

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions