{"action":"created","issue":{"url":"https://api.github.com/repos/phetsims/chipper/issues/187","labels_url":"https://api.github.com/repos/phetsims/chipper/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/phetsims/chipper/issues/187/comments","events_url":"https://api.github.com/repos/phetsims/chipper/issues/187/events","html_url":"https://github.com/phetsims/chipper/issues/187","id":97181457,"number":187,"title":"Put the simNameUppercase in the package.json?","user":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/phetsims/chipper/labels/licensing","name":"licensing","color":"d4c5f9"},{"url":"https://api.github.com/repos/phetsims/chipper/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"milestone":null,"comments":11,"created_at":"2015-07-25T02:02:13Z","updated_at":"2015-08-04T04:41:26Z","closed_at":null,"body":"For licensing, I need to obtain the uppercased sim name, such as BALANCING_ACT.  I am currently obtaining this by looking at the prefix of the simTitleStringKey, but it may be better to factor out the upper case name into a separate field.  We could potentially even obviate the need for this simTitleStringKey if we can automatically construct it from the lower+upper case names."},"comment":{"url":"https://api.github.com/repos/phetsims/chipper/issues/comments/127475984","html_url":"https://github.com/phetsims/chipper/issues/187#issuecomment-127475984","issue_url":"https://api.github.com/repos/phetsims/chipper/issues/187","id":127475984,"user":{"login":"samreid","id":679486,"avatar_url":"https://avatars.githubusercontent.com/u/679486?v=3","gravatar_id":"","url":"https://api.github.com/users/samreid","html_url":"https://github.com/samreid","followers_url":"https://api.github.com/users/samreid/followers","following_url":"https://api.github.com/users/samreid/following{/other_user}","gists_url":"https://api.github.com/users/samreid/gists{/gist_id}","starred_url":"https://api.github.com/users/samreid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samreid/subscriptions","organizations_url":"https://api.github.com/users/samreid/orgs","repos_url":"https://api.github.com/users/samreid/repos","events_url":"https://api.github.com/users/samreid/events{/privacy}","received_events_url":"https://api.github.com/users/samreid/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T04:41:26Z","updated_at":"2015-08-04T04:41:26Z","body":"Thanks for clarifying.  Since this is already how it is being done, do you recommend further work for this issue?\r\n\r\nThe relevant code that implements the \"use the prefix\" strategy is in afterRequirejsBuild.js:\r\n\r\n```js\r\n    // After all plugins completed, check which images & audio files are in the images/audio directories \r\n    // but not loaded by the plugins. The simNameUppercase such as BALANCING_ACT is required in order\r\n    // to identify the namespaced resources. This reuses the pkg.simTitleStringKey to get the simNameUppercase\r\n    var simNameUppercase = pkg.simTitleStringKey.substring( 0, pkg.simTitleStringKey.indexOf( '/' ) );\r\n```"}}