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(create-next-app): interactive mode; --js, --ts with appDir support; enhanced testing #42012

Merged
merged 6 commits into from
Oct 31, 2022

Commits on Oct 28, 2022

  1. feat(create-next-app): JS/TS prompt; enhance tests

    This adds a prompt to the create-next-app CLI to ask if the user wants to use
    TypeScript or JavaScript.
    
    It also adds tests for the different templates (JS, TS, and experimentalApp),
    and some helpers to check whether an emitted project contains the correct files:
    
    - projectFilesShouldExist({ projectName, cwd, files })
    - projectFilesShouldNotExist({ projectName, cwd, files })
    
    And higher-level helpers for checking that an emitted project contains the
    correct files per a template specification in
    test/integration/create-next-app/lib/projectFiles:
    
    - shouldBeJavaScriptProject({ projectName, cwd })
    - shouldBeTypeScriptProject({ projectName, cwd })
    - shouldBeAppProject({ projectName, cwd })
    ctjlewis committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    1f47d9b View commit details
    Browse the repository at this point in the history
  2. feat: add JS support for appDir, mode/template distinction, project t…

    …est spec (#3)
    
    * chore(create-next-app): restructure templates
    
    * chore: add project template specification
    
    * chore: add JS `app` template
    
    * chore: lint
    ctjlewis committed Oct 28, 2022
    Configuration menu
    Copy the full SHA
    bd3ae4a View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2022

  1. Configuration menu
    Copy the full SHA
    7fe6790 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c9a1361 View commit details
    Browse the repository at this point in the history
  3. update other doc

    ijjk committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    dba22a4 View commit details
    Browse the repository at this point in the history
  4. update

    ijjk committed Oct 31, 2022
    Configuration menu
    Copy the full SHA
    39ece05 View commit details
    Browse the repository at this point in the history