tsconfig-templates
v0.0.6
Published
Add the package to your `"devDependencies"`:
Downloads
50
Readme
tsconfig-templates.
Add the package to your "devDependencies"
:
npm install --save-dev tsconfig-templates
yarn add --dev tsconfig-templates
API
getTsConfigFiles
- Lists availables tsconfig filesgetTsConfigNames
- Lists tsconfigs display names.getTsConfigs
- Lists tsconfigs filename and display titleparseTsConfigFile(tsconfigFilename)
- Parse tsconfig file content.copyTsConfigFile(tsconfigFile: string, dest= process.cwd(), filename = 'tsconfig.json')
- copies the specified tsconfig file to destination with the specified filename.
import {parseTsConfigFile, getTsConfigFiles } from tsconfig-templates;
// To list available tsconfig files
const tsconfigs = getTsConfigFiles();
// Pick one available tsconfig file to get its content
const content = parseTsConfigFile('remix.json');
Credits
- bases. The templates are found under the bases folder (https://github.com/tsconfig/bases/blob/master/bases/).