I'm using UIKit in place of Bootstrap, I also needed to add a module structure,
since UI Kit's dependencies look only within the base directory I tried to do
this:
@Contribute(ModuleManager.class)
public static void provideAliases(List<ModuleConfigurationCallback>
callbacks){
callbacks.add(new ModuleConfigurationCallback() {
@Override
public JSONObject configure(JSONObject configuration) {
return configuration.append("paths", new JSONObject(
"uikit", "uikit/uikit"));
}
});
}
Complains that you need use a Configuration
@Contribute(ModuleManager.class)
public static void
provideAliases(Configuration<ModuleConfigurationCallback> callbacks){
callbacks.add(new ModuleConfigurationCallback() {
@Override
public JSONObject configure(JSONObject configuration) {
return configuration.append("paths", new JSONObject(
"uikit", "uikit/uikit"));
}
});
}
Complains you need to use a mapped configuration
@Contribute(ModuleManager.class)
public static void provideAliases(MappedConfiguration<String,
ModuleConfigurationCallback> callbacks){
callbacks.add("paths", new ModuleConfigurationCallback() {
@Override
public JSONObject configure(JSONObject configuration) {
configuration.append("paths", new JSONObject("uikit",
"uikit/uikit"));
}
});
}
Complains that there is no coercion to .. I forgot which class it was, and the
callback is apparently a per page/component and can not be manipulated globally.
So as a last resort I just modified the JS :/, a new problem arises RequireJS
is allowing my init script to run before the dependency is fully initialized.
So now I really need to modify my RequireJS config. :( Anyone know how?