grunt-flash-compiler
Advanced tools
Comparing version 0.1.1 to 0.2.0
{ | ||
"name": "grunt-flash-compiler", | ||
"version": "0.1.1", | ||
"version": "0.2.0", | ||
"description": "Compile your ActionScript using flex or Air!", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -65,3 +65,3 @@ var fs = require('fs'); | ||
var description = 'Compile Flash SWF files. Usage `grunt flash:player:debug|release|swc:air|flex`'; | ||
var description = 'Compile Flash SWF files'; | ||
grunt.registerMultiTask('flash', description, function() { | ||
@@ -97,26 +97,31 @@ | ||
'-compiler.source-path=src/flash', | ||
'-compiler.library-path+=' + options.sdk + '/frameworks/libs', | ||
'-compiler.library-path+=' + options.sdk + '/frameworks/libs', | ||
'-default-background-color=0x000000', | ||
'-default-frame-rate=30', | ||
'-target-player=' + options.flashVersion, | ||
'-swf-version=' + options.swfTarget, | ||
'-use-network=true', | ||
'-define+=JWPLAYER::version,\'' + options.buildVersion + '\'' | ||
'-target-player=' + options.flashVersion, | ||
'-swf-version=' + options.swfTarget, | ||
'-use-network=true' | ||
]; | ||
if (options.compilerLibraryPath) { | ||
// Framework specific optimizations | ||
var isFlex = /flex/.test(options.sdk); | ||
if (isFlex) { | ||
arr.push( | ||
'-compiler.library-path+='+ options.compilerLibraryPath | ||
'-static-link-runtime-shared-libraries=true' | ||
); | ||
} | ||
if (options.externalLibraryPath) { | ||
} else { | ||
arr.push( | ||
'-external-library-path+=' + options.externalLibraryPath | ||
'-show-multiple-definition-warnings=true', | ||
'-compiler.inline=true', | ||
'-compiler.remove-dead-code=true' | ||
); | ||
} | ||
if (options.extraSourcePath) { | ||
arr.push( | ||
'-compiler.source-path+=' + options.extraSourcePath | ||
); | ||
if (options.targetCompilerOptions) { | ||
arr = arr.concat(options.targetCompilerOptions); | ||
} | ||
if (options.taskCompilerOptions) { | ||
arr = arr.concat(options.taskCompilerOptions); | ||
} | ||
return arr; | ||
@@ -136,12 +141,8 @@ } | ||
args: args.concat( | ||
'-output=' + dest, | ||
'-include-sources=' + src, | ||
'-show-multiple-definition-warnings=true', | ||
'-compiler.inline=true', | ||
'-compiler.remove-dead-code=true', | ||
'-output=' + dest, | ||
'-include-sources=' + src, | ||
'-optimize=true', | ||
'-omit-trace-statements=true', | ||
'-warnings=false', | ||
'-define+=CONFIG::debugging,false', | ||
'-define+=CONFIG::staging,false' | ||
'-define+=CONFIG::debugging,false' | ||
) | ||
@@ -160,3 +161,3 @@ }; | ||
args: args.concat( | ||
'-output=' + dest, | ||
'-output=' + dest, | ||
src | ||
@@ -180,15 +181,2 @@ ) | ||
// Framework specific optimizations | ||
var isFlex = /flex/.test(options.sdk); | ||
if (isFlex) { | ||
command.args.push( | ||
'-static-link-runtime-shared-libraries=true' | ||
); | ||
} else { | ||
command.args.push( | ||
'-show-multiple-definition-warnings=true', | ||
'-compiler.inline=true', | ||
'-compiler.remove-dead-code=true' | ||
); | ||
} | ||
@@ -198,8 +186,7 @@ | ||
command.args.push( | ||
'-link-report=' + dest.slice(0, -4) + 'link.xml', | ||
'-size-report=' + dest.slice(0, -4) + 'size.xml', | ||
'-link-report=' + dest.slice(0, -4) + 'link.xml', | ||
'-size-report=' + dest.slice(0, -4) + 'size.xml', | ||
'-strict=true', | ||
'-debug=true', | ||
'-define+=CONFIG::debugging,true', | ||
'-define+=CONFIG::staging,true' | ||
'-define+=CONFIG::debugging,true' | ||
); | ||
@@ -211,4 +198,3 @@ } else { | ||
'-warnings=false', | ||
'-define+=CONFIG::debugging,false', | ||
'-define+=CONFIG::staging,false' | ||
'-define+=CONFIG::debugging,false' | ||
); | ||
@@ -215,0 +201,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
7377
4
1
39
0
167