Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

grunt-flash-compiler

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-flash-compiler - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

README.md

2

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc