Move api-extractor and tsconfig to shared folder

This commit is contained in:
Pat Boyd 2020-03-25 13:23:14 -07:00
Родитель a86ef3267c
Коммит 85c1e4dbf4
58 изменённых файлов: 184 добавлений и 99 удалений

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

@ -1,26 +1,3 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
"apiReport": {
"enabled": true
},
"docModel": {
"enabled": true,
"apiJsonFilePath": "<projectFolder>/dist/<unscopedPackageName>.api.json"
},
"dtsRollup": {
"enabled": true
},
"messages": {
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
}
},
"tsdocMessageReporting": {
"tsdoc-undefined-tag": {
"logLevel": "none"
}
}
}
}
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,3 +1,3 @@
{
"extends": "../../api-extractor.json"
}
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,5 +1,5 @@
{
"extends": "../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib",
"allowSyntheticDefaultImports": true,

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -17,7 +17,7 @@ export interface IComposableType<
props: TProps;
/**
* slotProps, an object containing at least { root: IRootPropType }. The type of this object will dictate
* slotProps, an object containing at least \{ root: IRootPropType \}. The type of this object will dictate
* the slots on the component.
*/
slotProps: TSlotProps;

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -0,0 +1,75 @@
## API Report File for "@fluentui-react-native/interactive-hooks"
> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
```ts
import { IViewProps } from '@fluentui-react-native/adapters';
import { IViewWin32 } from '@office-iss/react-native-win32';
import * as React from 'react';
// @public (undocumented)
export type IFocusable = IViewWin32;
// @public (undocumented)
export type IFocusState = {
focused?: boolean;
};
// @public (undocumented)
export type IHoverState = {
hovered?: boolean;
};
// @public (undocumented)
export type IPressableHooks<T extends object> = {
props: IWithPressableOptions<T>;
state: IPressableState;
};
// @public (undocumented)
export type IPressableOptions = {
onStateChange?: (state: IPressableState) => void;
disabled?: boolean;
onPress?: () => void;
};
// @public (undocumented)
export type IPressableState = IPressState & IFocusState & IHoverState;
// @public (undocumented)
export type IPressState = {
pressed?: boolean;
};
// @public (undocumented)
export type IWithPressableOptions<T extends object> = T & IPressableOptions;
// @public (undocumented)
export type onChangeCallback = (key: string) => void;
// @public (undocumented)
export function useAsPressable(props: IWithPressableOptions<IViewProps>): IPressableHooks<IViewProps>;
// @public (undocumented)
export function useAsRadioGroupSelection(defaultSelectedKey: string | null, userCallback?: onChangeCallback): {
onChange: (key: string) => void;
selectedKey: string;
};
// @public
export function useFocusState<TViewProps = IViewProps>(): [TViewProps, IFocusState];
// @public
export function useHoverState<TViewProps = IViewProps>(): [TViewProps, IHoverState];
// @public
export function usePressState<TViewProps extends object = IViewProps>(_props: IWithPressableOptions<TViewProps>): [TViewProps, IPressState];
// @public
export function useViewCommandFocus(forwardRef: React.Ref<IViewWin32 | null> | undefined, initialValue?: React.Component): React.RefObject<React.Component>;
// (No @packageDocumentation comment for this package)
```

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -1,3 +1,3 @@
{
"extends": "../../../api-extractor.json"
"extends": "@uifabricshared/build-native/api-extractor.json"
}

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

@ -1,5 +1,5 @@
{
"extends": "../../../tsconfig.json",
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"outDir": "lib"
},

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

@ -0,0 +1,26 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts",
"apiReport": {
"enabled": true
},
"docModel": {
"enabled": true,
"apiJsonFilePath": "<projectFolder>/dist/<unscopedPackageName>.api.json"
},
"dtsRollup": {
"enabled": true
},
"messages": {
"extractorMessageReporting": {
"ae-missing-release-tag": {
"logLevel": "none"
}
},
"tsdocMessageReporting": {
"tsdoc-undefined-tag": {
"logLevel": "none"
}
}
}
}

23
scripts/tsconfig.json Normal file
Просмотреть файл

@ -0,0 +1,23 @@
{
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"strict": true,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": false,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"sourceMap": true,
"jsx": "react"
}
}

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

@ -1,23 +1,7 @@
{
"extends": "@uifabricshared/build-native/tsconfig.json",
"compilerOptions": {
"target": "es2015",
"module": "commonjs",
"moduleResolution": "node",
"declaration": true,
"declarationMap": true,
"strict": true,
"strictBindCallApply": false,
"forceConsistentCasingInFileNames": true,
"strictNullChecks": false,
"noImplicitAny": false,
"noImplicitReturns": true,
"noImplicitThis": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"esModuleInterop": true,
"skipLibCheck": true,
"skipDefaultLibCheck": true,
"sourceMap": true,
"jsx": "react"
}
"outDir": "lib"
},
"include": ["src"]
}