Try to convert generator.js
Rename `src` to `lib`