Skip to content

Components in ASP.NET 5 Projects #20

Description

@ChristopherHaws

Hello,

I was wondering how you would recommend structuring the components folder in an ASP.NET 5 project when using TypeScript (or ES6 with Babel). The default ASP.NET 5 template places static files (the HTML files) into the wwwroot folder, and files that need to be compiled (ES6 JS files with Babel or TS files) into the src folder. Using their template, would you separate the static files from the compiled files or would you put them together and use a gulp task to copy the html files to the wwwroot folder?

Keeps the ViewModel and Template files together in one folder, but I will need to use gulp to copy the html files without modifying them at all

  • wwwroot
    • components
      • test-component
        • test-component.ts
        • test-component.html

vs

Keeps the logical separation of static and compiled files, but adds complexity to the project structure since component ViewModels and Templates would be located in different folders

  • wwwroot
    • components
      • test-component
        • test-component.html
  • components
    • test-component
      • test-component.ts

Thanks,

Chris

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions