grunt-flash-compiler
Advanced tools
Comparing version 0.2.3 to 0.3.0
{ | ||
"name": "grunt-flash-compiler", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Compile your ActionScript using flex or Air!", | ||
@@ -18,3 +18,6 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/jwplayer/grunt-flash-compiler" | ||
"homepage": "https://github.com/jwplayer/grunt-flash-compiler", | ||
"devDependencies": { | ||
"flex-sdk": "^4.6.0-0" | ||
} | ||
} |
var fs = require('fs'); | ||
var os = require('os'); | ||
var flexSDK = require('flex-sdk'); | ||
var env = process.env; | ||
@@ -8,8 +9,2 @@ | ||
======================================== | ||
9 | 9 | ||
10 | 10.0, 10.1 | ||
11 | 10.2 | ||
12 | 10.3 | ||
13 | 11.0 | ||
14 | 11.1 | ||
15 | 11.2 | ||
@@ -29,2 +24,3 @@ 16 | 11.3 | ||
28 | 17.0 | ||
29 | 18.0 | ||
Src: http://sleepydesign.blogspot.com/2012/04/flash-swf-version-meaning.html | ||
@@ -80,13 +76,7 @@ */ | ||
var options = this.options({ | ||
flashVersion: 16, | ||
swfTarget: 27, | ||
sdk: env.FLEX_HOME | ||
flashVersion: '15.0', | ||
swfTarget: 26, | ||
sdk: flexSDK.FLEX_HOME | ||
}); | ||
// A common failure is forgetting so set an environment variable | ||
if (!options.sdk) { | ||
grunt.fail.warn('To compile ActionScript, you must set environment ' + | ||
'variable $AIR_HOME or $FLEX_HOME for this task to locate mxmlc.'); | ||
} | ||
this.files.forEach(function(file) { | ||
@@ -93,0 +83,0 @@ // If a flag tells us to build the library file |
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
7215
1
164