Skip to content

[lit-starter-ts] Output files into a directory instead of top level #2617

Open
lit/lit-element-starter-ts
#30
@darvid7

Description

@darvid7

Hey all,
I think I jumped the gun with lit/lit-element-starter-ts#10, my rationale was outputting files to the top level dir seems harder to maintain and can pollute your workspace when you run npm run build. At the very least it will mean.

  • you need to add 4 items to your .gitignore for every .ts file in your src
  • you top level dir in your workspace gets bloated

I think that is enough reason to want to output the transplied ts into another directory like /build.

We're intentionally putting output files in the top level, as one might if you were writing that JavaScript directly without TypeScript. Placing files in /build simply exposes that there is a build.

I'm not sure im sold on this reasoning since this is a TS starter repo and I don't think people would want to write raw js here.

Would love your thoughts!

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    📋 Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions