Add a git attributes file for line ending settings (#180)

* bump beachball version to one with prepublish fix

* update beachball hook to use new prepublish strategy

* add gitattributes for auto text line endings

* update values

* renormalize files

* Change files
This commit is contained in:
Jason Morse 2020-04-24 11:38:36 -07:00 коммит произвёл GitHub
Родитель 4392f30963
Коммит dc062498d6
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
71 изменённых файлов: 3258 добавлений и 3102 удалений

2
.gitattributes поставляемый Normal file
Просмотреть файл

@ -0,0 +1,2 @@
# Set the default line ending behavior for text, in case people don't have core.autocrlf set.
* text=auto

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

@ -13,7 +13,7 @@ const brandColors = {
Word: ['#E3ECFA', '#A5B9D1', '#7DA3C6', '#4A78B0', '#3C65A4', '#2B579A', '#124078', '#002050'], Word: ['#E3ECFA', '#A5B9D1', '#7DA3C6', '#4A78B0', '#3C65A4', '#2B579A', '#124078', '#002050'],
Excel: ['#E9F5EE', '#9FCDB3', '#6EB38A', '#4E9668', '#3F8159', '#217346', '#0E5C2F', '#004B1C'], Excel: ['#E9F5EE', '#9FCDB3', '#6EB38A', '#4E9668', '#3F8159', '#217346', '#0E5C2F', '#004B1C'],
Powerpoint: ['#FCF0ED', '#FDC9B5', '#ED9583', '#E86E58', '#C75033', '#B7472A', '#A92B1A', '#740912'], Powerpoint: ['#FCF0ED', '#FDC9B5', '#ED9583', '#E86E58', '#C75033', '#B7472A', '#A92B1A', '#740912'],
Outlook: ['#CCE3F5', '#B3D6F2', '#69AFE5', '#2488D8', '#0078D7', '#106EBE', '#1664A7', '#135995'], Outlook: ['#CCE3F5', '#B3D6F2', '#69AFE5', '#2488D8', '#0078D7', '#106EBE', '#1664A7', '#135995']
}; };
// This IProcessTheme takes the parent theme and shims in the brand colors selected in the RadioGroup // This IProcessTheme takes the parent theme and shims in the brand colors selected in the RadioGroup
@ -56,28 +56,28 @@ const getThemedStyles = themedStyleSheet((theme: ITheme) => {
height: 20, height: 20,
marginRight: 5, marginRight: 5,
borderWidth: 2, borderWidth: 2,
borderColor: theme.colors.bodyText, borderColor: theme.colors.bodyText
}, },
extraLargeStandardEmphasis: { extraLargeStandardEmphasis: {
color: hostSettings ? hostSettings.palette.TextEmphasis : theme.colors.bodyText, color: hostSettings ? hostSettings.palette.TextEmphasis : theme.colors.bodyText,
fontSize: theme.typography.sizes.header, fontSize: theme.typography.sizes.header,
fontWeight: theme.typography.weights.regular, fontWeight: theme.typography.weights.regular,
fontFamily: theme.typography.families.primary, fontFamily: theme.typography.families.primary
} as TextStyle, } as TextStyle,
largeStandard: { largeStandard: {
color: theme.colors.bodyText, color: theme.colors.bodyText,
fontSize: theme.typography.sizes.body, fontSize: theme.typography.sizes.body,
fontWeight: theme.typography.weights.regular, fontWeight: theme.typography.weights.regular,
fontFamily: theme.typography.families.primary, fontFamily: theme.typography.families.primary,
marginBottom: 5, marginBottom: 5
} as TextStyle, } as TextStyle,
stackStyle: { stackStyle: {
borderWidth: 2, borderWidth: 2,
borderColor: theme.colors.focusBorder, borderColor: theme.colors.focusBorder,
padding: 12, padding: 12,
margin: 8, margin: 8,
backgroundColor: theme.colors.background, backgroundColor: theme.colors.background
}, }
}; };
}); });
@ -85,12 +85,12 @@ const styles = StyleSheet.create({
swatchItem: { swatchItem: {
flexDirection: 'row', flexDirection: 'row',
alignItems: 'center', alignItems: 'center',
marginVertical: 5, marginVertical: 5
}, },
pickerContainer: { pickerContainer: {
flexDirection: 'row', flexDirection: 'row',
justifyContent: 'space-evenly', justifyContent: 'space-evenly'
}, }
}); });
const Panel: React.FunctionComponent = () => { const Panel: React.FunctionComponent = () => {
@ -138,7 +138,9 @@ const SwatchList: React.FunctionComponent = () => {
); );
const flattenArray = React.useCallback(() => { const flattenArray = React.useCallback(() => {
return Object.keys(hostSettings.palette).sort().map(aggregator); return Object.keys(hostSettings.palette)
.sort()
.map(aggregator);
}, [hostSettings.palette, aggregator]); }, [hostSettings.palette, aggregator]);
const paletteAsArray = React.useMemo(flattenArray, [flattenArray]); const paletteAsArray = React.useMemo(flattenArray, [flattenArray]);

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui/react-native",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:23.897Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/adapters",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:24.990Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/build-tools",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:26.061Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/button",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:04.618Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/callout",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:06.521Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/checkbox",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:07.762Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/focus-trap-zone",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:08.906Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/link",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:10.072Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/persona",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:11.164Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/persona-coin",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:12.343Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/pressable",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:13.471Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/radio-group",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:14.685Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/separator",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:15.929Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/text",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:17.203Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@fluentui-react-native/tokens",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:27.125Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@uifabricshared/foundation-compose",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:18.346Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@uifabricshared/themed-stylesheet",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:19.672Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@uifabricshared/theming-ramp",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:21.671Z"
}

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

@ -0,0 +1,8 @@
{
"type": "patch",
"comment": "renormalize files",
"packageName": "@uifabricshared/theming-react-native",
"email": "jasonmo@microsoft.com",
"dependentChangeType": "patch",
"date": "2020-04-24T07:22:22.676Z"
}