Skip to content

Latest commit

 

History

History
35 lines (30 loc) · 1.23 KB

TODO.md

File metadata and controls

35 lines (30 loc) · 1.23 KB

Structures

  1. migrate classical APIs about transpilation/runtime to src/, rewrite them as '.ts'

Test Cases

  1. error emitted in simple case
    1. error from script required
    2. error from unexpected callback
    3. error from unexpected fiber
      1. coroutine.start
      2. coroutine.parallel
      3. util.sync
      4. setTimeout
      5. setImmediate
      6. setInterval
    4. error from unexpected Promise
  2. error emitted in complex case
    1. mixin 1.1 + 1.2
    2. mixin 1.1 + 1.3.1
    3. mixin 1.1 + 1.3.2
    4. mixin 1.1 + 1.3.3
    5. mixin 1.1 + 1.4

Features

  • There is no official *.d.ts for fibjs yet. I will support generating fibjs.d.ts when compilation. Now Just use fib-types
  • better options for compileDirectoryTo
    • hooks before, when, after compiling
    • on walk to one file recursively
    • customizable recursive
    • support fileglobsToCopy with higher priorty than extsToCopy
  • compile .ts to '.jsc' directly
  • pack compiled '.jsc' to binary and extract one zipped file.
  • --help CLI option for cli