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

Add optional JSX-Support while keeping original behaviour the default #57

Open
wants to merge 9 commits into
base: master
Choose a base branch
from

Commits on Jun 12, 2017

  1. Outsourced the module-creator function

    Outsourced the module-creator function and added the estraverse-module as parameter so that we can use a different version as drop-in replacement.
    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    ccb35cd View commit details
    Browse the repository at this point in the history
  2. Default script uses "normal" estraverse-module

    Changed default entry-point script so that its behaviour does not change in respect to the original esquery-module.
    Only change here is that it now calls the outsourced esquery module-creator function - but with the standard estraverse module as parameter.
    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    5af24b2 View commit details
    Browse the repository at this point in the history
  3. Optional init-script for JSX-Support

    require("esquery/jsx") now loads this script which creates the module with the estraverse-fb module instead of the original one.
    This adds support for JSX-Nodes in a "plug-in" way because estraverse-fb also just extends the estraverse module and this way the most up to date estraverse module can always be used.
    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    8a21ecf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    57d50fe View commit details
    Browse the repository at this point in the history
  5. Create package.json

    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    770ba3e View commit details
    Browse the repository at this point in the history
  6. Create package.json

    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    f5ce547 View commit details
    Browse the repository at this point in the history
  7. Create README.md

    allesklarbeidir committed Jun 12, 2017
    Configuration menu
    Copy the full SHA
    5296cc3 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    adb9545 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    11c7e6f View commit details
    Browse the repository at this point in the history