|
@@ -15,14 +15,15 @@ module.exports = function(grunt) {
|
|
|
helloWorld: {
|
|
|
src: ['projects/HelloWorld/st/HelloWorld.st'],
|
|
|
output_dir: 'projects/HelloWorld/js',
|
|
|
+ libraries: 'Canvas',
|
|
|
+ jsGlobals: ['global1', 'global2'],
|
|
|
main_class: 'HelloWorld',
|
|
|
output_name: 'helloWorld',
|
|
|
- libraries: 'Canvas',
|
|
|
init: 'myInit',
|
|
|
main_file: 'myMain.js',
|
|
|
deploy: true,
|
|
|
output_suffix: 'mySuffix',
|
|
|
- library_suffix: '-0.9'
|
|
|
+ library_suffix: '-0.9'
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -112,6 +113,9 @@ module.exports = function(grunt) {
|
|
|
if (undefined !== data.output_dir) {
|
|
|
configuration.output_dir = data.output_dir;
|
|
|
}
|
|
|
+ if (undefined !== data.jsGlobals) {
|
|
|
+ configuration.jsGlobals.push.apply(configuration.jsGlobals, data.jsGlobals);
|
|
|
+ }
|
|
|
configuration.verbose = data.verbose;
|
|
|
return configuration;
|
|
|
}
|