Added TS compilation to settings files in grunt

Updated GameStartr to make it work.
This commit is contained in:
Josh Goldberg
2016-02-27 18:46:19 -08:00
parent 9f85face64
commit dc202d0fa7
3 changed files with 17 additions and 7 deletions
+8 -2
View File
@@ -21,10 +21,16 @@ module.exports = function (grunt) {
},
"typescript": {
"base": {
"src": "<%= meta.paths.source %>/<%= pkg.name %>.ts"
"src": [
"<%= meta.paths.source %>/<%= pkg.name %>.ts",
"<%= meta.paths.source %>/settings/**/*.ts"
]
},
"distribution": {
"src": "<%= meta.paths.source %>/<%= pkg.name %>.ts",
"src": [
"<%= meta.paths.source %>/<%= pkg.name %>.ts",
"<%= meta.paths.source %>/settings/**/*.ts"
],
"dest": "<%= meta.paths.dist %>/<%= pkg.name %>-<%= pkg.version %>.js"
}
},
+6 -2
View File
@@ -397,11 +397,15 @@ declare module GameStartr {
/**
* Function for when a PreThing is to be spawned.
*
* @param prething A PreThing entering the map.
*/
onSpawn?: (prething: MapsCreatr.IPreThing) => void;
/**
* Function for when a PreThing is to be un-spawned.
*
* @param prething A PreThing leaving the map.
*/
onUnspawn?: (prething: MapsCreatr.IPreThing) => void;
@@ -425,12 +429,12 @@ declare module GameStartr {
/**
* If stretches exists, a Function to add stretches to an Area.
*/
stretchAdd: AreaSpawnr.ICommandAdder;
stretchAdd?: AreaSpawnr.ICommandAdder;
/**
* If afters exists, a Function to add afters to an Area.
*/
afterAdd: AreaSpawnr.ICommandAdder;
afterAdd?: AreaSpawnr.ICommandAdder;
/**
* Macro functions to create PreThings, keyed by String alias.
+3 -3
View File
@@ -209,7 +209,7 @@ module FullScreenPokemon {
}
}
},
{
<MenuGraphr.IMenuChildSchema>{
"type": "menu",
"name": "PokedexNumbers"
}],
@@ -255,7 +255,7 @@ module FullScreenPokemon {
"textSpeed": 0,
"textPaddingY": 4
},
"PokedexOptions": {
"PokedexOptions": <MenuGraphr.IListMenuSchema>{
"size": {
"width": 21.5,
"height": 37
@@ -276,7 +276,7 @@ module FullScreenPokemon {
"textXOffset": 4,
"textYOffset": 5
},
"PokedexListing": {
"PokedexListing": <any>{
"size": {
"width": 80,
"height": 72