Skip to content

Instantly share code, notes, and snippets.

@kwhinnery
Created November 12, 2012 19:07
Show Gist options
  • Save kwhinnery/4061224 to your computer and use it in GitHub Desktop.
Save kwhinnery/4061224 to your computer and use it in GitHub Desktop.
task("post:compile",function(event,logger){
logger.info('Replacing generated models with raw model files...');
var root = event.dir.project,
path = require('path'),
wrench = require('wrench'),
resourcesModelsPath = path.join(root, 'Resources', 'alloy', 'models'),
appModelsPath = path.join(root, 'app', 'models');
wrench.rmdirSyncRecursive(resourcesModelsPath);
wrench.copyDirSyncRecursive(appModelsPath, resourcesModelsPath);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment