How to clean up the theme for production?

You can use gulp zip to do that. Take a look here https://www.npmjs.com/package/gulp-zip. This will let you zip up your theme with a terminal command and you can ignore whichever folders you want.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)