Skip to content

timdp/flex-sdk-provider

Repository files navigation

Flex SDK Provider

npm Dependencies Build Status JavaScript Standard Style

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

Tim De Pauw

License

MIT

About

Wraps the Adobe/Apache Flex SDK in a Node module.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •