Commit Graph

140 Commits

Author SHA1 Message Date
Ian Schmitz
2303b49c41 Add baseUrl documentation (#6847)
* Add baseUrl documentation

* Update docusaurus/docs/importing-a-component.md

Co-Authored-By: ianschmitz <ianschmitz@gmail.com>

* Update docusaurus/docs/importing-a-component.md

Co-Authored-By: ianschmitz <ianschmitz@gmail.com>

* Simplify include to match default tsconfig.json
2019-04-19 07:27:05 -07:00
Jack Zhao
200b98b81a Remove no-watch flag in favor of watchAll=false (#6848) 2019-04-19 09:35:46 +03:00
Robert van Steen
e7a2d6168a Set baseUrl from jsconfig.json/tsconfig.json (#6656)
* Set baseUrl from jsconfig.json/tsconfig.json

* Resolve the path for loading modules

* Add tests for jsconfig.json

* Add jsconfig.json

* Update packages/react-scripts/scripts/start.js

* Move baseUrl test to config folder

* Remove alias test

* Use chalk from react-dev-utils

* Add lost absolute file for typescript baseUrl test

* Update packages/react-scripts/config/modules.js

* Update other references of useTypeScript to hasTsConfig

* Fix casing of TypeScript

* Keep respecting NODE_PATH for now to support multiple module paths.

* Add test for NODE_PATH

* Add fallback if NODE_PATH is not set.

* Fix node path behavior tests

* Remove debugging code from behavior test suite

* Remove more debugging code

* Show NODE_PATH deprecation warning during build


Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
Co-authored-by: Brody McKee <mrmckeb@users.noreply.github.com>
Co-authored-by: Jack Zhao <jzhao@fb.com>
2019-04-16 15:08:24 -06:00
Ian Schmitz
bffc296a2c Update to core-js@3 (#6769)
* Update to core-js@3

* Remove references to @babel/polyfill
2019-04-14 16:53:11 -07:00
Dan
b29a163547 Copy fix (#6801) 2019-04-14 14:29:13 -07:00
Ian Sutherland
9600b1648f Fix minimum React version for SVG component support (#6820) 2019-04-14 14:27:50 -07:00
Ian Schmitz
715448783a Add link to TypeScript page in Getting Started (#6817)
This also updates our min version of Node that we ask for
2019-04-13 20:18:51 -07:00
bakuzan
431ccf9c43 Clarify production build output files documentation (#6786) 2019-04-13 14:47:33 -07:00
Parth Narielwala
e59e0920f3 Add SVG support dependency note (#6783) 2019-04-10 10:18:25 -06:00
Francisco Joshua
a8a3ccfea5 Update link to React Testing Library docs (#6772) 2019-04-08 10:53:03 -07:00
Anurag Goel
a1d6aefc09 Add Render deployment section (#6695) 2019-04-07 23:47:55 -07:00
Hrusikesh Panda
550274e307 Adds PostCSS Normalize (#5810)
* Add postcss-normalize plugin

* Configure PostCSS Normalize

* Add documentation

* Include the doc in sidebar

* Fix the id in sidebar.json

* Update adding-css-reset.md


Co-authored-by: Jack Zhao <jzhao@fb.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 10:23:59 -06:00
Mike Perry Y Attara
e630238d0d Add explanation for adding everything as dependencies to docs (#6082)
* Update available-scripts.md

add the reason for adding packages as dependencies

* Update available-scripts.md

* Update available-scripts.md

* Update available-scripts.md


Co-authored-by: Amy Lam <amy.r.lam@gmail.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-03 13:48:27 -06:00
Pete Nykänen
d42f8882a5 Document .graphql and .gql file loading with graphql.macro (#5481) 2019-04-03 12:21:52 -07:00
Stephen Godderidge
fb6851d651 Docs: Add clarifying note about naming variables (#6491) 2019-03-25 23:13:27 -07:00
Monish
d3b19f9789 Add clarifying documentation for how to add a sass stylesheet on Windows (#6322) 2019-03-24 13:41:41 -07:00
Nikhil Swaminathan
5c637a488f Add deployment instructions with AWS Amplify (#6208)
* Add AWS Amplify deployments to the CRA Docs

* Fixed typos

* added gif

* GIF link

* Update docusaurus/docs/deployment.md

* create-react-app to Create React App

* Update docusaurus/docs/deployment.md

* Removed extra verbiage.

* Removed GIF
2019-03-20 19:41:16 -06:00
Ian Schmitz
eee8491d57 Add TypeScript linting support (#6513)
* Initial pass adding typescript-eslint

* Add warning to shared rule set

* Add documentation for setting up VSCode extension

* Provide tsconfig path to typescript-eslitn
2019-03-14 21:17:17 -06:00
Ian Schmitz
f4f20a20d0 Support browserslist in @babel/preset-env (#6608)
* Add browserslist support to @babel/preset-env

* Support @babel/polyfill in entry point
2019-03-14 12:16:09 -07:00
Taylor Briggs
a500ede755 Add note about npx caching (#6374)
* Add note about npx caching and link to #6119

It is necessary to uninstall any version that was previously installed for the typescript flag to work when using npx.

* Use proper casing for TypeScript

Co-Authored-By: TaylorBriggs <TaylorBriggs@users.noreply.github.com>
2019-03-12 20:45:57 -06:00
JBallin
6a034ba023 [docs] revert removal of newlines from html (#6386)
An unintended change was merged in #6062
2019-03-09 11:52:11 -08:00
Ioannis Cherouvim
7ec36479b3 Improved language used in markdown code blocks. (#6419)
* Improved language used in code blocks.
2019-02-21 21:16:33 -08:00
Martin Litvaj
01ecfc1337 Analyse also dependencies bundle (#6438)
The current `analyze` script only analises the `/src` code. This change leverages new version of `source-map-explorer` that is able to analyse multiple bundles at once, including the  3rd party dependencies bundle which is in my opinion even more important to analyze.
2019-02-21 06:50:21 -08:00
Deniz Susman
8a12ddf67f Fix typo in doc (#6454)
"Collocation" insead of "Colocation".
2019-02-18 08:36:43 -08:00
Dan Abramov
8026a51c53 Update the docs to match #5846 2019-02-15 13:54:04 +00:00
Ian Schmitz
4c02980f4c Update docs links to prefer HTTPS for supported domains (#6383)
* Update docs links to prefer HTTPS for supported domains

* Fix existing typos
2019-02-10 08:26:49 -08:00
JBallin
313e472331 [docs] Warn/clarify that env vars are NOT "SECRET" (#6062)
* [docs] Warn about storing secrets in env vars

Fixes #5676

Co-Authored-By: Ian Schmitz <ianschmitz@gmail.com>

* [docs] Add NOT to REACT_APP_SECRET_CODE

Fixes #5676

* [docs] Remove line breaks
2019-02-09 17:41:24 -08:00
Timothy
817ecb1bb6 Update ZEIT Now deployment instructions (#6359) 2019-02-08 00:00:52 -05:00
Rico Kahler
dea19fdb30 Add --no-watch test flag to docs (#6331) 2019-02-04 09:21:05 +02:00
Nikita Lyzhov
1c591cb7a4 Update serve change listening port documentation (#6229)
* [docs] Change serve port flag and add example

* [docs] Add --listen flag
2019-01-20 13:46:50 -07:00
Ben Carp
ed5fb1066b Update updating-to-new-releases.md with note about global installs (#6190)
* Update updating-to-new-releases.md

Related to https://github.com/facebook/create-react-app/issues/6140

* Update updating-to-new-releases.md

Linking to getting started following discussion on #6190. 
Adapt terminology to current installation methods.

* Update updating-to-new-releases.md

typo, rleative link

* Update docusaurus/docs/updating-to-new-releases.md

Co-Authored-By: carpben <carpben@users.noreply.github.com>
2019-01-19 19:13:37 -07:00
Steven Tan
803946fe58 Changes to steps for publishing GitHub User Page (#6095)
* Changes to steps for publishing GitHub User Page

Remove the the step for switching to gh-pages branch as it is no longer a viable option.

* Changed projects to project
2019-01-16 18:39:34 -08:00
Ian Schmitz
2741781bc6 Add note for global install of CLI (#6157)
* Add note for global install of CLI

Closes #6140.
2019-01-09 13:16:09 -08:00
loveky
caf0effda5 update link for difference between proposal stages (#6149)
seems the page which the old link points to has removed the related information.
2019-01-08 07:36:06 -08:00
Yangshun Tay
ddf294159f Remove extra table cell (#6141) 2019-01-07 07:53:08 -08:00
Hardo
dae67ff06a Fix typo in CSS modules docs (#6067) 2019-01-04 17:18:24 +02:00
Dan Abramov
c8c3e48abd Update adding-typescript.md 2019-01-03 15:38:20 +00:00
Janne R
86eb24d4a6 Replace deprecated VSCode launch.json variable (#6110)
Replace deprecated ${workspaceRoot} variable with ${workspaceFolder} in VSCode launch.json. See https://code.visualstudio.com/docs/editor/variables-reference#_why-isnt-workspaceroot-documented
2019-01-01 14:02:48 -08:00
Jason Quense
e7b975e8c2 Generalize the Bootstrap documentation (#5631)
* Generalize the adding bootstrap documentation

* Update adding-bootstrap.md

* Update adding-bootstrap.md

* Update adding-bootstrap.md
2018-12-24 12:58:45 -07:00
Lukas Werfel
42a1b5acb2 Update eslint instructions in docs (#6084)
Add a note that it will work in IDE with 2.0.3 and later
2018-12-24 10:42:57 -05:00
Denis Mukhametov
0f4781e850 Fix control comment fo CSS Grid prefixing (#6061)
"on" value of "autoprefixer grid" is kinda deprecated. It's better to use "autoplace" or "no-autoplace" instead.
https://github.com/postcss/autoprefixer#options

"autoplace" enables PostCss' autoplace polyfill for ie and makes prefixes, "no-autoplace" only makes prefixes
https://github.com/postcss/autoprefixer#does-autoprefixer-polyfill-grid-layout-for-ie
2018-12-23 14:59:01 -05:00
Matheus Souza
45bc6280d1 Fix Markdown comment in proxying docs (#6009) 2018-12-11 09:35:24 -07:00
Max Belsky
4a6007e035 Add docs for creating new TypeScript project (#6015) 2018-12-11 09:45:39 +02:00
Ian Schmitz
8985924521 Add production build section to docs (#5900) 2018-12-08 14:14:25 -08:00
Manoel
a9cf551db7 Update eslint instructions in docs (#5990) 2018-12-08 09:02:58 +02:00
Ian Sutherland
2fa4c8a18e Use https for linked images in docs to fix mixed content warnings (#5985) 2018-12-06 12:58:33 -07:00
Nicolas Goutay
af0a854a6c Add removeItem to localStorage mock in docs (#5919) 2018-12-05 15:41:58 -07:00
Jayant Bhawal
013c8f2c73 Add SASS_PATH instructions to Sass docs (#5917)
`node-sass` supports the SASS_PATH variable that we can use. This PR adds that to the documentation.
2018-12-04 09:45:56 -07:00
Adam Laycock
5352a0c046 Add note to docs about using Sass and Flow together (#5823)
* Add default values to `file_ext` note

* Update note to include a link to the relevant docs

* Update copy to indicate the default values

* Add missing space
2018-11-27 16:06:33 -07:00
Wendy Smoak
de44ef806d Fix link to page about running tests (#5883) 2018-11-22 18:35:33 -08:00