Skip to content
Discussion options

You must be logged in to vote

Hello, we got the nx monorepo setup to work as follows:

  1. create a lib to hold all panda configurations (panda.config.ts)
  2. build that lib with panda codegen --cwd=path/to/target/project --config=path/from/target/project/to/panda/config into all the other nx projects (requires panda 0.6.0 or higher, as the CLI had a bug with --config before that
  3. if the target project is an app (next, storybook, etc), used postcss.config.cjs to specify the config file from the config lib
  4. if not, use the panda CLI to extract the CSS from the target project and import it where needed

The only trouble we have in this setup is jest - it doesn't seem to want to swallow the panda styled engine, as it's ES6 and jes…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@mayteio
Comment options

@mayteio
Comment options

Answer selected by mayteio
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants