[RequireJS] Specify path for uuid

Specify path for uuid, making it available for any code that would require it,
without that code needing to know the path to it.

Fixes https://github.com/nasa/openmctweb/issues/211.
This commit is contained in:
Pete Richards 2015-10-23 16:32:05 -07:00
parent 90828ef63d
commit 3d996ac466
3 changed files with 8 additions and 2 deletions

View File

@ -1,4 +1,9 @@
{ {
"configuration": {
"paths": {
"uuid": "uuid"
}
},
"extensions": { "extensions": {
"routes": [ "routes": [
{ {

View File

@ -25,7 +25,7 @@
* Module defining CreateService. Created by vwoeltje on 11/10/14. * Module defining CreateService. Created by vwoeltje on 11/10/14.
*/ */
define( define(
["../../lib/uuid"], ["uuid"],
function (uuid) { function (uuid) {
"use strict"; "use strict";

View File

@ -44,7 +44,8 @@ require.config({
paths: { paths: {
'es6-promise': 'platform/framework/lib/es6-promise-2.0.0.min', 'es6-promise': 'platform/framework/lib/es6-promise-2.0.0.min',
'moment-duration-format': 'warp/clock/lib/moment-duration-format' 'moment-duration-format': 'warp/clock/lib/moment-duration-format',
'uuid': 'platform/commonUI/browse/lib/uuid'
}, },
// dynamically load all test files // dynamically load all test files