Skip to content

Commit

Permalink
Add layers through joist, see #1055
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jun 20, 2021
1 parent a438d3d commit e245778
Show file tree
Hide file tree
Showing 10 changed files with 245 additions and 0 deletions.
21 changes: 21 additions & 0 deletions tsconfig/brand/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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",
]
}
6 changes: 6 additions & 0 deletions tsconfig/chipper-get-string-module/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"extends": "../../tsconfig-core.json",
"include": [
"../../../chipper/js/getStringModule.js"
]
}
42 changes: 42 additions & 0 deletions tsconfig/joist/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
24 changes: 24 additions & 0 deletions tsconfig/phet-io/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/**/*"
]
}
20 changes: 20 additions & 0 deletions tsconfig/phetcommon/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
34 changes: 34 additions & 0 deletions tsconfig/scenery-phet/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
18 changes: 18 additions & 0 deletions tsconfig/sherpa/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/**/*"
]
}
37 changes: 37 additions & 0 deletions tsconfig/sun/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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"
]
}
23 changes: 23 additions & 0 deletions tsconfig/tambo/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/**/*"
]
}
20 changes: 20 additions & 0 deletions tsconfig/twixt/tsconfig.json
Original file line number Diff line number Diff line change
@@ -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/**/*"
]
}

0 comments on commit e245778

Please sign in to comment.