flex-sdk-provider
v0.9.1
Published
Wraps the Adobe/Apache Flex SDK in a Node module.
Downloads
1
Readme
Flex SDK Provider
Wraps the Adobe/Apache Flex SDK in a Node module. Built as an alternative to flex-sdk following SemVer issues.
Not entirely sure where I'm going with this yet. Expect breakage.
API
var provider = require('flex-sdk-provider')
console.log('Available versions:', provider.versions)
// Get a specific version, optionally downloading it first
provider.get('4.12.0')
.then(function (dir) {
console.log('Flex SDK 4.12.0 is now at:', dir)
})
// Download and extract a specific version, whether it exists or not
provider.download('4.14.0')
.then(function (dir) {
console.log('Flex SDK 4.14.0 downloaded and extracted to:', dir)
})
// Locate a specific version, assuming it was already downloaded
provider.locate('4.14.1')
.then(function (dir) {
console.log('Flex SDK 4.14.1 is located at:', dir)
})
CLI
# Download and extract a version if it doesn't exist yet
$ provide-flex-sdk 4.6.0
# Download and extract a version even if it exists already
$ provide-flex-sdk --force 4.9.0
# Download all available versions
$ provide-flex-sdk all
Caveat
The module attempts to avoid multiple simultaneous downloads of the same version of the SDK. However, because Node.js does not support file locking yet, the mechanism is far from perfect.
The fs-ext
module does add a native
flock
, but at the time of this writing, it is not supported on Windows. It is
therefore not used at this point.
Author
License
MIT