My NativeScript .gitignore File

This is a quick post just for anyone who’s looking for a .gitignore file to add to their NativeScript projects that they version using Git…

Take control of your career. Build JavaScript mobile apps.

This is a quick post just for anyone who’s looking for a .gitignore file to add to their NativeScript projects that they version using Git.

At this point, none of the NativeScript out of the box templates generate a .gitignore file. This may be because not everyone uses Git and not everyone has the same preferences. So here are my preferences for those that may be searching for a starting point. Note: I use TypeScript with for NativeScript, so you’ll see that JavaScript files are ignored. If you are using plain old JavaScript, then you’ll have to omit that line.

Here is the file

.DS_Store
node_modules
platforms
lib
hooks
dist
*.js
*.map
*.log

Please submit any useful settings you may have in the comments below, or tweet at me @digitalix

Enjoy!


Alex lives in Washington, DC. He's a speaker, trainer, and a Telerik Developer Expert. He's been invloved in NativeScript projects since 2015 and has created courses for Pluralsight, LinkedIn, and Coursera.

Did you enjoy this? Share it!

Take control of your career. Build JavaScript mobile apps.