initalizing config with values
See original GitHub issueSuggestion
🔍 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:
- Created 2 years ago
- Reactions:2
- Comments:11 (8 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
pog i got good first issue
So is the current status that all
compilerOptions
keys can already be specified but no root keys likeinclude
,exclude
,files
,references
can? Each of these keys is an array type andinclude
andexclude
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.