add watchrun task and copy all resources from lib directory as globals to base.js