0.9.1 • Published 3 years ago

flex-sdk-provider v0.9.1

Weekly downloads
5
License
MIT
Repository
github
Last release
3 years ago

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

0.9.0

3 years ago

0.9.1

3 years ago

0.8.3

8 years ago

0.8.2

8 years ago

0.8.1

8 years ago

0.8.0

8 years ago

0.7.2

8 years ago

0.7.1

8 years ago

0.7.0

8 years ago

0.6.2

9 years ago

0.6.1

9 years ago

0.6.0

9 years ago

0.5.0

9 years ago

0.3.0

9 years ago

0.2.1

9 years ago

0.2.0

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago