traceur-rb 0.0.2 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/traceur/configuration.rb +1 -1
- data/lib/traceur/version.rb +1 -1
- data/{vendor/node_modules → node_modules}/.bin/traceur +0 -0
- data/{vendor/node_modules → node_modules}/traceur/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/README.md +0 -0
- data/node_modules/traceur/bin/traceur-runtime.js +3420 -0
- data/node_modules/traceur/bin/traceur.js +30354 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/.bin/semver +0 -0
- data/node_modules/traceur/node_modules/commander/History.md +256 -0
- data/node_modules/traceur/node_modules/commander/LICENSE +22 -0
- data/node_modules/traceur/node_modules/commander/Readme.md +342 -0
- data/node_modules/traceur/node_modules/commander/index.js +1103 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.npmignore +3 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/.travis.yml +5 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/LICENSE +22 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/README.md +17 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/index.js +12 -0
- data/node_modules/traceur/node_modules/commander/node_modules/graceful-readlink/package.json +48 -0
- data/node_modules/traceur/node_modules/commander/package.json +75 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/common.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/glob.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/.eslintrc +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/inflight.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json +52 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/inflight/package.json +61 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inflight/test.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/inherits_browser.js +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/inherits/package.json +50 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/inherits/test.js +0 -0
- data/{vendor/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy → node_modules/traceur/node_modules/glob/node_modules/minimatch}/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/README.md +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/minimatch/browser.js +1159 -0
- data/node_modules/traceur/node_modules/glob/node_modules/minimatch/minimatch.js +912 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/minimatch/package.json +63 -0
- data/node_modules/traceur/node_modules/glob/node_modules/once/LICENSE +15 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/README.md +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE +15 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/README.md +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/package.json +52 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/once.js +0 -0
- data/node_modules/traceur/node_modules/glob/node_modules/once/package.json +60 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/node_modules/once/test/once.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/package.json +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/glob/sync.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/CHANGELOG.md +255 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/LICENSE +0 -0
- data/node_modules/traceur/node_modules/rsvp/README.md +366 -0
- data/node_modules/traceur/node_modules/rsvp/dist/rsvp.js +1597 -0
- data/node_modules/traceur/node_modules/rsvp/dist/rsvp.min.js +9 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp.js +70 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp.umd.js +51 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/-internal.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/all-settled.js +73 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/all.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/asap.js +112 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/config.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/defer.js +45 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/enumerator.js +130 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/events.js +205 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/filter.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash-settled.js +126 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/hash.js +94 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/instrument.js +41 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/map.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/node.js +281 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/platform.js +14 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise-hash.js +52 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise.js +496 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/promise/all.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/race.js +105 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/reject.js +47 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/promise/resolve.js +49 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/race.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/reject.js +16 -0
- data/node_modules/traceur/node_modules/rsvp/lib/rsvp/resolve.js +17 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/rethrow.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/rsvp/lib/rsvp/utils.js +0 -0
- data/node_modules/traceur/node_modules/rsvp/package.json +106 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/.npmignore +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/Makefile +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/bin/semver +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/foot.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/head.js +0 -0
- data/node_modules/traceur/node_modules/semver/package.json +50 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.browser.js.gz +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/semver.min.js.gz +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/amd.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/gtr.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/index.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/ltr.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/semver/test/no-module.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/.npmignore +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/LICENSE.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/README.md +0 -0
- data/node_modules/traceur/node_modules/source-map-support/amd-test/browser-source-map-support.js +89 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/index.html +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/require.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.coffee +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/amd-test/script.map +0 -0
- data/node_modules/traceur/node_modules/source-map-support/browser-source-map-support.js +89 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/index.html +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.coffee +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/browser-test/script.map +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/build.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/index.html +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.coffee +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/script.map +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/header-test/server.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.npmignore +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/.travis.yml +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/CHANGELOG.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/LICENSE +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/Makefile.dryice.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/README.md +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/assert-shim.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/mini-require.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-source-map.jsm +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/prefix-utils.jsm +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-browser.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-source-map.jsm +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/suffix-utils.jsm +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-prefix.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/build/test-suffix.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/array-set.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64-vlq.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/base64.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/binary-search.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-consumer.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-map-generator.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/source-node.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/lib/source-map/util.js +0 -0
- data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/LICENSE +58 -0
- data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/README.md +171 -0
- data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/amdefine.js +301 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/intercept.js +0 -0
- data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/node_modules/amdefine/package.json +47 -0
- data/node_modules/traceur/node_modules/source-map-support/node_modules/source-map/package.json +142 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/run-tests.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-api.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-array-set.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64-vlq.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-base64.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-binary-search.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-dog-fooding.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-consumer.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-map-generator.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/test-source-node.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/node_modules/source-map-support/node_modules/source-map/test/source-map/util.js +0 -0
- data/node_modules/traceur/node_modules/source-map-support/package.json +52 -0
- data/node_modules/traceur/node_modules/source-map-support/source-map-support.js +386 -0
- data/node_modules/traceur/node_modules/source-map-support/test.js +384 -0
- data/node_modules/traceur/package.json +286 -0
- data/node_modules/traceur/src/node/NodeCompiler.js +81 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/System.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/api.js +0 -0
- data/node_modules/traceur/src/node/command.js +203 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/compileAllJsFilesInDir.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/deferred.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/file-util.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/getopt.js +0 -0
- data/node_modules/traceur/src/node/interpreter.js +37 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/nodeLoader.js +0 -0
- data/node_modules/traceur/src/node/recursiveModuleCompile.js +171 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/require.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/to-amd-compiler.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/to-closure-compiler.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/to-commonjs-compiler.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/src/node/traceur.js +0 -0
- data/{vendor/node_modules → node_modules}/traceur/traceur +0 -0
- data/package.json +15 -0
- data/spec/traceur/configuration_spec.rb +3 -3
- metadata +225 -161
@@ -0,0 +1,81 @@
|
|
1
|
+
// Copyright 2014 Traceur Authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
// Node.js API
|
16
|
+
//
|
17
|
+
// This is what you get when you `require('traceur')`.
|
18
|
+
// It's suppose to be used by custom scripts or tools such as Grunt or Karma.
|
19
|
+
|
20
|
+
'use strict';
|
21
|
+
|
22
|
+
var path = require('path');
|
23
|
+
var fs = require('fs');
|
24
|
+
var util = require('./file-util.js');
|
25
|
+
var writeFile = util.writeFile;
|
26
|
+
var traceur = require('./traceur.js');
|
27
|
+
|
28
|
+
var Compiler = traceur.Compiler;
|
29
|
+
|
30
|
+
function NodeCompiler(options, sourceRoot) {
|
31
|
+
sourceRoot = sourceRoot || process.cwd();
|
32
|
+
Compiler.call(this, options, sourceRoot);
|
33
|
+
}
|
34
|
+
|
35
|
+
NodeCompiler.prototype = {
|
36
|
+
__proto__: Compiler.prototype,
|
37
|
+
|
38
|
+
writeTreeToFile: function(tree, filename) {
|
39
|
+
filename = this.normalize(filename);
|
40
|
+
var compiledCode = this.write(tree, filename);
|
41
|
+
if (this.options_.sourceMaps === 'file') {
|
42
|
+
var sourcemap = this.getSourceMap();
|
43
|
+
if (sourcemap) {
|
44
|
+
var mapName = this.sourceMappingURL(filename);
|
45
|
+
// Write the map file next to the output file.
|
46
|
+
mapName = path.resolve(path.dirname(filename), mapName);
|
47
|
+
writeFile(mapName, sourcemap);
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
writeFile(filename, compiledCode);
|
52
|
+
},
|
53
|
+
|
54
|
+
compileSingleFile: function(inputFilePath, outputFilePath, errback) {
|
55
|
+
inputFilePath = this.normalize(inputFilePath);
|
56
|
+
outputFilePath = this.normalize(outputFilePath);
|
57
|
+
fs.readFile(inputFilePath, function(err, contents) {
|
58
|
+
if (err) {
|
59
|
+
errback(err);
|
60
|
+
return;
|
61
|
+
}
|
62
|
+
|
63
|
+
var parsed = this.parse(contents.toString(), inputFilePath);
|
64
|
+
this.writeTreeToFile(this.transform(parsed, inputFilePath),
|
65
|
+
outputFilePath);
|
66
|
+
}.bind(this));
|
67
|
+
},
|
68
|
+
|
69
|
+
sourceMappingURL: function(filename) {
|
70
|
+
if (this.options_.sourceMaps === 'inline') {
|
71
|
+
var base64sm = new Buffer(this.getSourceMap()).toString('base64');
|
72
|
+
return 'data:application/json;base64,' + base64sm;
|
73
|
+
}
|
74
|
+
return Compiler.prototype.sourceMappingURL.call(this, filename);
|
75
|
+
}
|
76
|
+
};
|
77
|
+
|
78
|
+
|
79
|
+
module.exports = {
|
80
|
+
NodeCompiler: NodeCompiler
|
81
|
+
};
|
File without changes
|
File without changes
|
@@ -0,0 +1,203 @@
|
|
1
|
+
// Copyright 2013 Traceur Authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
var path = require('path');
|
18
|
+
var glob = require('glob');
|
19
|
+
var commandLine;
|
20
|
+
var cmdName = path.basename(process.argv[1]);
|
21
|
+
try {
|
22
|
+
commandLine = new (require('commander').Command)(cmdName);
|
23
|
+
} catch (ex) {
|
24
|
+
console.error('Commander.js is required for this to work. To install it ' +
|
25
|
+
'run:\n\n npm install commander\n');
|
26
|
+
process.exit(1);
|
27
|
+
}
|
28
|
+
commandLine.setMaxListeners(100);
|
29
|
+
|
30
|
+
var traceurAPI = require('./api.js');
|
31
|
+
var interpret = require('./interpreter.js');
|
32
|
+
|
33
|
+
// The System object requires traceur, but we want it set for everything that
|
34
|
+
// follows. The module sets global.System as a side-effect.
|
35
|
+
require('./System.js');
|
36
|
+
|
37
|
+
var rootSources = [];
|
38
|
+
commandLine.option('--script <fileName>', 'Parse as Script', function(fileName) {
|
39
|
+
rootSources.push({name: fileName, type: 'script'});
|
40
|
+
});
|
41
|
+
|
42
|
+
commandLine.option('--module <fileName>', 'Parse as Module', function(fileName) {
|
43
|
+
rootSources.push({name: fileName, type: 'module'});
|
44
|
+
});
|
45
|
+
|
46
|
+
commandLine.option('--inline <fileName>', 'Parse as Module, format \'inline\'',
|
47
|
+
function(fileName) {
|
48
|
+
rootSources.push({name: fileName, type: 'module', format: 'inline'});
|
49
|
+
}
|
50
|
+
);
|
51
|
+
|
52
|
+
commandLine.option('--out <FILE>', 'Compile all input files into a single file');
|
53
|
+
commandLine.option('--dir <INDIR> <OUTDIR>', 'Compile an input directory of modules into an output directory');
|
54
|
+
|
55
|
+
commandLine.option('--longhelp', 'Show all known options');
|
56
|
+
commandLine.on('longhelp', function() {
|
57
|
+
commandLine.help();
|
58
|
+
process.exit();
|
59
|
+
});
|
60
|
+
|
61
|
+
// Caling process.exit when there is still characters to be flushed to stdout
|
62
|
+
// makes Windows drop those characters. We therefor wait until the buffer is
|
63
|
+
// empty before really exiting.
|
64
|
+
// Since this makes exiting async we need to manually keep track
|
65
|
+
var shouldExit = false;
|
66
|
+
|
67
|
+
function processExit() {
|
68
|
+
shouldExit = true;
|
69
|
+
var draining = 0;
|
70
|
+
function exit() {
|
71
|
+
if (!draining--)
|
72
|
+
process.exit();
|
73
|
+
}
|
74
|
+
if (process.stdout.bufferSize) {
|
75
|
+
draining += 1;
|
76
|
+
process.stdout.once('drain', exit);
|
77
|
+
}
|
78
|
+
if (process.stderr.bufferSize) {
|
79
|
+
draining += 1;
|
80
|
+
process.stderr.once('drain', exit);
|
81
|
+
}
|
82
|
+
exit();
|
83
|
+
}
|
84
|
+
|
85
|
+
commandLine.option('-v, --version', 'Show version and exit');
|
86
|
+
commandLine.on('version', function() {
|
87
|
+
process.stdout.write(System.version.split('@')[1]);
|
88
|
+
processExit();
|
89
|
+
});
|
90
|
+
|
91
|
+
commandLine.on('--help', function() {
|
92
|
+
console.log(' Examples:');
|
93
|
+
console.log('');
|
94
|
+
console.log(' $ %s a.js [args]', cmdName);
|
95
|
+
console.log(' $ %s --out compiled.js b.js c.js', cmdName);
|
96
|
+
console.log(' $ %s --dir indir outdir', cmdName);
|
97
|
+
console.log('');
|
98
|
+
});
|
99
|
+
|
100
|
+
var commandOptions = new traceurAPI.util.CommandOptions();
|
101
|
+
traceurAPI.util.addOptions(commandLine, commandOptions);
|
102
|
+
|
103
|
+
commandLine.usage('[options] [files]');
|
104
|
+
|
105
|
+
commandLine.command('*').action(function() {
|
106
|
+
// The callback seems to receive a "command" at the end of arguments
|
107
|
+
for (var i = 0; i < arguments.length - 1; i++) {
|
108
|
+
rootSources.push({name: arguments[i], type: 'module'});
|
109
|
+
}
|
110
|
+
});
|
111
|
+
|
112
|
+
commandLine.sourceMaps = false;
|
113
|
+
commandLine.parse(process.argv);
|
114
|
+
|
115
|
+
// commanderjs sets self[name]=defaultValue if the argument is null.
|
116
|
+
// To support --source-maps a legacy boolean we need to transfer the
|
117
|
+
// the self value here.
|
118
|
+
commandOptions.sourceMaps = commandLine.sourceMaps;
|
119
|
+
|
120
|
+
if (!shouldExit && !rootSources.length) {
|
121
|
+
// TODO: Start trepl
|
122
|
+
console.error('\n Error: At least one input file is needed');
|
123
|
+
commandLine.help();
|
124
|
+
process.exit(1);
|
125
|
+
}
|
126
|
+
|
127
|
+
var out = commandLine.out;
|
128
|
+
var dir = commandLine.dir;
|
129
|
+
|
130
|
+
function compileAll(out, sources, options) {
|
131
|
+
var isSingleFileCompile = /\.js$/.test(out);
|
132
|
+
if (!isSingleFileCompile) {
|
133
|
+
traceurAPI.forEachRecursiveModuleCompile(out, sources, options);
|
134
|
+
} else {
|
135
|
+
traceurAPI.recursiveModuleCompileToSingleFile(out, sources, options).then(function() {
|
136
|
+
process.exit(0);
|
137
|
+
}).catch(function(err) {
|
138
|
+
var errors = err.errors || [err];
|
139
|
+
errors.forEach(function(err) {
|
140
|
+
console.error(err.stack || err);
|
141
|
+
});
|
142
|
+
process.exit(1);
|
143
|
+
});
|
144
|
+
}
|
145
|
+
}
|
146
|
+
|
147
|
+
function globSources(sourcesToGlob, cb) {
|
148
|
+
var processedCount = 0;
|
149
|
+
var globbedSources = [];
|
150
|
+
sourcesToGlob.forEach(function(item) {
|
151
|
+
glob(item.name, {}, function(err, matches) {
|
152
|
+
if (err)
|
153
|
+
throw new Error('While scanning ' + item.name + ': ' + err);
|
154
|
+
for (var i = matches.length - 1; i >= 0; i--) {
|
155
|
+
var globbedSource = {
|
156
|
+
name: matches[i],
|
157
|
+
type: item.type,
|
158
|
+
format: item.format
|
159
|
+
};
|
160
|
+
globbedSources.push(globbedSource);
|
161
|
+
}
|
162
|
+
processedCount++;
|
163
|
+
if (processedCount === sourcesToGlob.length) {
|
164
|
+
cb(null, globbedSources);
|
165
|
+
}
|
166
|
+
});
|
167
|
+
});
|
168
|
+
}
|
169
|
+
|
170
|
+
if (!shouldExit) {
|
171
|
+
if (out) {
|
172
|
+
var sourcesToGlob = [];
|
173
|
+
var processedSources = [];
|
174
|
+
|
175
|
+
for (var i = 0; i < rootSources.length; i++) {
|
176
|
+
if (glob.hasMagic(rootSources[i].name)) {
|
177
|
+
sourcesToGlob.push(rootSources[i]);
|
178
|
+
} else {
|
179
|
+
processedSources.push(rootSources[i]);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
if (!sourcesToGlob.length) {
|
183
|
+
compileAll(out, processedSources, commandOptions);
|
184
|
+
} else {
|
185
|
+
globSources(sourcesToGlob, function(err, globbedSources) {
|
186
|
+
processedSources.push.apply(processedSources, globbedSources);
|
187
|
+
if (processedSources.length) {
|
188
|
+
compileAll(out, processedSources, commandOptions);
|
189
|
+
} else {
|
190
|
+
process.exit(0);
|
191
|
+
}
|
192
|
+
});
|
193
|
+
}
|
194
|
+
} else if (dir) {
|
195
|
+
if (rootSources.length !== 1)
|
196
|
+
throw new Error('Compile all in directory requires exactly one input filename');
|
197
|
+
traceurAPI.compileAllJsFilesInDir(dir, rootSources[0].name, commandOptions);
|
198
|
+
} else {
|
199
|
+
rootSources.forEach(function(obj) {
|
200
|
+
interpret(path.resolve(obj.name), commandOptions);
|
201
|
+
});
|
202
|
+
}
|
203
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,37 @@
|
|
1
|
+
// Copyright 2013 Traceur Authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
var fs = require('fs');
|
18
|
+
var traceur = require('./traceur.js');
|
19
|
+
var nodeLoader = require('./nodeLoader.js');
|
20
|
+
|
21
|
+
function interpret(filename, options) {
|
22
|
+
// Interpret the filename argument as a platform-independent,
|
23
|
+
// normalized module name.
|
24
|
+
var moduleName = filename.replace(/\\/g, '/');
|
25
|
+
var metadata = {
|
26
|
+
traceurOptions: options,
|
27
|
+
outputName: filename
|
28
|
+
};
|
29
|
+
|
30
|
+
System.import(moduleName, {metadata: metadata}).
|
31
|
+
catch(function(err) {
|
32
|
+
console.error(err.stack || err + '');
|
33
|
+
process.exit(1);
|
34
|
+
});
|
35
|
+
}
|
36
|
+
|
37
|
+
module.exports = interpret;
|
File without changes
|
@@ -0,0 +1,171 @@
|
|
1
|
+
// Copyright 2012 Traceur Authors.
|
2
|
+
//
|
3
|
+
// Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
// you may not use this file except in compliance with the License.
|
5
|
+
// You may obtain a copy of the License at
|
6
|
+
//
|
7
|
+
// http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
//
|
9
|
+
// Unless required by applicable law or agreed to in writing, software
|
10
|
+
// distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
// See the License for the specific language governing permissions and
|
13
|
+
// limitations under the License.
|
14
|
+
|
15
|
+
'use strict';
|
16
|
+
|
17
|
+
var fs = require('fs');
|
18
|
+
var path = require('path');
|
19
|
+
var Promise = require('rsvp').Promise;
|
20
|
+
var nodeLoader = require('./nodeLoader.js');
|
21
|
+
var util = require('./file-util.js');
|
22
|
+
var normalizePath = util.normalizePath;
|
23
|
+
var mkdirRecursive = util.mkdirRecursive;
|
24
|
+
var NodeCompiler = require('./NodeCompiler.js').NodeCompiler;
|
25
|
+
|
26
|
+
var cwd = process.cwd();
|
27
|
+
|
28
|
+
function revertCwd() {
|
29
|
+
process.chdir(cwd);
|
30
|
+
}
|
31
|
+
|
32
|
+
function recursiveModuleCompileToSingleFile(outputFile, includes, options) {
|
33
|
+
var resolvedOutputFile = path.resolve(outputFile);
|
34
|
+
var outputDir = path.dirname(resolvedOutputFile);
|
35
|
+
|
36
|
+
// Resolve includes before changing directory.
|
37
|
+
var resolvedIncludes = includes.map(function(include) {
|
38
|
+
include.name = path.resolve(include.name);
|
39
|
+
return include;
|
40
|
+
});
|
41
|
+
|
42
|
+
options.bundle = includes.length > 1;
|
43
|
+
var compiler = new NodeCompiler(options);
|
44
|
+
|
45
|
+
mkdirRecursive(outputDir);
|
46
|
+
process.chdir(outputDir);
|
47
|
+
// Make includes relative to output dir so that sourcemap paths are correct.
|
48
|
+
resolvedIncludes = resolvedIncludes.map(function(include) {
|
49
|
+
include.name = normalizePath(path.relative(outputDir, include.name));
|
50
|
+
return include;
|
51
|
+
});
|
52
|
+
|
53
|
+
return recursiveModuleCompile(resolvedIncludes, options)
|
54
|
+
.then(function(tree) {
|
55
|
+
compiler.writeTreeToFile(tree, resolvedOutputFile);
|
56
|
+
}).then(revertCwd, function(err) {
|
57
|
+
revertCwd();
|
58
|
+
throw err;
|
59
|
+
});
|
60
|
+
}
|
61
|
+
|
62
|
+
function forEachRecursiveModuleCompile(outputDir, includes, options) {
|
63
|
+
var outputDir = path.resolve(outputDir);
|
64
|
+
var compiler = new NodeCompiler(options);
|
65
|
+
|
66
|
+
Promise.all(includes.map(function(input) {
|
67
|
+
return recursiveModuleCompile([input], options).then(function(tree) {
|
68
|
+
var outputFileName = path.join(outputDir, input.name);
|
69
|
+
compiler.writeTreeToFile(tree, outputFileName);
|
70
|
+
});
|
71
|
+
})).then(function() {
|
72
|
+
process.exit(0);
|
73
|
+
}, function() {
|
74
|
+
process.exit(1);
|
75
|
+
});
|
76
|
+
}
|
77
|
+
|
78
|
+
var TraceurLoader = traceur.runtime.TraceurLoader;
|
79
|
+
var InlineLoaderCompiler = traceur.runtime.InlineLoaderCompiler;
|
80
|
+
var Options = traceur.util.Options;
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Chains .then() calls along a list after applying a function. The function
|
84
|
+
* is not called on a value in the list until the promise generated by calling
|
85
|
+
* the function on the previous value in the list completes.
|
86
|
+
*
|
87
|
+
* @param {Array.<T>} list
|
88
|
+
* @param {function(T): Promise<?>} f A function applied to each item on the
|
89
|
+
* list.
|
90
|
+
* @return {Promise<?>} A promise where each promise f(v), for each v in the
|
91
|
+
* list has completed.
|
92
|
+
*/
|
93
|
+
function sequencePromises(list, f) {
|
94
|
+
var result = Promise.resolve();
|
95
|
+
list.forEach(function (item) {
|
96
|
+
result = result.then(function() { return f(item); });
|
97
|
+
});
|
98
|
+
return result;
|
99
|
+
}
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Compiles the files in "fileNamesAndTypes" along with any associated modules,
|
103
|
+
* into a single js file, in module dependency order.
|
104
|
+
*
|
105
|
+
* @param {Array.<Object>} fileNamesAndTypes The list of {name, type}
|
106
|
+
* to compile and concat; type is 'module' or 'script'
|
107
|
+
* @param {Object} options A container for misc options. 'depTarget' is the
|
108
|
+
* only currently available option, which results in the dependencies for
|
109
|
+
* 'fileNamesAndTypes' being printed to stdout, with 'depTarget' as the target.
|
110
|
+
* @param {Function} callback Callback used to return the result. A null result
|
111
|
+
* indicates that recursiveModuleCompile has returned successfully from a
|
112
|
+
* non-compile request.
|
113
|
+
* @param {Function} errback Callback used to return errors.
|
114
|
+
*/
|
115
|
+
function recursiveModuleCompile(fileNamesAndTypes, options) {
|
116
|
+
var depTarget = options && options.depTarget;
|
117
|
+
var referrerName = options && options.referrer;
|
118
|
+
|
119
|
+
var basePath = path.resolve('./') + '/';
|
120
|
+
basePath = basePath.replace(/\\/g, '/');
|
121
|
+
|
122
|
+
var elements = [];
|
123
|
+
var loaderCompiler = new InlineLoaderCompiler(elements);
|
124
|
+
|
125
|
+
var loader = new TraceurLoader(nodeLoader, basePath, loaderCompiler);
|
126
|
+
|
127
|
+
function appendEvaluateModule(name) {
|
128
|
+
var normalizedName =
|
129
|
+
traceur.ModuleStore.normalize(name, referrerName);
|
130
|
+
// Create tree for System.get('normalizedName');
|
131
|
+
var moduleModule = traceur.codegeneration.module;
|
132
|
+
var tree = moduleModule.createModuleEvaluationStatement(normalizedName);
|
133
|
+
elements.push(tree);
|
134
|
+
}
|
135
|
+
|
136
|
+
function loadInput(input) {
|
137
|
+
var doEvaluateModule = false;
|
138
|
+
var loadFunction = loader.import;
|
139
|
+
var name = input.name;
|
140
|
+
|
141
|
+
var optionsCopy = new Options(options); // Give each load a copy of options.
|
142
|
+
|
143
|
+
if (input.type === 'script') {
|
144
|
+
loadFunction = loader.loadAsScript;
|
145
|
+
} else if (optionsCopy.modules === 'register') {
|
146
|
+
doEvaluateModule = true;
|
147
|
+
}
|
148
|
+
|
149
|
+
var loadOptions = {
|
150
|
+
referrerName: referrerName,
|
151
|
+
metadata: {traceurOptions: optionsCopy}
|
152
|
+
};
|
153
|
+
|
154
|
+
return loadFunction.call(loader, name, loadOptions).then(function() {
|
155
|
+
if (doEvaluateModule) {
|
156
|
+
appendEvaluateModule(name);
|
157
|
+
}
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|
161
|
+
return sequencePromises(fileNamesAndTypes, loadInput).then(function() {
|
162
|
+
if (depTarget) {
|
163
|
+
return null;
|
164
|
+
} else {
|
165
|
+
return loaderCompiler.toTree();
|
166
|
+
}
|
167
|
+
});
|
168
|
+
}
|
169
|
+
|
170
|
+
exports.recursiveModuleCompileToSingleFile = recursiveModuleCompileToSingleFile;
|
171
|
+
exports.forEachRecursiveModuleCompile = forEachRecursiveModuleCompile;
|