chore: organize tsconfig files to take advantage of extends feature (#1776)

* cleanup root tsconfig

* organize breakpoint-tracker-react tsconfig files

* remove un-necessary properties

* cleanup fast-colors tsconfig files

* organize base contracts tsconfig

* clean up msft contracts tsconfig

* clean up foundation tsconfig

* organize base components tsconfig

* organize msft component tsconfig

* organize styles tsconifg

* clean up dev site tsconfigs

* clean up glyph tsconifg

* organize snapshots tsconfig

* organize jss-manager tsconfig

* organize jss-manager-react tsconfigs

* organize jss utilities tsconfig

* organize react layouts tsconfigs

* organize markdown tsconfigs

* organize fast tooling tsconfigs

* organize web utilities tsconfigs
This commit is contained in:
Nicholas Rice 2019-05-21 13:26:12 -07:00 коммит произвёл GitHub
Родитель 59cae59483
Коммит 3ce6331a20
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
55 изменённых файлов: 270 добавлений и 280 удалений

Просмотреть файл

@ -15,7 +15,7 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.{ts,tsx}\"",

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.*"
]
}

Просмотреть файл

@ -1,18 +1,3 @@
{
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.*"
]
"extends": "../../tsconfig.json"
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,15 @@
{
"extends": "./tsconfig.json",
"compilerOptions": {
"outDir": "dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"__test-images__"
]
}

Просмотреть файл

@ -1,20 +1,6 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"__test-images__"
]
"baseUrl": "."
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,17 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
],
"exclude": [
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,17 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*",
],
"exclude": [
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.{ts,tsx}\"",

Просмотреть файл

@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx"
]
}

Просмотреть файл

@ -1,20 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && npm run copy:all",
"build": "tsc -p ./tsconfig.build.json && npm run copy:all",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js .tmp",

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/examples.data.tsx"
]
}

Просмотреть файл

@ -1,24 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"files": [
"typings.d.ts"
],
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/examples.data.tsx"
]
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json && npm run copy:all",
"build": "tsc -p ./tsconfig.build.json && npm run copy:all",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js .tmp",

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/examples.data.tsx"
]
}

Просмотреть файл

@ -1,24 +1,10 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"files": [
"typings.d.ts"
],
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/examples.data.tsx"
]
}

Просмотреть файл

@ -22,7 +22,7 @@
"tslint": "tslint -c ./tslint.json '**/*.ts'",
"tslint:fix": "tslint -c ./tslint.json --fix '**/*.ts'",
"test": "npm run tslint && npm run unit-tests",
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"build:watch": "npm run build -- -w",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,18 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -1,7 +1,8 @@
import React from "react";
import ReactDOM from "react-dom";
import { glyphBuildingblocks } from "@microsoft/fast-glyphs-msft";
import { Plugin, PluginProps } from "@microsoft/fast-tooling-react";
import React from "react";
import Site, {
ComponentViewSlot,
FormChildOption,
SiteCategory,
SiteCategoryDocumentation,
@ -13,17 +14,18 @@ import Site, {
SiteTitleBrand,
Theme,
} from "../src";
import designSystemDefaults, { Direction } from "./design-system";
import { Button, Paragraph, Span } from "./components";
import ButtonSchema from "./components/button/button.schema.json";
import ParagraphSchema from "./components/paragraph/paragraph.schema.json";
import SpanSchema from "./components/paragraph/paragraph.schema.json";
import { SiteCategoryProps, Status } from "../src/components/site/category";
import ParagraphDocs from "./components/paragraph/.tmp/documentation";
import ButtonDocs from "./components/button/.tmp/documentation";
import { Framework } from "../src/components/site/dev-tools";
import { Button, Paragraph, Span } from "./components";
import ButtonDocs from "./components/button/.tmp/documentation";
import ButtonSchema from "./components/button/button.schema.json";
import ParagraphDocs from "./components/paragraph/.tmp/documentation";
import {
default as ParagraphSchema,
default as SpanSchema,
} from "./components/paragraph/paragraph.schema.json";
import { Direction } from "./design-system";
import TextPlugin from "./plugins/text-plugin";
import { Plugin, PluginProps } from "@microsoft/fast-data-utilities-react";
export interface AppState {
direction: Direction;
@ -243,7 +245,9 @@ export default class App extends React.Component<{}, AppState> {
return (
<SiteCategoryItem
slot={
index === 0 ? "canvas-detail-view-example" : "canvas-example-view"
index === 0
? ComponentViewSlot.detailDocumentation
: ComponentViewSlot.example
}
key={index}
data={componentDataItem}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"convert:readme": "node ../../build/convert-readme.js --src=app/**/README.md .tmp",

Просмотреть файл

@ -0,0 +1,6 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
]
}

Просмотреть файл

@ -1,16 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"target": "es6",
"jsx": "react"
},
"include": [
"src/**/*"
]
}
"outDir": "./dist"
}
}

