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

Customize output directory #4

Closed
3 tasks
connorjs opened this issue Dec 23, 2023 · 1 comment · Fixed by #24
Closed
3 tasks

Customize output directory #4

connorjs opened this issue Dec 23, 2023 · 1 comment · Fixed by #24
Assignees
Labels
feature New feature, enhancement, or request

Comments

@connorjs
Copy link
Owner

connorjs commented Dec 23, 2023

Overview

As a user, I want to choose where to css-typed generates the files, so that it can fit my repository’s directory structure/conventions.

Notes

  • Current location: alongside the source, required *.d.css.ts in the .gitignore (maybe call this colocatedFile?
  • Alternative: generated/*.d.css.ts - still alongside, but grouped within a generated. Simplifies .gitignore with generated/ convention
    • This option would take an optional string name (defaults to generated)
    • Name TBD, but maybe colocatedDirectory or colocatedGeneratedDirectory
  • Alternative 2: generated/**/*.d.css.ts - parallel structure in a root generated directory
    • Same optional string name as above
    • Name TBD, but maybe parallelStructure or parallelDirectory or rootGeneratedDirectory
@connorjs connorjs added the feature New feature, enhancement, or request label Jul 30, 2024
@connorjs
Copy link
Owner Author

connorjs commented Aug 2, 2024

The plan is to release an --out-dir option (-o for short) that will change the root output directory. With the initial release, the directory structure will mirror the same file path (relative to cwd).

This means that it may include src in its structure. In the future, the tool could detect the root or take a root argument. Simply putting it under generated or artifacts/css-typed solves my primary .gitignore use case.

Using the option may require tweaking your tsconfig.json to properly find the generated files.

@connorjs connorjs self-assigned this Aug 3, 2024
@connorjs connorjs linked a pull request Aug 3, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature, enhancement, or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant