generate config to before.js