extract dependencies into bower.json and package.json