Commit Graph

1693 Commits

Author SHA1 Message Date
Dan Abramov
d071aa018b Add some clarifications to the howto 2016-07-28 14:43:40 +01:00
Stanislav Sysoev
d564a9c48d Add one more alternative (#251)
Add aik as possible alternative for create-react-app
2016-07-28 11:44:52 +01:00
Lawrence Wu
ca7d227ae0 Display JS and CSS bundle sizes after build (#229)
* Display JS and CSS bundle sizes after build

* Print gzipped filesize, address nits

* Use filesize for human readable output.
2016-07-28 00:58:15 +01:00
Lawson Kurtz
a9d1106e5d Improve error handling within e2e.sh (#244)
* Improve error handling in E2E script

* Expose e2e.sh as npm test script
2016-07-27 16:07:52 -07:00
Dan Abramov
7040b71387 Bump versions to 0.2.0-alpha.1 2016-07-27 22:05:15 +01:00
Dan Abramov
39351165ed Bump dependencies 2016-07-27 21:57:46 +01:00
Dan Abramov
2fe84ecded Respect process.env.PORT 2016-07-27 21:48:19 +01:00
Dan Abramov
11894dcdb3 Enable generators (#238)
* Enable generators

* Opt out of using helpers
2016-07-27 21:44:50 +01:00
Peter Indiola
2edf2180f2 Suggest another port when 3000 is busy (#101, #243)
Also fixes #194
2016-07-27 21:21:50 +01:00
Dan Abramov
a11d6a398f Support .json extension
Some libraries rely on it, and they work fine with browserify.
Let’s just do the right thing here by default.
2016-07-27 19:32:52 +01:00
Dan Abramov
1740fa99fc Fixup GH Pages deploy instructions
These work regardless of whether you already have a gh-pages branch.
2016-07-27 19:22:48 +01:00
Dan Thareja
f97b1bb090 Document how to install dependencies (#223) 2016-07-27 19:05:51 +02:00
Dan Abramov
9885e08c19 Remove accidental exclamation 2016-07-27 16:54:10 +01:00
Dan Abramov
9645cbd117 Switch over to recommending pushstate-server
It has a sane default port, gzip, and doesn’t aggressively cache index.html.
Perfect.
2016-07-27 16:52:58 +01:00
Alex Zherdev
88363b14a0 Turn off .babelrc usage (#236) 2016-07-27 15:41:34 +02:00
Dan Abramov
6d7741e897 Add Promise and fetch polyfills (#235) 2016-07-27 13:04:13 +01:00
Dan Abramov
3a1ed7a9d0 Recommend st instead of http-server
It has gzip built-in so the size numbers are closer to real world. Thanks @ForbesLindesay for the tip!
Related to #228
2016-07-27 12:04:17 +01:00
Florian Goße
e839dff82c Use keyword warn in eslint config (#234)
* Use keyword `warn` in eslint config

We can use the keyword `warn` for rule configuration instead of a number.

* Fix comment which where WARNING was replaced

* Remove extra apostrophe
2016-07-27 11:30:20 +01:00
Dan Abramov
62679927b9 Use shorter hashes in production builds 2016-07-26 22:35:41 +01:00
Dan Abramov
80505887b3 Pin dependencies 2016-07-26 22:32:00 +01:00
Dan Abramov
9b6e87c6cb Remove build directory without ending up in trash
This is frustrating with shells like `fish` that track directory moves
2016-07-26 22:31:11 +01:00
Héliton Nordt
895cfaf9bb Use double quotes for JSX properties (#225)
It helps to maintain consistency with React docs
2016-07-26 21:45:35 +01:00
Héliton Nordt
1670fb13e7 Add .DS_Store to gitignore template (#224) 2016-07-26 11:11:57 -07:00
Héliton Nordt
591fbbfa59 Avoid CSS globals (#220) 2016-07-26 09:49:29 -07:00
Dan Abramov
4ca7b0da06 Document how to add linting in an editor 2016-07-26 15:08:25 +01:00
Dan Abramov
9a4e9678ad Add some newlines to the console output 2016-07-26 12:11:16 +01:00
Kevin Lacker
f8bb37fb31 Merge pull request #202 from lacker/cleanlint
allow 2 * x + 1
2016-07-25 22:18:39 -07:00
Kevin Lacker
4c55619648 allow 2 * x + 1 2016-07-25 22:03:01 -07:00
Amjad Masad
3e9fb8572c "transient" -> "transitive" (#187) 2016-07-25 18:15:55 -07:00
Dan Abramov
750472be94 Delete package.json from template
This way the one generated by `init.js` doesn’t get overwritten later.
This fixes #149 which got broken as part of #94
2016-07-25 23:51:40 +01:00
Dan Abramov
dfecfea6ba Unroll indirection in paths (#191) 2016-07-25 22:45:27 +01:00
breaddevil
d69ee278f7 update webpack css include path, allow files to be loaded from the project root node_modules folder. (#178) 2016-07-25 19:40:26 +01:00
Ethan Cohen
90d49f83d5 [dependency] - Add select eslint-plugin-jsx-a11y rules to lint config. (#175)
This project is a really good use case to apply some accessibility
rules to the lint config. For beginners getting started with React, we
can also teach/enforce basic accessibility rules in the web at author
time.

For now, I’ve just applied to the rules that are listed in
`eslint-config-airbnb` because these are most real-world tested, and we
can continue to add.

Happy to help if there are any questions/issues/concerns about the
plugin!
2016-07-25 18:43:53 +01:00
Forbes Lindesay
9dc23a3484 Simplify path resolving for react-scripts (#168) 2016-07-25 12:05:54 +01:00
Kevin Lacker
06df2ecb46 Merge pull request #166 from lacker/master
fix cdpath bug
2016-07-24 23:44:18 -07:00
Kevin Lacker
511668c538 fix cdpath bug 2016-07-24 22:16:28 -07:00
Dan Abramov
458d3f9eb1 Provide instructions on publishing GH Pages (#162)
* Provide instructions on GH Pages deploy

* Add docs for GH Pages deployment

* Prevent incorrect paths in file-loader

* Minor message tweaks

* Update README.md

* Fix relative paths
2016-07-25 00:55:59 +01:00
Donald Hruska
ef4f8e9058 Don't assume the project is hosted at the root (#94)
* Don't assume the project is hosted at the root
* Require package.json in webpack.config.prod.js and use homepage if set; otherwise use '/'

* Fix package.json path and add sample package.json for tests

* Update publicPath to use relative path portion of URL defined in homepage

* Update successful bundle generation message

* Show bundle generation success message based on presence of homepage in package.json
2016-07-25 00:07:33 +01:00
Can Göktas
055b414178 Fix typo in CONTRIBUTING.md (#161) 2016-07-24 22:26:50 +01:00
Keyan Zhang
76935de8e2 Explicitly specify ESLint config path for editor plugins in package.json (#149)
* explicitly specify ESLint config path for editor plugins

* changed to use single quote
2016-07-24 22:19:58 +01:00
Max Stoiber
d3359507cf Contributing instructions step two (#160)
* Move setup instructions to CONTRIBUTING.md

* Reword setup instructions slightly
2016-07-24 21:26:45 +01:00
Max Stoiber
d7ded9e33e Add first CONTRIBUTING.md (#150)
Ref #92
2016-07-24 17:34:31 +01:00
Max Stoiber
662fdb7055 Disable jsx-handler-name eslint rule (#157)
Ref #156

Not sure if we can simply delete the line and that'll disable it, so I
went with setting it to 0. Let me know!
2016-07-24 12:18:28 +01:00
Max Stoiber
59ff0b59e0 Fix --version (#152) 2016-07-24 00:28:59 -07:00
Greg Gamel
f2c12750cb Update README to correct typo (#148)
Missing letter added.
2016-07-24 07:24:05 +02:00
Krish Munot
f82ecad718 updating to ellipses (#144) 2016-07-23 23:45:39 -05:00
Alex
c9fd6979ac Fix issue #127 (#128) 2016-07-23 21:19:07 +01:00
Conor Hastings
10eae80ead add node engine to package.json and call checkNodeVersion function in cli (#88) 2016-07-23 08:17:58 -07:00
Glenn Reyes
a35ac92807 Resolve imported CSS files from node_modules (#105)
* Resolve imported CSS files from anywhere
* Resolve imported CSS files from src and node_modules folder only

Closes #103
2016-07-23 09:02:44 +02:00
Cory House
3ac4035afe Typo fix (#122) 2016-07-22 20:28:48 -07:00