Просмотреть файл

@ -1,13 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"outDir": "./dist",
"sourceMap": true,
"target": "es6"
"module": "commonjs"
},
"include": [
"utilities/**/*"

Просмотреть файл

@ -18,8 +18,9 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"prepare": "npm run build",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.{ts,tsx}\"",
"prettier:diff": "prettier --config ../../.prettierrc \"**/*.{ts,tsx}\" --list-different",
"start": "webpack-dev-server",

Просмотреть файл

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts",
"**/*.spec.tsx"
]
}

Просмотреть файл

@ -1,16 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*",
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.{ts,tsx}\"",

Просмотреть файл

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.*"
]
}

Просмотреть файл

@ -1,18 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.*"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,17 @@
"use strict";
exports.__esModule = true;
var lodash_es_1 = require("lodash-es");
/**
* Merges design-system values. Only plain Object values will be merged recursively,
* all other values will be merged by assignment.
*
* This function returns a new object
*/
function mergeDesignSystem(original, overrides) {
return lodash_es_1.mergeWith({}, original, overrides, function(objValue, srcValue) {
if (Array.isArray(srcValue)) {
return srcValue;
}
});
}
exports.mergeDesignSystem = mergeDesignSystem;

Просмотреть файл

@ -0,0 +1,9 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,17 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,18 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"type": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",

Просмотреть файл

@ -0,0 +1,11 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx"
]
}

Просмотреть файл

@ -1,21 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"lib": ["dom", "es6", "es7"],
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"typings": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.{ts,tsx}\"",

Просмотреть файл

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.*"
]
}

Просмотреть файл

@ -1,19 +1,8 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "commonjs",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.*"
]
}
}

Просмотреть файл

@ -18,7 +18,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"build:app": "webpack --progress --mode=production",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",

Просмотреть файл

@ -0,0 +1,12 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/__tests__/**"
]
}

Просмотреть файл

@ -1,23 +1,9 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"lib": [ "es2016", "dom"],
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"jsx": "react",
"outDir": "./dist",
"resolveJsonModule": true
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts",
"**/*.spec.tsx",
"**/__tests__/**"
]
}
}

Просмотреть файл

@ -17,7 +17,7 @@
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc -p ./tsconfig.json",
"build": "tsc -p ./tsconfig.build.json",
"clean:dist": "node ../../build/clean.js dist",
"prepare": "npm run clean:dist && npm run build",
"prettier": "prettier --config ../../.prettierrc --write \"**/*.ts\"",

Просмотреть файл

@ -0,0 +1,10 @@
{
"extends": "./tsconfig.json",
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}

Просмотреть файл

@ -1,18 +1,7 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"outDir": "./dist"
},
"include": [
"src/**/*"
],
"exclude": [
"node_modules",
"**/*.spec.ts"
]
}
}

Просмотреть файл

@ -1,15 +1,10 @@
{
"compilerOptions": {
"esModuleInterop": true,
"moduleResolution": "node",
"module": "ES6",
"target": "ES6",
"baseUrl": ".",
"declaration": true,
"esModuleInterop": true
},
"exclude": [
"node_modules",
"**/*.spec.ts"
]
"esModuleInterop": true,
"jsx": "react",
"module": "ES6",
"moduleResolution": "node",
"target": "ES6"
}
}