Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openedx/typescript-config
Common TypeScript configuration for Open edX
https://github.com/openedx/typescript-config
Last synced: about 1 month ago
JSON representation
Common TypeScript configuration for Open edX
- Host: GitHub
- URL: https://github.com/openedx/typescript-config
- Owner: openedx
- License: agpl-3.0
- Created: 2023-02-01T16:54:40.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2023-09-28T14:41:02.000Z (about 1 year ago)
- Last Synced: 2024-05-10T02:41:33.448Z (8 months ago)
- Size: 78.1 KB
- Stars: 1
- Watchers: 45
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![Build Status](https://github.com/openedx/typescript-config/actions/workflows/release.yml/badge.svg)](https://github.com/openedx/typescript-config/actions/workflows/release.yml/)
[![NPM Version](https://img.shields.io/npm/v/@edx/typescript-config.svg)](https://www.npmjs.com/package/@edx/typescript-config)
[![npm_downloads](https://img.shields.io/npm/dt/@edx/typescript-config.svg)](https://www.npmjs.com/package/@edx/tpyescript-config)
[![license](https://img.shields.io/npm/l/@edx/typescript-config.svg)](https://github.com/openedx/typescript-config/blob/main/LICENSE)
[![semantic release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)# @edx/typescript-config
## About
The presence of a tsconfig.json file in a directory indicates that the directory is the root of a TypeScript project. The tsconfig.json file specifies the root files and the compiler options required to compile the project (from https://www.typescriptlang.org/docs/handbook/tsconfig-json.html).
## Installation
```
npx install-peerdeps --dev @edx/typescript-config
```This will install the package and all of its peer dependencies.
## Usage
Create file in repository `tsconfig.json`, with a clause `"extends": "@edx/typescript-config"`, adding references to the root directory, output directory, and directories to include/exclude in TypeScript compilation.
```Sample json
{
"extends": "@edx/typescript-config",
"compilerOptions": {
"rootDir": ".",
"outDir": "dist"
},
"include": ["src/**/*"],
"exclude": ["dist", "node_modules"]
}
```