Tweaked gitignore

gitignore removed all composer and npm files, so automated builds would fail
This commit is contained in:
Henry Whitaker
2020-04-12 21:24:03 +01:00
parent 698687f12d
commit ea5808047f
27863 changed files with 3399604 additions and 5 deletions

1
conf/site/node_modules/tiny-warning/src/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1 @@
export default function warning(condition: any, message: string): void

30
conf/site/node_modules/tiny-warning/src/index.js generated vendored Normal file
View File

@@ -0,0 +1,30 @@
// @flow
const isProduction: boolean = process.env.NODE_ENV === 'production';
export default function warning(condition: mixed, message: string): void {
// don't do anything in production
// wrapping in production check for better dead code elimination
if (!isProduction) {
// condition passed: do not log
if (condition) {
return;
}
// Condition not passed
const text: string = `Warning: ${message}`;
// check console for IE9 support which provides console
// only with open devtools
if (typeof console !== 'undefined') {
console.warn(text);
}
// Throwing an error and catching it immediately
// to improve debugging
// A consumer can use 'pause on caught exceptions'
// https://github.com/facebook/react/issues/4216
try {
throw Error(text);
} catch (x) {}
}
}