Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Support truffle boxes where the truffle project is not at the project root (e.g. monorepos) #11

Open
adrianmcli opened this issue Nov 21, 2017 · 1 comment

Comments

@adrianmcli
Copy link

The current implementation forces all valid truffle boxes to have the truffle project be in the base directory for the repo by checking for a /master/truffle.js.

    var configURL = parseURL(
      vcsurl(url)
        .replace("github.com", "raw.githubusercontent.com")
        .replace(/#.*/, "") +
        "/master/truffle.js"
);

Source

I am the author of a Truffle Box (link) and I wanted to convert my Truffle Box into a monorepo instead. By that I mean I wanted to separate the frontend client and truffle project into two separate folders (not nested): /truffle and /client.

In other words, I wanted to be able to run truffle unbox <my truffle box name> and immediately get a monorepo of a truffle project and my frontend client in separate folders. However, the current implementation does not allow that and I understand why that might be the case. I assume you want all truffle boxes to deposit the truffle project in the current directory.

Nevertheless, I thought this was worth an issue anyhow.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants