Closed connorjs closed 3 months ago
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.
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
*.d.css.ts
in the.gitignore
(maybe call thiscolocatedFile
?generated/*.d.css.ts
- still alongside, but grouped within agenerated
. Simplifies.gitignore
withgenerated/
conventiongenerated
)colocatedDirectory
orcolocatedGeneratedDirectory
generated/**/*.d.css.ts
- parallel structure in a rootgenerated
directoryparallelStructure
orparallelDirectory
orrootGeneratedDirectory