@@ -44,28 +44,24 @@ module.exports = (grunt) ->
4444 CMP_CORE_TS = { }
4545 CMP_CORE_NAME = [ ]
4646 for target in SRC_CORE_CMP
47- CMP_CORE_NAME .push (" typescript :" + target)
47+ CMP_CORE_NAME .push (" ts :" + target)
4848 CMP_CORE_TS[target] =
49- options :
50- target : ' es5'
51- basePath : ' src/core'
52- src : " src/core/" + target + " .ts"
53- dest : " src/core/" + target + " .js"
49+ src : [" src/core/" + target + " .ts" ]
50+ out : " src/core/" + target + " .js"
5451
5552 # Dynamically generate the kagerou ts targets
5653 CMP_KAGEROU_TS = { }
5754 CMP_KAGEROU_NAME = [ ]
5855 for target,src of SRC_SCRIPTING_KAGEROU
59- CMP_KAGEROU_NAME .push (' typescript :kagerou_engine_' + target)
56+ CMP_KAGEROU_NAME .push (' ts :kagerou_engine_' + target)
6057 CMP_KAGEROU_TS[' kagerou_engine_' + target] =
61- options :
62- target : ' es5'
63- basePath : src .split (' /' )[0 .. - 1 ].join (' /' )
6458 src : src
65- dest : ' build/scripting/api/' + src .split (' /' ).pop ().split (' .' )[0 ] + ' .js'
59+ out : ' build/scripting/api/' + src .split (' /' ).pop ().split (' .' )[0 ] + ' .js'
6660
6761 # Append Typescript Tasks
68- ts_config = {}
62+ ts_config =
63+ options :
64+ target : ' es5'
6965 for key,value of CMP_CORE_TS
7066 ts_config[key] = value
7167 for key,value of CMP_KAGEROU_TS
@@ -99,7 +95,7 @@ module.exports = (grunt) ->
9995 ' build/CommentCoreLibrary.js' : SRC_CORELIB
10096
10197 # Compile TypeScript
102- typescript : ts_config
98+ ts : ts_config
10399
104100 # Copy
105101 copy :
@@ -169,8 +165,10 @@ module.exports = (grunt) ->
169165 specs : ' compiled_spec/*spec.js'
170166 helpers : ' spec/*helper.js'
171167 vendor : [
172- ' node_modules/jasmine- jquery/vendor/jquery /jquery.js'
168+ ' node_modules/jquery/dist /jquery.js'
173169 ' node_modules/jasmine-jquery/lib/jasmine-jquery.js'
170+ ' node_modules/sinon/pkg/sinon.js'
171+ ' node_modules/jasmine-sinon/lib/jasmine-sinon.js'
174172 ]
175173 template : require (' grunt-template-jasmine-istanbul' )
176174 templateOptions :
@@ -182,8 +180,10 @@ module.exports = (grunt) ->
182180 specs : ' compiled_spec/*spec.js'
183181 helpers : ' spec/*helper.js'
184182 vendor : [
185- ' node_modules/jasmine- jquery/vendor/jquery /jquery.js'
183+ ' node_modules/jquery/dist /jquery.js'
186184 ' node_modules/jasmine-jquery/lib/jasmine-jquery.js'
185+ ' node_modules/sinon/pkg/sinon.js'
186+ ' node_modules/jasmine-sinon/lib/jasmine-sinon.js'
187187 ]
188188 template : require (' grunt-template-jasmine-istanbul' )
189189 templateOptions :
0 commit comments