draft-classic icon indicating copy to clipboard operation
draft-classic copied to clipboard

Usage with monorepos

Open gaui opened this issue 7 years ago • 0 comments

How would you use Draft with monorepos where all dependencies are managed at the root-level by some dependency manager like Paket / Lerna / etc.

Project structure might look something like this:

/
|-- .paket
|-- paket.dependencies
|-- Project_1
|   |-- API
|   |   |-- Dockerfile
|   |   `-- paket.references
|   |   `-- <project files>
|   `-- Client
|       `-- Dockerfile
|       `-- lerna.json
|   |   `-- <project files>
|-- Project_2
|   |-- API
|   |   |-- Dockerfile
|   |   `-- paket.references
|   |   `-- <project files>
|   `-- Client
|       `-- Dockerfile
|       `-- lerna.json
|   |   `-- <project files>

To be able to build the API in Project_2 I would need this build context:

/
|-- .paket
|-- paket.dependencies
|-- Project_2
|   |-- API
|   |   |-- Dockerfile
|   |   `-- paket.references
|   |   `-- <project files>

Is there some way to specify additional files with draft create command? What is the best way to achieve this?

gaui avatar Nov 25 '18 23:11 gaui