When you write:
grunt.initConfig({
compass: {
dist: {
options: grunt.config.get('baz')
}
}
... grunt.config baz, . () .
?
# 1: compass.dist.options baz
grunt.registerTask('compassWithConfig', 'Run compass with external async config loaded first', function () {
var done = this.async();
someZookeeperConfig( function () {
var config = CONFIG;
grunt.config.set('compass.dist.options', config);
done();
});
});
, compassWithConfig, compass .
# 2: -
grunt.registerTask('wrappedCompass', '', function () {
grunt.config.set('compass.dist.options', grunt.config.get('baz'));
grunt.task.run('compass');
});
grunt.registerTask('globalConfigurator', '', function () {
var done = this.async();
someZookeeperConfig( function () {
var config = CONFIG;
grunt.config.set('baz', config);
done();
});
});
, globalConfigurator, wrappedCompass .