1. 10 Feb, 2018 1 commit
    • bradfordlemley's avatar
      Use yarn when running inside yarn workspace. (#3997) · 2c34d5b6
      bradfordlemley authored
      * Run yarn after ejecting.
      
      * On eject, choose to run yarn instead of npm if yarn is available.
      
      * Move monorepo to react-dev-utils.
      
      * Fix lint.
      
      * Rename monorepo to workspaceUtils.
      
      * Add react-dev-utils dep for create-react-app.
      
      * getMonorepo -> findMonorepo
      2c34d5b6
  2. 01 Feb, 2018 1 commit
    • bradfordlemley's avatar
      Add support for yarn and lerna monorepos. (#3741) · b43ad04b
      bradfordlemley authored
      * Support for multiple source paths via package.json srcPaths entry.
      
      Initial support for yarn workspace.
      
      Support lerna workspace, fix for when to use template files.
      
      Remove support for specifying srcPaths in package.json.
      
      Re-enable transpilation caching.
      
      * Clean up, use file matching (similar to original) in webpack configs instead of matching function.
      
      * Remove package lock files.
      
      * Fix for eject.
      Note: monorepos won't work after eject.
      Can be fixed easily with JEST 22.0.?+ which has file pattern matches against realpaths.
      
      * Filter tests to run only tests in monorepo components included by the app.
      (Not sure this is desireable, might be cool to be able to easily run all tests in monorepo from one app.)
      
      * Fix conditions for when to use template.
      
      * Fix eject.
      
      * Remove code that is not needed w/ Jest 22.
      
      * Include all cra-comp tests in monorepo instead of trying to include only tests that are dependencies of app.
      (tests can be easily filtered via jest cli if desired, e.g. 'npm test -- myapp comp1')
      
      * Pin find-pkg version.
      
      * Hopefully fix jest test file matching on windows by removing first slash.
      
      * E2E tests for monorepo.
      
      * Run monorepo tests in CI.
      
      * Fix and test post-eject build.
      
      * Fix e2e test.
      
      * Fix test suite names in appveyor.
      
      * Include individual package dirs as srcPaths instead of top-level monorepo root.
      Fixes build/start after eject.
      
      * Fix running tests after eject.
      
      * Clean up test workspace, add some verifcations.
      
      * Cleanup.
      
      * Try to fix hang when running test on appveyor.
      
      * Don't write babel or lint config to package.json when ejecting.
      
      * Incorporate review comments.
      * Simply monorepo pkg finder
      * Only include monorepo pkgs if app itself is included in monorepo
      * Check for specific tests in e2e
      
      * Fixes for windows.
      
      * Fix for kitchensink mocha tests compiling.
      
      * Add lerna monorepo test.
      
      * Fix lerna bootstrap on windows.
      
      * Incorporate more review comments:
      * remove support for lerna w/o yarn workspace
      * add react and react-dom as devDeps to comp1 and comp2
      
      * Add monorepo info to user guide.
      b43ad04b
  3. 22 Jan, 2018 1 commit
  4. 16 Jan, 2018 1 commit
    • Dan Abramov's avatar
      Try to fix CI (#3806) · 72c3d4eb
      Dan Abramov authored
      * Try to fix CI
      
      * Bump Jest elsewhere
      
      * Bump Babel elsewhere
      
      * Fix CI on Windows by writing .cmd file back
      72c3d4eb
  5. 15 Jan, 2018 1 commit
    • Joe Haddad's avatar
      Offer to set default browsers (#3792) · 2e59c541
      Joe Haddad authored
      * Offer to set browser defaults
      
      * Catch error on no
      
      * Add ending newlines
      
      * Ensure we re-check to prevent defaults from leaking
      
      * Reduce nesting
      
      * Add defaults message
      
      * More explicit
      2e59c541
  6. 07 Nov, 2017 1 commit
  7. 26 Sep, 2017 1 commit
  8. 10 Sep, 2017 1 commit
  9. 28 Jun, 2017 2 commits
  10. 27 Jun, 2017 3 commits
  11. 22 May, 2017 1 commit
  12. 20 May, 2017 2 commits
  13. 18 May, 2017 1 commit
  14. 16 May, 2017 1 commit
  15. 14 May, 2017 1 commit
  16. 14 Mar, 2017 2 commits
  17. 07 Mar, 2017 1 commit
  18. 06 Mar, 2017 2 commits
  19. 05 Mar, 2017 1 commit
    • Dan Abramov's avatar
      Fix ejecting from a scoped fork (#1727) · 23dc4226
      Dan Abramov authored
      * Read script names from own bin instead of guessing
      
      This fixes ejecting from a fork that uses a different bin script name.
      
      * Fix ejecting for a scoped react-scripts fork
      
      We shouldn't hardcode react-scripts because fork name might differ.
      We also shouldn't rely on it being an immediate child because scoped packages are a level deeper.
      
      * Clarify that own* properties only exist before ejecting
      23dc4226
  20. 04 Mar, 2017 1 commit
    • Daniel Grant's avatar
      Modularise scripts (#1433) · b88d6655
      Daniel Grant authored
      * Refactor start script into modules
      
      * Move dev server config into config file
      
      * Replace eject file whitelist with a "remove-file-on-eject" flag
      
      * Move utils into scripts folder (for inclusion in ejection)
      
      * Add missed changes
      
      * Pass showInstructions as an argument
      
      * Fix eject bug
      
      * Don't eject babelTransform
      b88d6655
  21. 24 Feb, 2017 3 commits
  22. 09 Feb, 2017 1 commit
  23. 27 Jan, 2017 1 commit
  24. 09 Jan, 2017 2 commits
    • Ville Immonen's avatar
      Use yarnpkg alias to run Yarn (#1365) · 24abc5e1
      Ville Immonen authored
      There’s a common tool included in Hadoop that also has a `yarn` command,
      which created issues for users who had Hadoop installed:
      * #1257
      * #1363
      
      Yarn also installs the command under `yarnpkg` alias (added in
      https://github.com/yarnpkg/yarn/commit/cefa9a368dd3df1a1f1ecd9e50de9c5fabefbc92)
      so we can use `yarnpkg` instead of `yarn` to make it more reliable.
      
      This has no effect on users who don't have Hadoop installed, but those
      who have won't see errors from falsely detecting Hadoop Yarn as Yarn
      the package manager, and they can now also install Yarn to make use of
      our Yarn support without the Hadoop Yarn interfering.
      24abc5e1
    • Ville Immonen's avatar
      Use yarnpkg alias to run Yarn (#1365) · 1b645e2c
      Ville Immonen authored
      There’s a common tool included in Hadoop that also has a `yarn` command,
      which created issues for users who had Hadoop installed:
      * #1257
      * #1363
      
      Yarn also installs the command under `yarnpkg` alias (added in
      https://github.com/yarnpkg/yarn/commit/cefa9a368dd3df1a1f1ecd9e50de9c5fabefbc92)
      so we can use `yarnpkg` instead of `yarn` to make it more reliable.
      
      This has no effect on users who don't have Hadoop installed, but those
      who have won't see errors from falsely detecting Hadoop Yarn as Yarn
      the package manager, and they can now also install Yarn to make use of
      our Yarn support without the Hadoop Yarn interfering.
      1b645e2c
  25. 18 Dec, 2016 1 commit
  26. 07 Dec, 2016 1 commit
    • Dan Abramov's avatar
      Let Jest handle all file types (#1197) · 5456ffff
      Dan Abramov authored
      * Let Jest handle all file types
      
      * Update regexes
      
      * Fix exclusion regex to also exclude files without extension
      * Be over-cautious with Windows paths because I'm not sure how Jest handles them
      
      * There is no automatic babel-jest discovery now that we use transsform
      5456ffff
  27. 21 Nov, 2016 1 commit
  28. 17 Nov, 2016 1 commit
    • Ville Immonen's avatar
      Support Yarn (#898) · bcc469c9
      Ville Immonen authored
      In the `create-react-app` command, try to install packages using Yarn.
      If Yarn is not installed, use npm instead.
      
      In `react-scripts`, detect if the project is using Yarn by checking if
      a `yarn.lock` file exists. If the project is using Yarn, display all
      the instructions with Yarn commands and use Yarn to install packages
      in `init` and `eject` scripts.
      bcc469c9
  29. 28 Oct, 2016 1 commit
  30. 03 Oct, 2016 1 commit
  31. 30 Sep, 2016 1 commit
    • Andrew Zakordonets's avatar
      Beaufity output of eject.js script (#769) · 27e76beb
      Andrew Zakordonets authored
      * Beaufity output of eject.js script
      
      * change formatting of the eject.js output and move colors to cyan
      
      * change message about file copy
      
      * add missing three dots to some statements in eject.js script
      
      * change color of "copying files" line and do not repeat copy path anymore in log
      
      * fix merge conflict
      
      * Remove yellow color from "Removing dependency" line
      
      * changing color to "Adding dependency" line
      
      * Add line that outputs which react script is getting replaced by similar node script
      
      * remove not used anymore colors
      
      * add console line about updating Jest configs
      
      * fix typo
      
      * change formatting of replacing script output in eject.js
      
      * remove "Writing package.json" file console output
      
      * make quotes cyan in "Replacing script" console output
      
      * update console log output for Jest, Babel, ESLint update and group them under one statement
      
      * Style nits
      27e76beb