sarriaroman / FabricPlugin

Fabric.io plugin for Cordova or Phonegap
MIT License
198 stars 159 forks source link

Storing authentication tokens in environment files instead of package.json #105

Open davidquon opened 6 years ago

davidquon commented 6 years ago

When installing cordova-fabric-plugin per the instructions on the README it creates the authentication tokens in the package.json file. Is there a way to have the authentication tokens in environment variables/files instead of stored in the package.json so they aren't committed into source control?

Install from npm registry:

cordova plugin add cordova-fabric-plugin --variable FABRIC_API_KEY=XXX --variable FABRIC_API_SECRET=xxx

package.json:

            "cordova-fabric-plugin": {
                "FABRIC_API_KEY": "XXX",
                "FABRIC_API_SECRET": "xxx"
            },

P.S. Thanks for the great plugin!