Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 774 Bytes

README.md

File metadata and controls

44 lines (32 loc) · 774 Bytes

@sngular/tsconfig

Sharable TypeScript config enforcing SNGULAR style guidelines.

Getting started

Install:

npm install --save-dev @sngular/tsconfig

Config for basic config:

echo "{ \"extends\": \"@sngular/tsconfig\" }" > tsconfig.json

Config for check only config:

echo "{ \"extends\": \"@sngular/tsconfig/checkOnly\" }" > tsconfig.json

After that you have to include:

  • compilerOptions.outDir
  • compilerOptions.rootDir
  • include
  • exclude

The final aspect of tsconfig should be like:

{
	"extends": "@sngular/tsconfig",
	"compilerOptions": {
		"outDir": "./dist-types",
		"rootDir": "."
	},
	"include": ["src"],
	"exclude": ["dist-types"]
}