wpengine / wpengine/faustjs

Request: set custom filename/location for `globalStylesheet.css` when running `faust generateGlobalStylesheet`.

Open
#1,413 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

good first issue help wanted package: @faustwp/cli type: feature
Dominant language
TypeScript
Stars
1.6k
Forks
155
Avg merge
1d 18h
Merged PRs (30d)
20

Description

Currently, faust generateGlobalStylesheet saves the generated globalStylesheet.css in the same root folder as package.json.

It would be really nice to be able to set the location and filename for where the global stylesheet gets saved, e.g. to src/styles/__generated__/globalStyles.css

Alternatives considered
faust generateGlobalStylesheet && mv globalStylesheet.css src/styles/globalStyles.css

works, but its not a pretty solution for what I can only assume will be a common use case.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with packages/faustwp-cli/src/generateGlobalStylesheet.ts at the referenced save location, then trace how faust generateGlobalStylesheet receives command options. The work is complete when the command accepts a custom filename and location and writes the generated stylesheet there, including the example src/styles/generated/globalStyles.css path.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.