google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

make bin/traceur.js before dist/commonjs. #2075

Closed johnjbarton closed 8 years ago

johnjbarton commented 8 years ago

make clean removes bin/traceur.js so dist/commonjs must depend upon it.

TBR @arv

arv commented 8 years ago

LGTM

arv commented 8 years ago

Can we do another npm push to get the dist/commonjs onto npm?

johnjbarton commented 8 years ago

Published 0.0.102, please check it.

arv commented 8 years ago

testing

arv commented 8 years ago

Sweet:

$ mkdir tmp
arv@arv-o-matic:/src
$ cd tmp
arv@arv-o-matic:/src/tmp
$ npm i traceur
/src/tmp
└─┬ traceur@0.0.102
  ├── commander@2.6.0
  ├─┬ glob@4.3.5
  │ ├─┬ inflight@1.0.4
  │ │ └── wrappy@1.0.1
  │ ├── inherits@2.0.1
  │ ├─┬ minimatch@2.0.10
  │ │ └─┬ brace-expansion@1.1.2
  │ │   ├── balanced-match@0.3.0
  │ │   └── concat-map@0.0.1
  │ └── once@1.3.3
  ├── rsvp@3.1.0
  ├── semver@4.3.2
  └─┬ source-map-support@0.2.10
    └─┬ source-map@0.1.32
      └── amdefine@1.0.0

npm WARN ENOENT ENOENT: no such file or directory, open '/src/tmp/package.json'
npm WARN EPACKAGEJSON tmp No description
npm WARN EPACKAGEJSON tmp No repository field.
npm WARN EPACKAGEJSON tmp No README data
npm WARN EPACKAGEJSON tmp No license field.
arv@arv-o-matic:/src/tmp
$ node --require traceur/bin/traceur-runtime.js -e "console.log(require('traceur/dist/commonjs/traceur.js'))"
{ WebPageTranscoder: [Getter],
  HTMLImportTranscoder: [Getter],
  util: [Getter],
  codegeneration: [Getter],
  syntax: [Getter],
  outputgeneration: [Getter],
  Compiler: [Getter],
  loader: [Getter] }