cli icon indicating copy to clipboard operation
cli copied to clipboard

`.gitignore` not being copied by extension creator

Open davwheat opened this issue 4 years ago • 1 comments

The /.gitignore file from the extension boilerplate doesn't get copied to the created extension, leading node_modules to be added to git.

This is because npm removes .gitignore files when publishing packages, meaning that even when globOptions.dot is true when calling copyTpl, the file won't be copied.

The recommended solution appears to be to rename the files to something else, such as gitignore and renaming them to .gitignore after copying them.

davwheat avatar Aug 09 '21 07:08 davwheat

darn 😬

SychO9 avatar Aug 09 '21 08:08 SychO9