这是indexloc提供的服务,不要输入任何密码
Skip to content
Discussion options

You must be logged in to vote

There is no restriction on the type of code you put in a monorepo that runs Turborepo. However, if you want Turborepo to do anything in that PHP codebase, you need two things:

  • You'll need your monorepo's package manager to recognize the workspace
  • Your PHP "workspace" will need to include a package.json that has the scripts key with the tasks you want to run.

For example, if your repo looks like this:

apps/
|-- php-app
    |-- package.json
|-- nextjs-app
    |-- package.json
package.json
turbo.json

If you're generally using npm, the root package.json will declare workspace:

{
  // <rest of package.json omitted>
  "workspaces": [ "apps/*" ]
}

and apps/php-app/package.json will look like

{…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@andrewfairlie
Comment options

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