Commit Graph

1693 Commits

Author SHA1 Message Date
Dan Abramov
609aeea67b Publish
- react-scripts@1.1.2
react-scripts@1.1.2 v1.1.2
2018-04-03 00:48:34 +01:00
Dan Abramov
780a4573e7 Add 1.1.2 changelog (#4242) 2018-04-03 00:48:07 +01:00
Plortinus
9c3f03cac7 use the lastest url of gitignore file (#4236)
* use the lastest url of gitignore file

* Update gitignore
2018-04-02 15:19:28 -04:00
Daniel
9a99b5d190 Fix typo and be clearer about ecma settings in uglifyjs options (#4239) 2018-04-02 15:17:24 -04:00
Daniel
2824bf2e15 [next] Revert to use ecma 5 in uglifyOptions (#4234)
* Revert to use ecma 5 in uglifyOptions

* remove explicit ecma version from uglifyOptions settings

The defaults are already what we want

* be explicit of where we use ecma: 8 and ecma: 5
2018-04-02 13:30:30 -04:00
Jih-Chi Lee
da518d2238 Fix floating caret position incorrect while scrolling overlay (#4024) 2018-03-26 23:03:39 -04:00
bradfordlemley
9c167a4249 Add some stuff that requires transpilation. (#4174) 2018-03-25 21:14:59 -04:00
Albert Still
06dd17e21b add create-react-app --help info for local file path --scripts-version support (#4015)
* add `create-react-app --help` info for local file path --scripts-version

* make example path `../my-react-scripts` for local file path --help info
2018-03-25 21:08:16 -04:00
Minh Nguyen
8db5e336b1 Revert lint-related changes made in #4193 (#4211) 2018-03-25 18:03:23 -06:00
Ian Sutherland
8a34b7cc77 Add ESLint check for incorrect propTypes usage (#3840) (#4048) 2018-03-25 16:17:41 -06:00
Andreas Cederström
33f1294f07 Revert "Change no-unused-vars 'args' from none to all to show warning on destructured objects"
This reverts commit 1dcb3db3ed.
2018-03-23 14:41:28 +01:00
froyog
1922f4d4d8 Allow ModuleScopePlugin accecpts an array as its appSrc (#4138)
* allow appSrc accepting an array

* fixture of finding all appSrcs logic

* update docs on ModuleScopePlugin accepts an array for appSrc

* minor typo fix in docs: change directory to directories.
2018-03-23 13:28:41 +01:00
Vicente Plata
cb1608b3e0 Add troubleshooting for Github Pages (#4197)
Add troubleshooting for an issue that has to do with either 2FA, or using Windows, or both, when trying to deploy an app via gh-pages
2018-03-23 11:07:25 +01:00
Lee Byron
c6375edc07 .mjs should not resolve before .js files (#4085)
Support for .mjs files added in #3239 did not account for npm libraries which ship native mjs files alongside js files. This accounts for this by ensuring .js files resolve before their accompanying .mjs file. Note that this is not an ideal end state since selecting a .mjs over a .js extension should be the result of whether `import` was used instead of `require()` in a node environment with native ESM support (currently via `--experimental-modules`). Instead, this change just *always* selects a .js extension before the .mjs extension if it exists.

This unbreaks support for using GraphQL (relay, apollo, etc) within create-react-app projects.
2018-03-22 10:27:23 -04:00
bradfordlemley
058d03f8f8 Fix typos in example monorepo documentation. (#4164) 2018-03-21 17:42:30 -04:00
Ro Savage
b2fd8db8bd Minor fixes to CI (#4193) 2018-03-21 14:55:35 -04:00
Andreas Cederström
e76f36085c Merge pull request #4187 from goncy/unused-vars-not-showing-on-destructured-objects
Change no-unused-vars 'args' from none to all to show warning on destructing
2018-03-20 13:21:46 +01:00
goncy
1dcb3db3ed Change no-unused-vars 'args' from none to all to show warning on destructured objects 2018-03-20 08:27:23 -03:00
Brian Ng
cb3f835586 Bump babel-related deps (#4159)
* Add explicit dep on plugin-proposal-object-rest-spread to babel-preset-react-app

* Bump babel-related deps to beta.42

* Pass useBuiltIns directly to react-preset
2018-03-18 14:22:56 -06:00
Harry Moreno
1e52f252fc Remove ref to non free resource (#4160)
the screencast for react storybook is non-free. Remove.
2018-03-15 21:50:58 +00:00
Stefan Feješ
d9fbe448d7 typo fix (#4134) 2018-03-12 10:05:18 -04:00
JK
75f3fccc7d Update CONTRIBUTING.md link (#4114)
update h5bp CONTRIBUTING.md link...
2018-03-07 17:50:58 -05:00
Stas Rudakou
65e0621622 Fix a typo in packages/react-scripts/template/README.md (#4089)
s/allows to easily makes/allows you to easily make/
2018-03-04 20:45:19 -05:00
João Paquim
041f44c7af Docs: Update status of Object Rest/Spread proposal (#4101) 2018-03-04 20:40:15 -05:00
nikolas2
b49762ac1a docs: use node_js 8 in example travis.yml (#4107)
This is the current node LTS release.
2018-03-04 20:35:18 -05:00
Pete Nykänen
e9abde7392 Alphabetize and clean files-array in react-dev-utils package.json (#4016)
Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
2018-02-12 17:03:21 +00:00
Alexander Roberts
9690bc86d5 Add support for new yarn workspaces config format (#4001) 2018-02-11 13:36:02 +00:00
Ade Viankakrisna Fadlil
f17914c33c enable manifest plugin on dev 2018-02-11 19:33:03 +07:00
Ian Sutherland
43fbf0f3d6 Update dotenv to 5.0.0 (#4009) 2018-02-10 12:45:40 -07:00
bradfordlemley
2c34d5b66e Use yarn when running inside yarn workspace. (#3997)
* 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
2018-02-10 13:07:19 +00:00
Dan Abramov
c34267786f Add 1.1.1 to next changelog 2018-02-09 13:22:17 +00:00
Dan Abramov
0b1d636576 Publish
- create-react-app@1.5.2
 - react-scripts@1.1.1
react-scripts@1.1.1 create-react-app@1.5.2 v1.1.1
2018-02-09 13:20:59 +00:00
Dan Abramov
1a9722f50a Revert "Set the public path to the asset manifest entries (#2544)"
This reverts commit bab2c29522.

I meant to apply it to `next` instead.
2018-02-09 13:20:21 +00:00
Dan Abramov
984d661811 Add 1.1.1 changelog 2018-02-09 13:19:49 +00:00
Robin van der Vleuten
aaf022ca39 Set the public path to the asset manifest entries (#2544) 2018-02-09 13:14:14 +00:00
Ian Sutherland
c263f17784 Upgrade dotenv-expand to 4.2.0 (#3961) (#3992) 2018-02-09 13:11:32 +00:00
Dan Abramov
09d216ecce Unpin and bump fsevents (for 1.x branch) (#4006) 2018-02-09 13:10:41 +00:00
Ian Sutherland
32ea0c0e6d Update dotenv-expand to fix bug with environment variables that contain a $. (#4000) 2018-02-09 13:08:30 +00:00
Ade Viankakrisna Fadlil
47d2d94118 Ensure workspaces key exists in parent package.json (#3989)
* add default value for globPatterns

without this, the latest alpha broke on start
```
/Users/adeviankakrisnafadlil/Projects/eurecah/node_modules/react-scripts/config/paths.js:130
    .reduce(
     ^

TypeError: Cannot read property 'reduce' of undefined
    at findPkgs (/Users/adeviankakrisnafadlil/Projects/eurecah/node_modules/react-scripts/config/paths.js:130:6)
    at getMonorepoPkgPaths (/Users/adeviankakrisnafadlil/Projects/eurecah/node_modules/react-scripts/config/paths.js:143:22)
    at Object.<anonymous> (/Users/adeviankakrisnafadlil/Projects/eurecah/node_modules/react-scripts/config/paths.js:155:55)
    at Module._compile (module.js:643:30)
    at Object.Module._extensions..js (module.js:654:10)
    at Module.load (module.js:556:32)
    at tryModuleLoad (module.js:499:12)
    at Function.Module._load (module.js:491:3)
    at Module.require (module.js:587:17)
    at require (internal/module.js:11:18)
error Command failed with exit code 1.
```

* also check for pkgPatterns for null

* Update paths.js
2018-02-06 21:27:14 -05:00
Igor Fedyukin
03604a46f0 Autodetect GoLand editor (#3980) 2018-02-05 16:05:36 +00:00
Alf Eaton
815853db7f Update instructions for continuous delivery with Netlify (#3971) 2018-02-04 15:54:14 +00:00
Andrew Ho
ea760ff84a Fix typo (#3956)
sever => server
2018-02-03 23:59:26 -05:00
Pete Nykänen
779dad5546 Add loader for .graphql files (#3909)
* Add graphql loader to webpack config

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Update README.md

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Update react-scripts README.md

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add graphql jest transform

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add integration tests, pin versions in package.json

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Tests expect regexp matchers

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Use strict equal test instead

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Escaping is hard

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Add comment for signifying a different file

* Update docs

* Fix jest config

* Remove node_modules exclusion

* Update README.md

* Inline graphql jest transform

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Update copyright header

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>

* Use .graphql extension only

Signed-off-by: petetnt <pete.a.nykanen@gmail.com>
2018-02-03 15:51:55 +00:00
Ian Sutherland
d0e17316b9 Named asset import for SVG files (#3907)
* Add named asset import for svg files via babel plugin and webpack loader.

* Fix failing e2e test

* Switched to svgr loader

* Updated SVG component test

* Disable named asset import plugin in test environment

* Added tests for including SVG in CSS

* Update tests

* Moved babel plugin config into webpack config
2018-02-02 12:56:57 -07:00
bradfordlemley
aa8789b1aa Add react-scripts version compatibility for monorepos. (#3953) 2018-02-01 23:08:12 +00:00
bradfordlemley
b43ad04b88 Add support for yarn and lerna monorepos. (#3741)
* 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.
2018-02-01 20:58:18 +00:00
maciej-ka
476fe85164 Remove trailing spaces from copyright 2018-01-28 23:36:23 +01:00
Michaël De Boey
5348d6eecf Revert links to package in 'packages/react-error-overlay/fixtures/*' (#3902) 2018-01-23 11:22:15 +00:00
Michaël De Boey
3767d91886 Fix package repository name (#3900) 2018-01-23 00:25:03 +00:00
Michaël De Boey
25184c4e91 Fix links to package (#3898) 2018-01-22 22:16:22 +00:00