Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !1570

Allow --scripts-version git urls

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Administrator requested to merge github/fork/tomconroy/scripts-version-git into master Feb 15, 2017
  • Overview 19
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: tomconroy

We maintain a psuedo-fork of react-scripts at https://github.com/firstlookmedia/react-scripts (it only matches the general structure). It seems desirable from #682 (closed) to be able to use git repos as the argument to --scripts-version -- if some company wants to keep its fork private, this avoids requiring a private npm account. This PR makes that possible:

(https)

create-react-app --scripts-version=git+https://github.com/firstlookmedia/react-scripts.git#init myapp

or (ssh)

create-react-app --scripts-version=git+ssh://git@github.com/firstlookmedia/react-scripts.git myapp

Note that this requires the react-scripts package being hoisted to its own git repo.


Note also we haven't yet implemented the init.js script (the init branch above will work with this method but won't setup the boilerplate).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/tomconroy/scripts-version-git