Skip to content
Browse files
Merge pull request #63 from audreyso/CB-11982proposal
CB-11982 proposal for creating a new cordova config command
  • Loading branch information
stevengill committed Jul 21, 2017
2 parents 720ccad + 788be4b commit 6ba3ec95e0e4df8d7427168cbc0f544c2b6c9ece
Showing 1 changed file with 44 additions and 0 deletions.
@@ -0,0 +1,44 @@
# Create New Cordova Config Command Proposal
Status : Proposed

## Current
Currently, telemetry and update-notifier use under the hood. Stores configs in ~/.config/configstore/

Sample code

const Configstore = require('configstore');
const pkg = require('./package.json');

// create a Configstore instance with an unique ID e.g.
// package name and optionally some default values
const conf = new Configstore(, {foo: 'bar'});

//=> 'bar'

conf.set('awesome', true);
//=> true

// use dot-notation to access nested properties
conf.set('bar.baz', true);
//=> {baz: true}

//=> undefined

## Proposal
Create a new cordova config command modeled after npm config command. It will include a global config to turn autosave off for cordova.

### Future Goals ?
Any other suggestions on what else you would like to see in the global config?

### Links

### Motivation
This new command provides the ability to store environment variables (similarly to browserify, fetch, and save).

0 comments on commit 6ba3ec9

Please sign in to comment.