feat(gen): add option to not add to index

Allow skipping of adding script to index file with default being to add
Merge pull request #406 from eddiemonge/patch-2

feat(gen): add option to not add to index