question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What are your thoughts on adding config via a CLI as an alternative to using package.json. We’d love to start using this on our apps but would rather not have to update each apps’ package.json?

I’d be happy to attempt a PR but want to know your thoughts?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
leggsimoncommented, Jul 5, 2017

So thinking of some other tools that have a few ways of configuring it, there seems to be a sort of option of

a. package.json properties (as bundlesize currently uses) b. .config.yml or .config.json c. CLI args

For simple things you could use CLI but then when you want more config you can move to a or b to make it less bloated. I think CLI is good for simple config like

$ bundlesize --file /dist/*.js --threshold 3kb
1reaction
siddharthkpcommented, Jul 6, 2017

@leggsimon I think we should skip option b for now (config.yml) and only implement CLI params

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring the AWS CLI - AWS Command Line Interface
This section explains how to configure the settings that the AWS Command Line Interface (AWS CLI) uses to interact with AWS. These include...
Read more >
cli-config - npm
A 'one call' API maps lib to a command line interface. Merges settings from package, home, project, project group, command options, ...
Read more >
configure — AWS CLI 2.9.11 Command Reference
Description¶. Configure AWS CLI options. If this command is run with no arguments, you will be prompted for configuration values such as your...
Read more >
Configuring the CLI - Oracle Help Center
Configuring the CLI · Specify a default profile. · Set default values for command options so you don't have to type them into...
Read more >
wp config | WP-CLI Command
Refreshes the salts defined in the wp-config.php file. Command documentation is regenerated at every release. To add or update an example, please submit...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found