Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature / subprojects #267

Open
MikeMitterer opened this issue Jun 5, 2015 · 5 comments
Open

feature / subprojects #267

MikeMitterer opened this issue Jun 5, 2015 · 5 comments

Comments

@MikeMitterer
Copy link

Maybe it's a bit early for grinder but I think we'll need subprojects in the future. As you can see in my SS all my samples have their own pubspec.yaml - and yes - this is necessary. The more samples you provide the more complicate it becomes to control the samples via parent pubspec...

screenshot-1790

@seaneagan
Copy link
Contributor

I think this works already by adding a dependency on grinder to your sub-projects pubspecs, and giving them each their own tool/grind.dart script:

cd example/mdl_card
pub global activate den
den install grinder
pub get
pub run grinder:init
# edit `example/mdl_card/tool/grind.dart` as necessary
grind

Were you requesting something else?

@zoechi
Copy link

zoechi commented Jun 5, 2015

I do something like

projects.forEach((p) {
    Pub.run('grinder',
          arguments: ['check'],
          runOptions: new RunOptions(workingDirectory: p));
});

@zoechi
Copy link

zoechi commented Jun 5, 2015

@MikeMitterer I tried it with a directory structure like yours but pub get/pub upgrade ruinded all symlinks within examples. Using another directory (none of the official top-level directory names) fixed it. I wonder if you run into this as well?

@MikeMitterer
Copy link
Author

@zoechi Yes I had no luck either - I'm using a combination of my own buildSample-dart-script (not public) and a good old bash-script for this. It jumps into each sample folder runs the necessary tasks jumps back and continues with the next sample folder.

Works nice but I'd like to switch all these tasks to grinder so I made this feature-request...

@zoechi
Copy link

zoechi commented Jun 5, 2015

Grinder works nice the way I showed above, just pub xxx messes with subrojects when they are in the example folder - just to be clear :)

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

No branches or pull requests

3 participants