Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(rosetta): extract and compile samples into "tablets" #925

Merged
merged 24 commits into from
Nov 13, 2019

Commits on Oct 31, 2019

  1. feat(rosetta): extract and compile samples into "tablets"

    Version 2 of the "sampiler" is called "Rosetta". It now provides
    more control over the compilation of samples found in the source code.
    
    It integrates into an existing build by running `jsii-rosetta extract`,
    which will extract sample code from a jsii assembly, compile it, convert
    it to all supported languages, and storing the result in a a "tablet
    file" (effectively, a sample dictionary).
    
    Tablet files can then be used by `jsii-pacmak` to look up translations
    for the code samples it encounters as it is generating language-specific
    sources.
    
    In case the build does not contain a Rosetta step, Pacmak will try to
    convert samples that are not found in the tablet on the fly. However,
    the samples will not benefit from compilation, type checking and fixture
    support.
    rix0rrr committed Oct 31, 2019
    Configuration menu
    Copy the full SHA
    d990d68 View commit details
    Browse the repository at this point in the history

Commits on Nov 1, 2019

  1. Update some expectations

    Rico Huijbers committed Nov 1, 2019
    Configuration menu
    Copy the full SHA
    7a0bd5c View commit details
    Browse the repository at this point in the history
  2. WIP

    Rico Huijbers committed Nov 1, 2019
    Configuration menu
    Copy the full SHA
    b90923f View commit details
    Browse the repository at this point in the history
  3. Make extract use worker threads if available

    Rico Huijbers committed Nov 1, 2019
    Configuration menu
    Copy the full SHA
    2c6f2a3 View commit details
    Browse the repository at this point in the history

Commits on Nov 4, 2019

  1. Update README

    Rico Huijbers committed Nov 4, 2019
    Configuration menu
    Copy the full SHA
    78cbf8f View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2019

  1. Review comments

    rix0rrr committed Nov 7, 2019
    Configuration menu
    Copy the full SHA
    b34d736 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    51a6bae View commit details
    Browse the repository at this point in the history

Commits on Nov 11, 2019

  1. Merge remote-tracking branch 'origin/master' into huijbers/extract-sa…

    …mples
    Rico Huijbers committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    d3b82c0 View commit details
    Browse the repository at this point in the history
  2. Missing &&

    Rico Huijbers committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    224037f View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/master' into huijbers/extract-sa…

    …mples
    Rico Huijbers committed Nov 11, 2019
    Configuration menu
    Copy the full SHA
    8a0d470 View commit details
    Browse the repository at this point in the history

Commits on Nov 12, 2019

  1. Fix pacmak unified build sanity

    For both .NET and Java, build in a temporary directory and copy
    artifacts out to final destination.
    
    Fix .NET projects to build all in one solution, and use project
    references to automatically fix build order.
    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    5380991 View commit details
    Browse the repository at this point in the history
  2. Render HTML comments as-is

    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    6efc55c View commit details
    Browse the repository at this point in the history
  3. Add backwards compatible support for literate examples

    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    965848f View commit details
    Browse the repository at this point in the history
  4. Merge remote-tracking branch 'origin/master' into huijbers/extract-sa…

    …mples
    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    db49b0e View commit details
    Browse the repository at this point in the history
  5. Fix dependencies on packages outside the compile set

    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    b059c5c View commit details
    Browse the repository at this point in the history
  6. Use the right output dir for source-only mode

    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    c489266 View commit details
    Browse the repository at this point in the history
  7. Add test for different pacmak build modes

    Rico Huijbers committed Nov 12, 2019
    Configuration menu
    Copy the full SHA
    d30c3ef View commit details
    Browse the repository at this point in the history

Commits on Nov 13, 2019

  1. Only include existing directories

    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    9e97489 View commit details
    Browse the repository at this point in the history
  2. Satisfy eslint

    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    4eb11e3 View commit details
    Browse the repository at this point in the history
  3. Merge remote-tracking branch 'origin/master' into huijbers/extract-sa…

    …mples
    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    c81f1cc View commit details
    Browse the repository at this point in the history
  4. Handle @ signs in examples

    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    42512e2 View commit details
    Browse the repository at this point in the history
  5. Merge remote-tracking branch 'origin/master' into huijbers/extract-sa…

    …mples
    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    34a397a View commit details
    Browse the repository at this point in the history
  6. Satisfy eslint

    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    9f597f3 View commit details
    Browse the repository at this point in the history
  7. Don't report diagnostics originating from hidden source

    Rico Huijbers committed Nov 13, 2019
    Configuration menu
    Copy the full SHA
    a63e55e View commit details
    Browse the repository at this point in the history