From 624b5f5f2976ff5b817d886c2256267cf4318805 Mon Sep 17 00:00:00 2001 From: samreid Date: Thu, 27 Feb 2020 11:38:05 -0700 Subject: [PATCH] Add repo to migration list, see https://github.com/phetsims/chipper/issues/875 --- area-model-decimals_en.html | 51 +++++++++++++++++++++++++----- js/area-model-decimals-config.js | 52 ------------------------------- js/area-model-decimals-main.js | 40 +++++++++++------------- js/area-model-decimals-strings.js | 14 +++++++++ js/areaModelDecimals.js | 10 ++++++ 5 files changed, 86 insertions(+), 81 deletions(-) delete mode 100644 js/area-model-decimals-config.js create mode 100644 js/area-model-decimals-strings.js create mode 100644 js/areaModelDecimals.js diff --git a/area-model-decimals_en.html b/area-model-decimals_en.html index da7edfd..c1eb077 100644 --- a/area-model-decimals_en.html +++ b/area-model-decimals_en.html @@ -17,6 +17,39 @@ \ No newline at end of file diff --git a/js/area-model-decimals-config.js b/js/area-model-decimals-config.js deleted file mode 100644 index 15ed178..0000000 --- a/js/area-model-decimals-config.js +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright 2018-2019, University of Colorado Boulder - -/* - * IMPORTANT: This file was auto-generated by "grunt generate-config". Please do not modify this directly. Instead - * please modify area-model-decimals/package.json to control dependencies. - * - * RequireJS configuration file for the area-model-decimals sim. - * Paths are relative to the location of this file. - */ - -require.config( { - - deps: [ 'area-model-decimals-main' ], - - paths: { - - // Third-party libs - text: '../../sherpa/lib/text-2.0.12', - - // PhET plugins - sound: '../../chipper/js/requirejs-plugins/sound', - image: '../../chipper/js/requirejs-plugins/image', - mipmap: '../../chipper/js/requirejs-plugins/mipmap', - string: '../../chipper/js/requirejs-plugins/string', - ifphetio: '../../chipper/js/requirejs-plugins/ifphetio', - - // PhET libs, uppercase names to identify them in require.js imports. - // IMPORTANT: DO NOT modify. This file is auto-generated. See documentation at the top. - AREA_MODEL_COMMON: '../../area-model-common/js', - AREA_MODEL_DECIMALS: '.', - AXON: '../../axon/js', - BRAND: '../../brand/' + phet.chipper.brand + '/js', - DOT: '../../dot/js', - JOIST: '../../joist/js', - KITE: '../../kite/js', - PHETCOMMON: '../../phetcommon/js', - PHET_CORE: '../../phet-core/js', - PHET_IO: '../../phet-io/js', - REPOSITORY: '..', - SCENERY: '../../scenery/js', - SCENERY_PHET: '../../scenery-phet/js', - SUN: '../../sun/js', - TAMBO: '../../tambo/js', - TANDEM: '../../tandem/js', - TWIXT: '../../twixt/js', - UTTERANCE_QUEUE: '../../utterance-queue/js', - VEGAS: '../../vegas/js' - }, - - // Cache busting is applied by default, but can be disabled via ?cacheBust=false, see initialize-globals.js - urlArgs: phet.chipper.getCacheBustArgs() -} ); diff --git a/js/area-model-decimals-main.js b/js/area-model-decimals-main.js index 436a842..656826f 100644 --- a/js/area-model-decimals-main.js +++ b/js/area-model-decimals-main.js @@ -5,29 +5,25 @@ * * @author Jonathan Olson */ -define( require => { - 'use strict'; - // modules - const DecimalsScreen = require( 'AREA_MODEL_COMMON/screens/DecimalsScreen' ); - const Sim = require( 'JOIST/Sim' ); - const SimLauncher = require( 'JOIST/SimLauncher' ); +import DecimalsScreen from '../../area-model-common/js/screens/DecimalsScreen.js'; +import Sim from '../../joist/js/Sim.js'; +import SimLauncher from '../../joist/js/SimLauncher.js'; +import areaModelDecimalsStrings from './area-model-decimals-strings.js'; - // strings - const areaModelDecimalsTitleString = require( 'string!AREA_MODEL_DECIMALS/area-model-decimals.title' ); +const areaModelDecimalsTitleString = areaModelDecimalsStrings[ 'area-model-decimals' ].title; - const simOptions = { - credits: { - leadDesign: 'Amy Hanson, Amanda McGarry', - softwareDevelopment: 'Jonathan Olson', - team: 'Karina Hensberry, Susan Miller, Ariel Paul, Kathy Perkins, Oliver Nix', - qualityAssurance: 'Steele Dalton, Bryce Griebenow, Ethan Johnson, Liam Mulhall, Ben Roberts, Jacob Romero, Ethan Ward, Clara Wilson, Kathryn Woessner', - graphicArts: 'Mariah Hermsmeyer, Amanda McGarry, Diana L\u00f3pez Tavares' - } - }; +const simOptions = { + credits: { + leadDesign: 'Amy Hanson, Amanda McGarry', + softwareDevelopment: 'Jonathan Olson', + team: 'Karina Hensberry, Susan Miller, Ariel Paul, Kathy Perkins, Oliver Nix', + qualityAssurance: 'Steele Dalton, Bryce Griebenow, Ethan Johnson, Liam Mulhall, Ben Roberts, Jacob Romero, Ethan Ward, Clara Wilson, Kathryn Woessner', + graphicArts: 'Mariah Hermsmeyer, Amanda McGarry, Diana L\u00f3pez Tavares' + } +}; - SimLauncher.launch( function() { - const sim = new Sim( areaModelDecimalsTitleString, [ new DecimalsScreen() ], simOptions ); - sim.start(); - } ); -} ); +SimLauncher.launch( function() { + const sim = new Sim( areaModelDecimalsTitleString, [ new DecimalsScreen() ], simOptions ); + sim.start(); +} ); \ No newline at end of file diff --git a/js/area-model-decimals-strings.js b/js/area-model-decimals-strings.js new file mode 100644 index 0000000..f40bad3 --- /dev/null +++ b/js/area-model-decimals-strings.js @@ -0,0 +1,14 @@ +// Copyright 2020, University of Colorado Boulder + +/** + * Auto-generated from modulify, DO NOT manually modify. + */ + +import getStringModule from '../../chipper/js/getStringModule.js'; +import areaModelDecimals from './areaModelDecimals.js'; + +const areaModelDecimalsStrings = getStringModule( 'AREA_MODEL_DECIMALS' ); + +areaModelDecimals.register( 'areaModelDecimalsStrings', areaModelDecimalsStrings ); + +export default areaModelDecimalsStrings; diff --git a/js/areaModelDecimals.js b/js/areaModelDecimals.js new file mode 100644 index 0000000..47170f7 --- /dev/null +++ b/js/areaModelDecimals.js @@ -0,0 +1,10 @@ +// Copyright 2020, University of Colorado Boulder + +/** + * Creates the namespace for this simulation. + */ + +// modules +import Namespace from '../../phet-core/js/Namespace.js'; + +export default new Namespace( 'areaModelDecimals' );