From e2457788d6954bdd08486f9b4876a5f85be5552c Mon Sep 17 00:00:00 2001 From: samreid Date: Sun, 20 Jun 2021 15:30:29 -0600 Subject: [PATCH] Add layers through joist, see https://github.com/phetsims/chipper/issues/1055 --- tsconfig/brand/tsconfig.json | 21 ++++++++++ .../chipper-get-string-module/tsconfig.json | 6 +++ tsconfig/joist/tsconfig.json | 42 +++++++++++++++++++ tsconfig/phet-io/tsconfig.json | 24 +++++++++++ tsconfig/phetcommon/tsconfig.json | 20 +++++++++ tsconfig/scenery-phet/tsconfig.json | 34 +++++++++++++++ tsconfig/sherpa/tsconfig.json | 18 ++++++++ tsconfig/sun/tsconfig.json | 37 ++++++++++++++++ tsconfig/tambo/tsconfig.json | 23 ++++++++++ tsconfig/twixt/tsconfig.json | 20 +++++++++ 10 files changed, 245 insertions(+) create mode 100644 tsconfig/brand/tsconfig.json create mode 100644 tsconfig/chipper-get-string-module/tsconfig.json create mode 100644 tsconfig/joist/tsconfig.json create mode 100644 tsconfig/phet-io/tsconfig.json create mode 100644 tsconfig/phetcommon/tsconfig.json create mode 100644 tsconfig/scenery-phet/tsconfig.json create mode 100644 tsconfig/sherpa/tsconfig.json create mode 100644 tsconfig/sun/tsconfig.json create mode 100644 tsconfig/tambo/tsconfig.json create mode 100644 tsconfig/twixt/tsconfig.json diff --git a/tsconfig/brand/tsconfig.json b/tsconfig/brand/tsconfig.json new file mode 100644 index 000000000..6557308b6 --- /dev/null +++ b/tsconfig/brand/tsconfig.json @@ -0,0 +1,21 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../phet-core" + },{ + "path": "../chipper-get-string-module" + } + ], + "include": [ + "../../../brand/js/**/*", + "../../../brand/phet/js/Brand.js", + "../../../brand/phet/images/**/*", + "../../../brand/phet-io/js/Brand.js", + "../../../brand/phet-io/images/**/*", + "../../../brand/adapted-from-phet/js/Brand.js", + "../../../brand/adapted-from-phet/images/**/*", + "../../../joist/js/joist.js", + "../../../joist/js/joistStrings.js", + ] +} diff --git a/tsconfig/chipper-get-string-module/tsconfig.json b/tsconfig/chipper-get-string-module/tsconfig.json new file mode 100644 index 000000000..e85f941ff --- /dev/null +++ b/tsconfig/chipper-get-string-module/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "../../tsconfig-core.json", + "include": [ + "../../../chipper/js/getStringModule.js" + ] +} diff --git a/tsconfig/joist/tsconfig.json b/tsconfig/joist/tsconfig.json new file mode 100644 index 000000000..8eabd17a2 --- /dev/null +++ b/tsconfig/joist/tsconfig.json @@ -0,0 +1,42 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../scenery-phet" + }, + { + "path": "../phet-io" + }, + { + + // Defines joist and joistStrings, and other parts loaded dynamically in SimLauncher + "path": "../brand" + } + ], + "include": [ + "../../../joist/js/**/*", + "../../../joist/sounds/**/*", + "../../../joist/mipmaps/**/*", + "../../../joist/images/**/*", + + // scenery-phet had to wait to get these in the joist layer + "../../../sun/js/Popupable.js", + "../../../sun/js/Dialog.js", + "../../../scenery-phet/js/ContextLossFailureDialog.js", + "../../../scenery-phet/js/OopsDialog.js" + ], + "exclude": [ + "../../../joist/js/**/*tests.js", // Cannot use **test** like we do elsewhere because of UpdaTESTate + "../../../joist/js/joist-main.js", + "../../../joist/js/demo/**/*", + + // In brand layer + "../../../joist/js/joist.js", + "../../../joist/js/joistStrings.js", + + // defined in phet-io layer + "../../../joist/js/packageJSON.js", + "../../../joist/js/SimInfo.js", + "../../../joist/js/joist.js" + ] +} diff --git a/tsconfig/phet-io/tsconfig.json b/tsconfig/phet-io/tsconfig.json new file mode 100644 index 000000000..8205a2e83 --- /dev/null +++ b/tsconfig/phet-io/tsconfig.json @@ -0,0 +1,24 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../scenery" + } + ], + "include": [ + "../../../phet-io/js/**/*", + "../../../phet-io/sounds/**/*", + "../../../phet-io/mipmaps/**/*", + "../../../phet-io/images/**/*", + + // Borrow from joist + "../../../joist/js/packageJSON.js", + "../../../joist/js/SimInfo.js", + "../../../joist/js/joist.js" + ], + "exclude": [ + "../../../phet-io/js/**/*test*", + "../../../phet-io/js/phet-io-main.js", + "../../../phet-io/js/demo/**/*" + ] +} diff --git a/tsconfig/phetcommon/tsconfig.json b/tsconfig/phetcommon/tsconfig.json new file mode 100644 index 000000000..590a5eb96 --- /dev/null +++ b/tsconfig/phetcommon/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + // Could potentially be relaxed somewhat. Doesn't depend on scenery directly, but uses + // some files scenery includes. + "path": "../scenery" + } + ], + "include": [ + "../../../phetcommon/js/**/*" + ], + "exclude": [ + "../../../phetcommon/js/**/*test*", + // Covered elsewhere + "../../../phetcommon/js/util/StringUtils.js", + "../../../phetcommon/js/view/ModelViewTransform2.js", + "../../../phetcommon/js/phetcommon.js" + ] +} diff --git a/tsconfig/scenery-phet/tsconfig.json b/tsconfig/scenery-phet/tsconfig.json new file mode 100644 index 000000000..5a338dd2e --- /dev/null +++ b/tsconfig/scenery-phet/tsconfig.json @@ -0,0 +1,34 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../sun" + } + ], + "include": [ + "../../../scenery-phet/js/**/*", + "../../../scenery-phet/sounds/**/*", + "../../../scenery-phet/mipmaps/**/*", + "../../../scenery-phet/images/**/*" + ], + "exclude": [ + "../../../scenery-phet/js/**/*test*", + "../../../scenery-phet/js/scenery-phet-main.js", + "../../../scenery-phet/js/demo/**/*", + + // Unfortunately, these had to be put in sun layer + "../../../scenery-phet/js/NumberDisplay.js", + "../../../scenery-phet/js/PhetFont.js", + "../../../scenery-phet/js/MathSymbols.js", + "../../../scenery-phet/js/sceneryPhetStrings.js", + "../../../scenery-phet/js/sceneryPhet.js", + + // has to wait for joist layer + "../../../scenery-phet/js/ContextLossFailureDialog.js", + "../../../scenery-phet/js/OopsDialog.js", +// +// // Included in scenery for now +// "../../../scenery-phet/js/SunConstants.js", +// "../../../scenery-phet/js/scenery-phet.js" + ] +} diff --git a/tsconfig/sherpa/tsconfig.json b/tsconfig/sherpa/tsconfig.json new file mode 100644 index 000000000..79cecb0f5 --- /dev/null +++ b/tsconfig/sherpa/tsconfig.json @@ -0,0 +1,18 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../scenery" + } + ], + "include": [ + "../../../sherpa/js/**/*", + "../../../sherpa/lib/lodash-4.17.4.min.js", + "../../../sherpa/lib/game-up-camera-1.0.0.js" + ], + "exclude": [ + "../../../sherpa/js/**/*test*", + "../../../sherpa/js/sherpa-main.js", + "../../../sherpa/js/demo/**/*" + ] +} diff --git a/tsconfig/sun/tsconfig.json b/tsconfig/sun/tsconfig.json new file mode 100644 index 000000000..882d141d4 --- /dev/null +++ b/tsconfig/sun/tsconfig.json @@ -0,0 +1,37 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + "path": "../tambo" + },{ + "path": "../twixt" + },{ + "path": "../phetcommon" + },{ + "path": "../sherpa" + } + ], + "include": [ + "../../../sun/js/**/*", + + // Unfortunately, these are borrowed from scenery-phet + "../../../scenery-phet/js/NumberDisplay.js", + "../../../scenery-phet/js/PhetFont.js", + "../../../scenery-phet/js/MathSymbols.js", + "../../../scenery-phet/js/sceneryPhetStrings.js", + "../../../scenery-phet/js/sceneryPhet.js" + ], + "exclude": [ + "../../../sun/js/**/*test*", + "../../../sun/js/sun-main.js", + "../../../sun/js/demo/**/*", + + // has to wait for joist layer + "../../../sun/js/Popupable.js", + "../../../sun/js/Dialog.js", + + // Included in scenery for now + "../../../sun/js/SunConstants.js", + "../../../sun/js/sun.js" + ] +} diff --git a/tsconfig/tambo/tsconfig.json b/tsconfig/tambo/tsconfig.json new file mode 100644 index 000000000..40a0d13ec --- /dev/null +++ b/tsconfig/tambo/tsconfig.json @@ -0,0 +1,23 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + // Could potentially be relaxed somewhat. Doesn't depend on scenery directly, but uses + // some files scenery includes. + "path": "../scenery" + }, + { + "path": "../chipper-get-string-module" + } + ], + "include": [ + "../../../tambo/js/**/*", + "../../../tambo/sounds/**/*", + "../../../tambo/images/**/*" + ], + "exclude": [ + "../../../tambo/js/**/*test*", + "../../../tambo/js/tambo-main.js", + "../../../tambo/js/demo/**/*" + ] +} diff --git a/tsconfig/twixt/tsconfig.json b/tsconfig/twixt/tsconfig.json new file mode 100644 index 000000000..c61071382 --- /dev/null +++ b/tsconfig/twixt/tsconfig.json @@ -0,0 +1,20 @@ +{ + "extends": "../../tsconfig-core.json", + "references": [ + { + // Could potentially be relaxed somewhat. Doesn't depend on scenery directly, but uses + // some files scenery includes. + "path": "../scenery" + },{ + "path": "../chipper-get-string-module" + } + ], + "include": [ + "../../../twixt/js/**/*" + ], + "exclude": [ + "../../../twixt/js/**/*test*", + "../../../twixt/js/twixt-main.js", + "../../../twixt/js/demo/**/*" + ] +}