Why did I have to add platform on each computer?


#1

I have a ionic project on github. On my original machine I added android as a platform.

I’ve cloned the repo to another machine and when I try to run on android it tells me I must add it as a platform. Is this expected? Do I have a file in my .gitignore that is preventing the platform config from being added to the repo?

Here is my .gitignore file:

 # Specifies intentionally untracked files to ignore when using Git
# http://git-scm.com/docs/gitignore

*~
*.sw[mnpcod]
*.log
*.tmp
*.tmp.*
log.txt
*.sublime-project
*.sublime-workspace
.vscode/
npm-debug.log*

.idea/
.sass-cache/
.tmp/
.versions/
coverage/
dist/
node_modules/
tmp/
temp/
hooks/
platforms/
plugins/
plugins/android.json
plugins/ios.json
www/
$RECYCLE.BIN/

.DS_Store
Thumbs.db
UserInterfaceState.xcuserstate

#2

Yes. Inside the platforms directory is platform.json file which defines the platforms. Since those directories undergo a lot of churn when building, they are usually excluded from the repos.