Commit Graph

211 Commits

Author SHA1 Message Date
Matt Crampton
dbf17fd0e4 Setting a dynamic port value for the pushstate-server URL text (#1628)
* Setting a dynamic port value for the pushstate-server URL text after a build is completed

* Fixing merge conflict
2017-02-24 22:28:36 +00:00
Joe Haddad
b609ac96fe Use posix paths for Jest config during eject (#1635)
Resolves #1417 and #1498.
2017-02-24 17:06:54 -05:00
sbritoig
5155797983 adding a note on how to resolve "Could not find a required file." dep… (#1391)
* adding a note on how to resolve "Could not find a required file." deployment errors because of deleted or ignored files

* Tweak

* Unrelated style nits
2017-02-24 20:51:53 +00:00
chyipin
925ab7268f Use real build path name in build output (#1478)
Use the configured appBuild value in paths.js instead of hard-coding it to 'build'.  This is helpful for the ejected case where the appBuild path is changed to another folder name.
2017-02-24 20:32:15 +00:00
Ade Viankakrisna Fadlil
8d41328342 Enable eslint caching in development (#1578)
* Enable eslint caching in development

POC for https://github.com/facebookincubator/create-react-app/issues/740. Haven't found any problem, build times improved about 1s on my project and machine.

* Bump eslint-loader to 1.6.3

* move @remove-on-eject block to persist cache config on eject
2017-02-24 20:29:25 +00:00
Charlie Gleason
c8d9c47897 Added a how-to on react-snapshot (#1577)
* Added a how-to on react-snapshot

Added a section with a short description and link to a tutorial on generating static html pages with react-snapshot, and also linked to it from the section on managing the page title.

* Updated link title for react-snapshot overview

* Explained pre-rendering in a more generic way

* Added link to top level README.md, and removed specifics from overview

* Updated html -> HTML

* Updated quotes and apostrophes

* html -> HTML

* Fix link
2017-02-24 19:44:47 +00:00
wtgtybhertgeghgtwtg
41d1469445 Bump recursive-readdir. (#1560) 2017-02-24 18:00:37 +00:00
Valerii Sorokobatko
d6a83aa887 Remove .bin files defined at react-scripts/package.json after eject (#1567)
* remove bin files after eject defined at package.json

* add swallowing try/catch
2017-02-24 18:00:09 +00:00
myappincome
c3240a18ab Adding link to “Customizing” create-react-app (#1121)
Add documentation for customizing Bootstrap theme
2017-02-24 17:48:16 +00:00
Johann Hubert Sonntagbauer
0ef9e80349 (feat): add webpack validation error logging (#1596)
* (feat): add webpack validation error logging

* Style nit

* Style tweak

* Style nit
2017-02-24 17:28:54 +00:00
Bond
577c4e85a3 Document debugging in the browser. (#1540)
* Document debugging in the browser.

* Styling
2017-02-24 16:59:58 +00:00
Valerii Sorokobatko
bec009ce71 Fix workflow if react-scripts package is linked via npm-link (#1356)
* add npm-link support

* - remove extra veriable
- simplify condition

* update code after review:
- remove utils/isReactScriptsLinked
- add appPath and ownPath to paths.js (but only for "before eject" export case)

* update code after review:
- remove utils/isReactScriptsLinked
- add appPath and ownPath to paths.js (but only for "before eject" export case)

* update code after review:
- remove utils/isReactScriptsLinked
- add appPath and ownPath to paths.js (but only for "before eject" export case)
- remove "if" block for fs.removeSync(ownPath) at ejec.tjs

* change ownPath value
2017-02-24 11:51:16 -05:00
Dan Abramov
67d0d49ac5 Document Sass imports 2017-02-24 16:36:47 +00:00
Joe Woodhouse
92a068054b Add note about when to import bootstrap CSS. (#1618)
* Add note about when to import bootstrap CSS.

* Tweak
2017-02-24 16:32:29 +00:00
SBrown52
646690b2ba Update flow configuration documentation (#1518)
* Update flow configuration documentation

The documentation was missing creating the .flowconfig file

* Update flow configuration documentation

Adding in suggested changes

* Wording

* Wording
2017-02-24 16:21:53 +00:00
Michael DeRazon
7be0f4de1e add a comment about NODE_ENV value set to 'production' during build step (#1625)
* add a comment about NODE_ENV value set to 'production' during build step

https://github.com/facebookincubator/create-react-app/issues/790#issuecomment-281986264

* Move words around
2017-02-24 16:17:23 +00:00
Joe Haddad
21fe19ab0f Bump deps for webpack 2 compat (#1621) 2017-02-23 00:57:53 -05:00
Jirat Ki
a82896c3e3 Install react, react-dom, and react-scripts at the same time (#1253)
* Install react and react-dom along with react-scripts

- Install react, react-dom and react-script in a same time
- Move react-scripts to devDependencies.

* Check if react, react-dom has been already installed

- To backward compatibility with old CRA’s cli
- In case old CRA doesn’t install react, react-don along with
react-scripts

* Use packageName to find script dependency

- use packageName to find dependency
- fix pathExists.sync

* Check dependencies.react in package.json instead of actual files

* Process exit when dependencies not found

- Show error and exit when dependencies not found.
- Log install show custom package name

* Remove template string

* Install dependencies if template is preseted

* Remove dangling comma

Resolves #1239
2017-02-22 22:55:41 -05:00
Alexander James Phillips
2a8535b5d5 Add note for using CHOKIDAR_USEPOLLING in virtual machines to enable HMR (#1608)
* Add note for using CHOKIDAR_USEPOLLING in virtual machines to enable HMR

* Use br in react-scripts template README md

* Use br in md for new line breaks

* Update troubleshooting HMR to allow for VMs running Windows

* Fix up the instructions
2017-02-22 18:37:18 +00:00
Mato Ilic
dd9ec7bcfb fixes #1584 PORT env variable not always an integer (#1585) 2017-02-18 23:05:56 +00:00
Dan Abramov
41632fb1a5 Revert "Bump babel deps and re-enable transform-react-constant-elements" (#1575) 2017-02-16 18:01:02 +00:00
Mohammad Kermani
1fc1d8296a Update README.md (#1573)
Update links to jest expect function.
2017-02-16 11:50:51 +00:00
Alessandro Burato
075e729865 add --recursive to sass watch script (#1564) 2017-02-15 13:15:10 +00:00
Darío Javier Cravero
b0bc46eaf8 Use https in link to Ignoring files at Github (#1561) 2017-02-15 10:06:08 +00:00
kiran ps
6d22a789f2 modified documentation for setting up jest-enzyme (#1562) 2017-02-15 10:05:34 +00:00
Brian Ng
9c33f60239 Re-enable transform-react-constant-elements (#1552)
* Bump babel deps

* Re-enable transform-react-constant-elements

Resolves #553
2017-02-14 22:06:19 -05:00
Kees Kluskens
1d5a277367 Enable watchContentBase for webpack-dev-server (#1546)
Resolves #1508
2017-02-14 21:41:31 -05:00
Joe Haddad
fc49946ccb Add support for dynamic import & disable require.ensure (#1538)
* Disable require.ensure

* Replace require.ensure with import

* Add babel plugin for parsing import()

* Get the default

* Upgrade babel-eslint to support dynamic import

* Fix dep

* Update deps
2017-02-14 20:51:23 -05:00
Alessandro Burato
ce0d6eeb60 update CSS preprocessor instructions (#1543)
* update CSS preprocessor instructions
- Windows shell users should note that running two programs simultaneously is not supported.

* fix the order of SASS build step
- the suggested build step with integrated CSS preprocessing is wrong. The SASS preprocessor should run first, then the react-scripts build will pick the up-to-date final CSS

* Add tweaks from PR discussion
2017-02-13 18:44:07 +00:00
Dan Abramov
c9bc6ce3f7 Tweak syntax doc (#1539)
* Tweak syntax doc

* Shorter version
2017-02-12 20:17:33 +00:00
Joe Haddad
411347f5cc Update language support wording to ES2017 2017-02-12 14:33:12 -05:00
pd4d10
434e85849e Add useful link to react-scripts (#1495) 2017-02-12 15:01:20 +00:00
Toni Petrina
6c85568c5f Added link to Azure deployment tutorial (#1338) 2017-02-12 02:03:49 +00:00
Roman Rubas
ca7fb22123 [documentation] how to disable autoprefix feature (#1320)
* added how to disable autoprefix feature in doc

* Just link to the doc
2017-02-12 02:01:01 +00:00
Jonathan Conway
c7ba1303b8 reactjs/redux#2004 List features beyond ES6 supported by create-react-app (#1313)
* reactjs/redux#2004 List features beyond ES6 supported by create-react-app

* Add more info
2017-02-12 01:57:41 +00:00
Dimitris Tsironis
1fe6f5502c Add SASS support documentation #1007 (#1008)
* Add SASS support documentation #1007

* Change SASS section title to more generic label

* Fix link in Table of Contents

* Chain build-css with watch-css script, fix typos

* Update Sass and Less naming style

* Fix wording, remove offensive words

* Slightly rewite
2017-02-12 00:38:59 +00:00
Blaine Kasten
8ec99b6fff Suggest jest-enzyme for simplifying test matchers (#994)
* Suggest jest-enzyme for simplifying test matchers

* Update README.md

* Update README.md
2017-02-11 23:05:54 +00:00
Joe Haddad
12288836e1 Upgrade webpack (#1291)
* Upgrade webpack

* Address more webpack v2 ...

* Update html-webpack-plugin

* Remove LoaderOptionsPlugin from dev config

* ExtractTextPlugin still uses webpack 1 syntax
... and doesn't support complex options (yet)

* Grammar nit

* Update extract text webpack plugin

* - Remove webpack.LoaderOptionsPlugin
- Update deps

* Lerna hoists packages

* Update extract-text-webpack-plugin

* Update webpack-dev-server

* Remove imports for the tests

* stop removing babelrc
2017-02-11 14:11:00 -05:00
Dan Abramov
9f1276314d Add additional info about env variables 2017-02-11 14:00:26 +00:00
Dan Abramov
dc4e8bb462 Make index.html interpolation instructions less clashing with env syntax 2017-02-11 13:45:30 +00:00
Joe Haddad
67e6cf5a52 Publish
- babel-preset-react-app@2.1.0
 - create-react-app@1.0.4
 - eslint-config-react-app@0.5.1
 - react-dev-utils@0.5.0
 - react-scripts@0.9.0
2017-02-10 22:33:41 -05:00
Joe Haddad
15e0b98479 Upgrade dependencies (#1522)
* Upgrade dependencies

* Re-add caret
2017-02-10 21:31:15 -05:00
Anders D. Johnson
b0b0e6da55 fix: add yarn gitignores (#1507)
* fix: add yarn gitignores to template

* fix: add yarn gitignores to root

* fix: add wildcard to npm-debug.log ignore
2017-02-11 01:30:11 +00:00
Brandon Istenes
e19b0f6373 Make build exit with error code when interrupted (#1496)
* Make build exit with error code when interrupted

This addresses issue #1493.

Current behavior is that `npm run build` exits code 0 without creating a bundle when interrupted. This change makes the build script catch catchable interruptions and exit with the appropriate error code.

* Better error messages for kill signals

* Don't catch SIGINT

Ctrl+C should exit silently, and already produces a non-zero exit code when sent to the console while `npm run build` is running. Exit code 0 is produced if SIGINT is sent directly to the `node build.js` process, but this is unlikely to happen. A SIGINT handler in `build.js` will also be triggered by Ctrl+C in the console, potentially producing unnecessary noise.

* Style fix

* No changes needed to build.js

Problem is coming from the parent process, `react-scripts`

* Make react-scripts script handle signals

* Clarify context
2017-02-11 00:12:36 +00:00
Joe Haddad
7a02f9a41a readme: Add Advanced Configuration (#1515)
* Add Advanced Configuration section

* Reference package.json instead

* Add HOST, HTTPS, and CI

* Switch wording from Amazon to a CDN

* Add test runner comment

* Add top-level README link

* Simplify wording

* Link to relevant docs

* Link to apps

* Add .env link

* Simpler links

* Add a CI flag note
2017-02-10 16:20:53 -05:00
Thibault Derousseaux
8e127aaa38 Support relative asset paths for special case (#1489)
* Fix paths in CSS files when homepage is set to "./"

In the production build, ExtractTextPlugin is used to generate a separate CSS file instead of injecting style through JavaScript. This plugin does not work well by default with nested output structure. To fix it, we give it a relative publicPath pointing to the build folder.

* Add section in README to explain how to make builds deployable anywhere

* Apply review requested change

* Apply review changes 2
2017-02-10 00:44:00 -05:00
Joe Haddad
613b584f42 Add PUBLIC_URL env variable for advanced use (#937) (#1504)
* Add `PUBLIC_URL` env variable for advanced use (#937)
* Add support for `PUBLIC_URL` env variable
* Remove unnecessary duplications
* Simplify served path choice logic
* Honor PUBLIC_URL in development
* Add e2e tests

Enables serving static assets from specified host.
2017-02-09 23:15:15 -05:00
Jih-Chi Lee
1d9159de23 Make all react app vars accessible in index.html (#1440)
* Make all vars accessiable in index.html

* Fix wrong env provieded to DefinePlugin

* Separate results from getClientEnvironment

* The `string` should be object instead of string

* Fix accessing wrong field

* Changed variables naming to `raw` and `stringified`

* Remove trailing commas
2017-02-09 22:41:03 -05:00
pd4d10
b999405c67 Add missing '\n' to the end of package.json file (#1510) 2017-02-09 16:36:20 -05:00
Calvin Webster
160d8d13ef clarifying the use of custom environment variables (#1513)
* clarifying the use of custom environment variables

* Tweak
2017-02-09 20:46:47 +00:00