build-sass: Create output directory if missing#8384
Conversation
There was a problem hiding this comment.
Note:
- We deleted
app/assets/builds/.keep(an empty file) - We added an empty file for the fixture,
in.css.scss
Git interpreted this as a "move".
0b9ecdd to
9e24f74
Compare
|
We might need the |
zachmargolis
left a comment
There was a problem hiding this comment.
We might need the
.keepfile after all, not because ofbuild-sass, but because of the asset pipeline. 😕Failure/Error: //= link_tree ../builds ActionView::Template::Error: link_tree argument must be a directory
How does that play with the propshaft PR?
the .gitkeep isn't the end of the world
either way, LGTM
Not sure, actually! Good question though. I can test it. |
changelog: Internal, Build Tooling, Create stylesheet output directory if missing
This reverts commit 9e24f7402cdb6e732adfbf07fa1908673ecb58a6.
This reverts commit fe6f9db.
455c10f to
d844407
Compare
This reverts commit d844407.
|
Apparently still no dice 😢 Might need to keep it for now at least. The error is a little different. Previously Sprockets complained about |
|
Apparently it's "required" per the
|
|
I might plan to publish this as a release prior to #8375, which includes a breaking change for the package. (Just means bumping the version and updating the CHANGELOG accordingly) |
|
Published to NPM as |
🛠 Summary of changes
Enhances
@18f/identity-build-sassto create the output directory if it does not already exist, to avoid imposing a requirement that the folder exists already. This avoids the need for workarounds likeapp/assets/builds/.keep.Part of the goal of this is also to start establishing a pattern for testing CLI behaviors in the package.
📜 Testing Plan
yarn build:cssshould pass still, even after removingapp/assets/builds/.keep.