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.

initalizing config with values

See original GitHub issue

Suggestion

🔍 Search Terms

–init options

✅ Viability Checklist

My suggestion meets these guidelines:

  • This wouldn’t be a breaking change in existing TypeScript/JavaScript code
  • This wouldn’t change the runtime behavior of existing JavaScript code
  • This could be implemented without emitting different JS based on the types of the expressions
  • This isn’t a runtime feature (e.g. library functionality, non-ECMAScript syntax with JavaScript output, new syntax sugar for JS, etc.)
  • This feature would agree with the rest of TypeScript’s Design Goals.

⭐ Suggestion

Allow --init to be used with compiler flags, so you can make a tsconfig.json with non-default values in a single command.

📃 Motivating Example

You can make a tsconfig.json with non-default values, making it easier to initialize TS projects.

💻 Use Cases

I use a bash alias/function to initialize my projects, and there’s no easy way to set the outDir to a non-default value, it would be nice to have this feature so its much easier.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:2
  • Comments:11 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Aug 24, 2021

pog i got good first issue

0reactions
andrewbranchcommented, Apr 28, 2022

So is the current status that all compilerOptions keys can already be specified but no root keys like include, exclude, files, references can? Each of these keys is an array type and include and exclude values commonly include globs that will be evaluated by the shell if not quoted. I’m not sure these are actually very good candidates for specifying on the CLI.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Initializing the Configuration - Revenera Product Documentation
The createConfig() method must be called in order to initialize the configuration. The createConfig() method creates a configuration for the SDK instance.
Read more >
Python Initialization Configuration — Python 3.11.1 ...
Python can be initialized with Py_InitializeFromConfig() and the PyConfig structure. ... variables and command line arguments are used to configure Python.
Read more >
initialize object of specified class with data from configuration file
I am using Apache Commons Configuration to read config file in YAML format. Suppose I have a yaml config file with below content...
Read more >
Chapter 7. Application Configuration and Initialization
ConfigManager's first step on initialization is to read the expresso-config.xml file, and to create one or more "contexts" of configuration values.
Read more >
Config Variables Initialization | Python
With no usage shown, no implementation for LookupDict shown and nothing other than your network type values, this is overdesigned and offers ...
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