jeromerg
jeromerg

Reputation: 3145

Grunt+Bower: dependency to another local project

I have two local Grunt+Bower-projects with typical build and watch/serve tasks:

AdminClient should re-use Client code and build-result. watch/serve must behave transparently for any change in Client and AdminClient.

How can I do this with Grunt+Bower?

It is a basic problem solved in C# with project dependency and in java typically with maven sub-modules.

Upvotes: 0

Views: 58

Answers (1)

Lachezar
Lachezar

Reputation: 6723

You can have the Client configuration in a separate file that you extend in the AdminClient.

var common = require("common.js");
...
grunt.initConfig(common.config);

Upvotes: 1

Related Questions