Reputation: 3145
I have two local Grunt+Bower-projects with typical build
and watch
/serve
tasks:
Client
contains the client to be publicly releasedAdminClient
is an extension to client
intended for internal administration useAdminClient
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
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