|
@@ -18,11 +18,12 @@ module.exports = function(grunt) {
|
|
|
libraries: 'Canvas', // optional
|
|
|
jsGlobals: ['global1', 'global2'], // optional
|
|
|
main_class: 'HelloWorld', // optional
|
|
|
- output_name: 'helloWorld', // optional
|
|
|
- main_file: 'myMain.js', // optional
|
|
|
- deploy: true, // optional
|
|
|
- output_suffix: 'mySuffix', // optional
|
|
|
- library_suffix: '-0.9' // optional
|
|
|
+ output_name: 'helloWorld', // optional
|
|
|
+ amd_namespace: 'MyPackage', // optional (default: 'amber')
|
|
|
+ main_file: 'myMain.js', // optional
|
|
|
+ deploy: true, // optional
|
|
|
+ output_suffix: 'mySuffix', // optional
|
|
|
+ library_suffix: '-0.9' // optional
|
|
|
},
|
|
|
},
|
|
|
|
|
@@ -104,6 +105,10 @@ module.exports = function(grunt) {
|
|
|
if (undefined !== outputName) {
|
|
|
configuration.program = outputName;
|
|
|
}
|
|
|
+ var amdNamespace = data.amd_namespace;
|
|
|
+ if (undefined !== amdNamespace) {
|
|
|
+ configuration.amd_namespace = amdNamespace;
|
|
|
+ }
|
|
|
if (undefined !== data.output_dir) {
|
|
|
configuration.output_dir = data.output_dir;
|
|
|
}
|