Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.6.1 source read #10754

Closed
wants to merge 1,156 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
1156 commits
Select commit Hold shift + click to select a range
88bb4a2
create-react-class version 15.5.2
acdlite Apr 10, 2017
53a3b46
Update prop-types version
gaearon Apr 11, 2017
545c87f
Update prop-types version
gaearon Apr 11, 2017
fec0004
Merge branch '15.5-dev' into 15-stable
gaearon Apr 11, 2017
88b5c14
Delete prop-types folder as it has moved
gaearon Apr 11, 2017
e0da5ed
Merge branch '15.5-dev' into 15-stable
gaearon Apr 11, 2017
cef396d
15.5.4
gaearon Apr 11, 2017
7256081
Use caret range in blog instructions
gaearon Apr 11, 2017
8f95155
Amended implementation-notes.md with link to Dan Abramov's post descr…
lukebelliveau Apr 9, 2017
9e9e0c7
Delete examples dir from codebase overview (#9397)
maciej-ka Apr 10, 2017
fd6eece
Fix minor typo in lifting-state-up.md (#9408)
dpismenny Apr 11, 2017
e78b192
Update typechecking-with-proptypes.md (#9392)
trueadm Apr 11, 2017
8e0150d
Fix the proptypes deprecation warning url on the "Don't Call PropType…
gabriellett Apr 13, 2017
8a01128
Deprecate React.createMixin
Jan 24, 2017
16c4f90
Add test for deprecation warnings
Jan 24, 2017
ddd8260
Update deprecation wording to be less aggressive
Jan 24, 2017
6428cf7
Quick fix for `eslint` on 15.6-dev branch
flarnie Apr 13, 2017
d333bff
Docs: Clarification of setState() behavior (#9329)
ericelliott Apr 13, 2017
a63ecad
Update proptypes doc (#9391)
jackmarchant Apr 13, 2017
150c2e5
Add tabs to installation page (#9275, #9277) (#9401)
markspolakovs Apr 13, 2017
7323d4c
Refractor docs to indicate that state set to props in constructor wil…
bytetwin Apr 12, 2017
006ebb6
Switch Installation to a tab when hash is present (#9422)
gaearon Apr 13, 2017
20a9c31
Updated the Good First Bug section in readme (#9429)
abhaynikam Apr 14, 2017
2a44c5c
[Documentation] Impreove the react-component section of doc (#9349)
NE-SmallTown Apr 18, 2017
8f93e26
Unique headings for linking purposes (#9259)
wktfraser Apr 18, 2017
7482e2a
Update jsx-in-depth.md (#9178)
jayenashar Apr 18, 2017
8991f26
Sort out conferences by date (#9172)
designorant Apr 18, 2017
3a8effb
Lift state up - Updating the documentation to mention that onClick is…
bytetwin Apr 18, 2017
6afb482
Fixed grammar (#9432)
abhisheksoni27 Apr 18, 2017
53a0064
[Tutorial] ES6, installation, and button closing tag (#9441)
brigand Apr 18, 2017
f8ade2b
Minor tweaks to tutorial
gaearon Apr 18, 2017
3e44b5d
Fix duplicate sentence
gaearon Apr 18, 2017
e6df2ec
Minor tutorial nits
gaearon Apr 18, 2017
1001454
Add missing tutorial sidebar links
gaearon Apr 18, 2017
85b3cde
Tweak tutorial structure
gaearon Apr 18, 2017
8597fd4
FIX: Move CRA build info under it's tab page (#9452)
Apr 18, 2017
6ef3fde
Reorganize the "following along" instructions (#9453)
EnoahNetzach Apr 19, 2017
b2b612e
[Docs] Add accessibility to tabs in installation documentation (#9431)
AlmeroSteyn Apr 19, 2017
2a5aacc
[Docs: Installation] Fix tabs responsive layout - Resubmit (#9458)
AlmeroSteyn Apr 20, 2017
25177ec
Adds CSS Grid properties to list of unitless numbers (#9185)
ericsakmar Apr 20, 2017
a6b51ed
Only attempt to clear measures if we created the measure (#9451)
chrisui Apr 18, 2017
1926f9a
Quick fix for flowconfig
flarnie Apr 21, 2017
ad1d352
Run 'prettier' on the v15.6 branch (#9487)
flarnie Apr 22, 2017
009c9f7
Update tests to not warn due to moved PropTypes and shallowRenderer (…
flarnie Apr 25, 2017
451a3aa
Add more details in jsx-in-depth.md (#9006)
davidhu2000 Apr 21, 2017
928609d
Add link to 'Typechecking with PropTypes' under 'Advanced Guides' (#9…
flarnie Apr 22, 2017
ac1a466
Updates how-to-contribute.md to use JSFiddle referenced in submit Git…
jenjwong Apr 23, 2017
fd38304
Describe fixtures dir in the codebase overview (#9516)
maciej-ka Apr 25, 2017
4a230dc
adds indirect refs to docs (#9528)
brigand Apr 26, 2017
8b48a39
Add reference to the Hyperscript libraries (#9517)
dmitriz Apr 26, 2017
a30937f
[Docs] Fix confusing description for the <script>...</script> usage (…
chocolateboy Apr 26, 2017
be4f0c2
[site] Load libraries from unpkg (#9499)
Daniel15 Apr 26, 2017
e38445d
fixed error formatting in live editor (#9497)
tsriram Apr 26, 2017
5bb1ad1
React.createElement syntax (#9459)
Radi123 Apr 26, 2017
961fe73
Add guide on integrating with non-react code (#9316)
wacii Apr 26, 2017
eaadfb8
Don't build gh-pages branch on CircleCI (#9442)
zpao Apr 22, 2017
08234e7
pre format only compile time errors (#9538)
tsriram Apr 27, 2017
295b733
docs better indicate that state updaters shallowly merge with state (…
nsfmc May 1, 2017
aa1570c
[Tutorial] Make it easier to follow the instructions (#9454)
brigand May 1, 2017
a32974a
[Docs] Show the name 'React' first in the homepage's <title> (#9582)
joecritch May 2, 2017
ea5f8cd
Add more info about building for production (#9592)
gaearon May 3, 2017
6052d7b
Add DEV mode note to installation doc (#8784) (#9157)
addyosmani May 3, 2017
ee1a400
Use a more specific link
gaearon May 3, 2017
aba76bf
Fix a typo
gaearon May 3, 2017
d34eba0
Fix mobile layout
gaearon May 3, 2017
e084900
Bump docs version
gaearon May 3, 2017
115452f
Use setProperty when setting style properties (#9302)
aweary Apr 20, 2017
e29871e
Remove loose check on non-number controlled inputs. Fix trailing dot …
nhunzaker May 3, 2017
d2be47b
Tweak Tutorial based on feedback
gaearon May 3, 2017
c986455
Fix sequencing in the Tutorial (#9615)
gaearon May 5, 2017
07f5766
Fix horizontal scrolling in docs (#9613)
gaearon May 5, 2017
850231c
Remove tests which use dependency that is missing in 15.6
flarnie May 9, 2017
0001036
Move ReactDOMFactories into separate package (#8356)
nhunzaker Apr 24, 2017
4f7136e
Minor tweak to adjust ReactDOM-test for #8356
flarnie May 9, 2017
2bbe024
Add browserify transform (#9642)
mridgway May 9, 2017
0d74dfb
Add browserify transform (#9642)
mridgway May 9, 2017
0b48a3e
create-react-class@15.5.3
gaearon May 9, 2017
28bef90
react-addons-create-fragment@15.5.4
gaearon May 9, 2017
5c25cda
Fix typo on tutorial.md. (#9644)
carolinapowers May 10, 2017
5c415d1
Provide non-standard stack with invalid type warnings (#9679)
gaearon May 15, 2017
cde14be
New blog post: What's New in Create React App (#9719)
gaearon May 19, 2017
68347c9
Backport input fix (#8575)
jquense May 20, 2017
1d7971a
Run prettier
flarnie May 20, 2017
413c7b5
Cherrypick commit to downgrade deprecations to warnings (#9753)
flarnie May 23, 2017
d97317e
Remove stray reference to React.PropTypes in ReactLink (#9757)
flarnie May 24, 2017
16a62c2
Improve low priority warning (#9754)
flarnie May 24, 2017
3f62cd5
Improve deprecation warnings by more info and links (#9768)
flarnie May 25, 2017
b48b259
Cherrypick warning and removal of react create class (#9771)
flarnie May 25, 2017
b43f830
Remove random comment in `react-dom-factories` README
flarnie May 25, 2017
6086a22
`react-addons-dom-factories` (#9780)
flarnie May 25, 2017
b34a312
Remove PropTypes dependency from ReactLink (#9766)
gaearon May 26, 2017
98fde61
Improve warning for `React.createClass` (#9781)
flarnie May 30, 2017
f933244
Inputs should not mutate value on type conversion (#9806)
nhunzaker May 30, 2017
78fc25f
Prepare `react-dom-factories` for publishing (#9823)
flarnie May 31, 2017
fe031ca
Hello 15.6 Release Candidate (#9828)
flarnie Jun 1, 2017
e5b3554
Add 'create-react-class' to react dependencies for build (#9847)
flarnie Jun 5, 2017
6379500
Remove fiber-specific fixtures from 15.6 branch (#9902)
flarnie Jun 9, 2017
b02bbfe
Remove fiber-specific fixtures from 15.6 branch (#9902)
flarnie Jun 9, 2017
a08035b
Edit two errors in docs (#9659)
shifengchen May 11, 2017
518de2e
"Timeline" => "Performance" (#9602)
himynameisdave May 21, 2017
ad3a6cb
Move previous events to the end (#9729)
hika-p May 22, 2017
242565f
Move ReactEurope 2017 from Upcoming Conferences to Past Conferences (…
ehellman May 22, 2017
3d019b3
Add ReactiveConf (#9723)
hleumas May 22, 2017
f593e98
Bind handleChange Instead of Calling (#9764)
dhurlburtusa May 24, 2017
f1c449f
Fix typo (#9786)
May 26, 2017
f782994
Update blog post which creates unhandled promise rejection (#9668)
May 26, 2017
d5c3afd
Add 'Test Utils' docs back to main navigation (#9676)
flarnie May 26, 2017
b51cd8f
Add Videos link to React Europe 2017 (#9751)
ehellman May 26, 2017
597b145
Rename Github to GitHub (#9797)
lipis May 29, 2017
e46dc02
Rename Javascript to JavaScript (#9796)
lipis May 31, 2017
4974989
Clarifying how to apply aria-* attributes (#9843)
Jun 5, 2017
1ded80d
Insert blockquote on prop value explanation. (#9770)
DDrjm Jun 5, 2017
414deb1
Update webpack according to brand guidelines (#9595)
montogeek Jun 5, 2017
105b95b
Fix url to ng-animate (#9859)
Jun 6, 2017
98ae5aa
Update reference-react-component.md (#9863)
kurtfurbush Jun 6, 2017
fd75253
Adding React Alicante 2017 to upcoming conferences (#9897)
VictoriaQ Jun 9, 2017
2421bc6
Remove extra brace (#9910)
Jun 9, 2017
874a8ec
Move Past Confs, add React Conf Brazil 2017 (#9697)
danvitoriano Jun 9, 2017
ddae1cd
Fix doc styling and formatting issues
gaearon Jun 9, 2017
fc542d7
Fix missing react in create-react-class (#9761)
mondwan Jun 10, 2017
ae89a74
Fix missing react in create-react-class (#9761)
mondwan Jun 10, 2017
3c89893
Fix missing react dependency in some addon umd builds (#9919)
flarnie Jun 12, 2017
ce3ecfb
[#9712] fix <input type="number" /> value '.98' should not be equal t…
flarnie Jun 12, 2017
871bd7e
Delete prebuilt addon UMDs (#9931)
gaearon Jun 12, 2017
41e135e
Remove broken GCC annotation from create-react-class (#9933)
gaearon Jun 12, 2017
088d593
Use Object.assign polyfill for update addon (#9932)
gaearon Jun 12, 2017
61e8ee7
[#9627] Fix create-react-class isMounted ordering issue (#9638)
mridgway Jun 12, 2017
beb370c
Lint and test addons on CI (#9936)
gaearon Jun 12, 2017
3e7c172
Delete .babelrc from addons (#9938)
gaearon Jun 12, 2017
dea8f6a
Use react-transition-group from npm (#9937)
gaearon Jun 12, 2017
4fd77b1
Fix the proptypes deprecation warning url on the "Don't Call PropType…
gabriellett Apr 13, 2017
6a09520
Docs: Clarification of setState() behavior (#9329)
ericelliott Apr 13, 2017
f56ba14
Update proptypes doc (#9391)
jackmarchant Apr 13, 2017
bed4e33
Add tabs to installation page (#9275, #9277) (#9401)
markspolakovs Apr 13, 2017
dda27a3
Refractor docs to indicate that state set to props in constructor wil…
bytetwin Apr 12, 2017
7bdf33b
Switch Installation to a tab when hash is present (#9422)
gaearon Apr 13, 2017
7b7a3e9
Updated the Good First Bug section in readme (#9429)
abhaynikam Apr 14, 2017
97542e7
[Documentation] Impreove the react-component section of doc (#9349)
NE-SmallTown Apr 18, 2017
a610284
Unique headings for linking purposes (#9259)
wktfraser Apr 18, 2017
8b71e9f
Update jsx-in-depth.md (#9178)
jayenashar Apr 18, 2017
8706e43
Sort out conferences by date (#9172)
designorant Apr 18, 2017
a5d07f0
Lift state up - Updating the documentation to mention that onClick is…
bytetwin Apr 18, 2017
1ad0a33
Fixed grammar (#9432)
abhisheksoni27 Apr 18, 2017
28c914d
[Tutorial] ES6, installation, and button closing tag (#9441)
brigand Apr 18, 2017
0103dd1
Minor tweaks to tutorial
gaearon Apr 18, 2017
17d5b63
Fix duplicate sentence
gaearon Apr 18, 2017
1e68095
Minor tutorial nits
gaearon Apr 18, 2017
ac59a27
Add missing tutorial sidebar links
gaearon Apr 18, 2017
3f8c23e
Tweak tutorial structure
gaearon Apr 18, 2017
4b577eb
FIX: Move CRA build info under it's tab page (#9452)
Apr 18, 2017
dd8ac14
Reorganize the "following along" instructions (#9453)
EnoahNetzach Apr 19, 2017
a7524ab
[Docs] Add accessibility to tabs in installation documentation (#9431)
AlmeroSteyn Apr 19, 2017
11d2471
[Docs: Installation] Fix tabs responsive layout - Resubmit (#9458)
AlmeroSteyn Apr 20, 2017
7723dc4
Add more details in jsx-in-depth.md (#9006)
davidhu2000 Apr 21, 2017
4a91038
Add link to 'Typechecking with PropTypes' under 'Advanced Guides' (#9…
flarnie Apr 22, 2017
efd2808
Updates how-to-contribute.md to use JSFiddle referenced in submit Git…
jenjwong Apr 23, 2017
5b77e75
Describe fixtures dir in the codebase overview (#9516)
maciej-ka Apr 25, 2017
e85ec2f
adds indirect refs to docs (#9528)
brigand Apr 26, 2017
4ad20db
Add reference to the Hyperscript libraries (#9517)
dmitriz Apr 26, 2017
fc33c50
[Docs] Fix confusing description for the <script>...</script> usage (…
chocolateboy Apr 26, 2017
cf41c52
[site] Load libraries from unpkg (#9499)
Daniel15 Apr 26, 2017
34ab372
fixed error formatting in live editor (#9497)
tsriram Apr 26, 2017
292565f
React.createElement syntax (#9459)
Radi123 Apr 26, 2017
edd83dd
Add guide on integrating with non-react code (#9316)
wacii Apr 26, 2017
11ef9da
Don't build gh-pages branch on CircleCI (#9442)
zpao Apr 22, 2017
f66c60c
pre format only compile time errors (#9538)
tsriram Apr 27, 2017
2413107
docs better indicate that state updaters shallowly merge with state (…
nsfmc May 1, 2017
e9c7793
[Tutorial] Make it easier to follow the instructions (#9454)
brigand May 1, 2017
4700f30
[Docs] Show the name 'React' first in the homepage's <title> (#9582)
joecritch May 2, 2017
bf4af51
Add more info about building for production (#9592)
gaearon May 3, 2017
3300ecb
Add DEV mode note to installation doc (#8784) (#9157)
addyosmani May 3, 2017
5458982
Use a more specific link
gaearon May 3, 2017
aef13f0
Fix a typo
gaearon May 3, 2017
3b7a6c8
Fix mobile layout
gaearon May 3, 2017
c51f8bc
Bump docs version
gaearon May 3, 2017
6033213
Tweak Tutorial based on feedback
gaearon May 3, 2017
1f943df
Fix sequencing in the Tutorial (#9615)
gaearon May 5, 2017
18eff07
Fix horizontal scrolling in docs (#9613)
gaearon May 5, 2017
a8e2a33
create-react-class@15.5.3
gaearon May 9, 2017
dd98816
react-addons-create-fragment@15.5.4
gaearon May 9, 2017
7a3472e
Fix typo on tutorial.md. (#9644)
carolinapowers May 10, 2017
0bee130
New blog post: What's New in Create React App (#9719)
gaearon May 19, 2017
9a2ddbd
Edit two errors in docs (#9659)
shifengchen May 11, 2017
80252af
"Timeline" => "Performance" (#9602)
himynameisdave May 21, 2017
74861dd
Move previous events to the end (#9729)
hika-p May 22, 2017
018189a
Move ReactEurope 2017 from Upcoming Conferences to Past Conferences (…
ehellman May 22, 2017
db6c10c
Add ReactiveConf (#9723)
hleumas May 22, 2017
1a663a4
Bind handleChange Instead of Calling (#9764)
dhurlburtusa May 24, 2017
88815d6
Fix typo (#9786)
May 26, 2017
f60f5fe
Update blog post which creates unhandled promise rejection (#9668)
May 26, 2017
9d60d38
Add 'Test Utils' docs back to main navigation (#9676)
flarnie May 26, 2017
81d1519
Add Videos link to React Europe 2017 (#9751)
ehellman May 26, 2017
4def415
Rename Github to GitHub (#9797)
lipis May 29, 2017
b77fd87
Rename Javascript to JavaScript (#9796)
lipis May 31, 2017
eec984d
Clarifying how to apply aria-* attributes (#9843)
Jun 5, 2017
b0777a6
Insert blockquote on prop value explanation. (#9770)
DDrjm Jun 5, 2017
a5e0067
Update webpack according to brand guidelines (#9595)
montogeek Jun 5, 2017
6bef36d
Fix url to ng-animate (#9859)
Jun 6, 2017
debf4f8
Update reference-react-component.md (#9863)
kurtfurbush Jun 6, 2017
152d94d
Adding React Alicante 2017 to upcoming conferences (#9897)
VictoriaQ Jun 9, 2017
f931ad7
Remove extra brace (#9910)
Jun 9, 2017
c62675c
Move Past Confs, add React Conf Brazil 2017 (#9697)
danvitoriano Jun 9, 2017
66b4283
Fix doc styling and formatting issues
gaearon Jun 9, 2017
207f3ef
Update minified version of 'create-react-class' (#9939)
flarnie Jun 12, 2017
f127ba6
Add build process for createReactClass (#9943)
gaearon Jun 13, 2017
9ac30f5
Delete accidental .babelrc
gaearon Jun 13, 2017
d095bc8
bump minor version of create-react-class
flarnie Jun 13, 2017
b0a67c9
Merge branch '15-dev' into 15-stable
flarnie Jun 13, 2017
7c2ce27
Update Yarn lockfile
flarnie Jun 13, 2017
47334a1
Update changelog
flarnie Jun 13, 2017
1de6082
Ran prettier
flarnie Jun 13, 2017
78eda55
Revert "Ran prettier"
flarnie Jun 13, 2017
129307f
Add build process to all addons (#9946)
gaearon Jun 13, 2017
156dd49
Update yarn.lock again
flarnie Jun 13, 2017
501cb45
15.6.0
flarnie Jun 13, 2017
8af5d23
Minor fixes to 15.6.0 changelog (#9951)
gaearon Jun 13, 2017
0652bb4
Minor fixes to 15.6.0 changelog (#9951)
gaearon Jun 13, 2017
16d7773
Minor fixes to 15.6.0 changelog (#9951)
gaearon Jun 13, 2017
4ac0672
Addons: 15.6.0-rc.0
gaearon Jun 13, 2017
a3ff734
Add missing devDependency
gaearon Jun 13, 2017
4db80b9
Use lowPriorityWarning for TestUtils too
gaearon Jun 13, 2017
a5e69ca
Add missing headers
gaearon Jun 13, 2017
c1fe254
Blog post for 15.6.0 (#9950)
flarnie Jun 13, 2017
00917c8
Remove trailing commas in addons
gaearon Jun 14, 2017
4d44dfb
No need to call it deprecated
gaearon Jun 14, 2017
820310f
Update transitiongroup readmes to be less scary
gaearon Jun 14, 2017
d9d8cf6
15.6.0 of addons
gaearon Jun 14, 2017
4f17e8a
Merge branch '15.6-dev' into 15-stable
gaearon Jun 14, 2017
24e698a
Reword animation documentation deprecation (#9957)
gaearon Jun 14, 2017
3377abf
Add future changelog for 15.6.0 addon release (#9953)
gaearon Jun 14, 2017
461a5a2
Add addon changes to 15.6.0 changelog (#9958)
gaearon Jun 14, 2017
0deda1f
Bail out of dedupe logic in cases where there is an incomplete value …
jquense Apr 29, 2016
d5c2bdb
Merge branch '15.6-dev' into 15-dev
flarnie Jun 14, 2017
cd262c7
remove file mistakenly added in merge conflict resolution
flarnie Jun 14, 2017
123c7cd
Merge branch '15-dev' into 15-stable
flarnie Jun 14, 2017
2ddff2e
Backport Safari fix for input changes (#9960)
jquense Jun 14, 2017
ae94ea7
Disable 'comma-dangle' eslint rule for './addons' (#9965)
flarnie Jun 14, 2017
782e433
Merge branch '15.6-dev' into 15-stable
gaearon Jun 14, 2017
80255d1
Prevents adding units to css custom properties (#9966)
TrySound Jun 14, 2017
d494d2d
Temporarily disable prettier on CI
gaearon Jun 14, 2017
4013e23
Merge branch '15.6-dev' into 15-stable
gaearon Jun 14, 2017
240874d
Bump dependencies
gaearon Jun 14, 2017
230d0ec
Delete unused packages
gaearon Jun 14, 2017
83d0dc4
Remove unused build tasks
gaearon Jun 14, 2017
5b89c1b
Try to re-enable Prettier
gaearon Jun 14, 2017
9ba0c80
Merge branch '15.6-dev' into 15-stable
gaearon Jun 14, 2017
0c102ac
15.6.1
gaearon Jun 14, 2017
a3d0dbc
Try to enable Yarn on 15-stable (#9971)
gaearon Jun 14, 2017
7efd2e5
Fix tests on CI to account for prop-types change
gaearon Jun 15, 2017
028694d
@dev 增加中文注释
JackyTianer Sep 20, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 4 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"presets": ["react"],
"ignore": ["third_party"],
"plugins": [
"fbjs-scripts/babel-6/dev-expression",
"transform-class-properties",
"syntax-trailing-function-commas",
"transform-object-rest-spread",
"transform-es2015-template-literals",
"transform-es2015-literals",
"transform-es2015-arrow-functions",
Expand All @@ -21,6 +22,7 @@
"transform-es2015-modules-commonjs",
"transform-es3-member-expression-literals",
"transform-es3-property-literals",
"./scripts/babel/transform-object-assign-require"
"./scripts/babel/transform-object-assign-require",
"transform-react-jsx-source"
]
}
3 changes: 3 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# We can probably lint these later but not important at this point
addons/**/node_modules/
src/renderers/art
src/shared/vendor
# But not in docs/_js/examples/*
docs/_js/*.js
Expand All @@ -9,6 +11,7 @@ docs/vendor/bundle/
# This should be more like examples/**/thirdparty/** but
# we should fix https://github.com/facebook/esprima/pull/85 first
examples/
fixtures/
# Ignore built files.
build/
coverage/
Expand Down
31 changes: 7 additions & 24 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,67 +3,50 @@ const WARNING = 1;
const ERROR = 2;

module.exports = {
parser: 'babel-eslint',

extends: './node_modules/fbjs-scripts/eslint/.eslintrc.js',
extends: 'fbjs',

plugins: [
'react',
'react-internal',
],

ecmaFeatures: {
modules: false
},

// We're stricter than the default config, mostly. We'll override a few rules
// and then enable some React specific ones.
rules: {
'accessor-pairs': OFF,
'brace-style': [ERROR, '1tbs'],
'comma-dangle': [ERROR, 'always-multiline'],
'consistent-return': ERROR,
'consistent-return': OFF,
'dot-location': [ERROR, 'property'],
'dot-notation': ERROR,
'eol-last': ERROR,
'eqeqeq': [ERROR, 'allow-null'],
'indent': [ERROR, 2, {SwitchCase: 1}],
'indent': OFF, // We use Prettier now
'jsx-quotes': [ERROR, 'prefer-double'],
'keyword-spacing': [ERROR, {after: true, before: true}],
'no-bitwise': OFF,
'no-inner-declarations': [ERROR, 'functions'],
'no-multi-spaces': ERROR,
'no-restricted-syntax': [ERROR, 'WithStatement'],
'no-shadow': ERROR,
'no-unused-expressions': ERROR,
'no-unused-vars': [ERROR, {args: 'none'}],
'quotes': [ERROR, 'single', 'avoid-escape'],
'space-after-keywords': ERROR,
'quotes': [ERROR, 'single', {avoidEscape: true, allowTemplateLiterals: true }],
'space-before-blocks': ERROR,
'space-before-function-paren': [ERROR, {anonymous: 'never', named: 'never'}],
'space-before-keywords': ERROR,
'strict': [ERROR, 'global'],

// React & JSX
// Our transforms set this automatically
'react/display-name': OFF,
'react/jsx-boolean-value': [ERROR, 'always'],
'react/jsx-no-undef': ERROR,
// We don't care to do this
'react/jsx-sort-prop-types': OFF,
'react/jsx-sort-props': OFF,
'react/jsx-uses-react': ERROR,
'react/jsx-uses-vars': ERROR,
// It's easier to test some things this way
'react/no-did-mount-set-state': OFF,
'react/no-did-update-set-state': OFF,
// We define multiple components in test files
'react/no-multi-comp': OFF,
'react/no-unknown-property': OFF,
'react/no-is-mounted': OFF,
// This isn't useful in our test code
'react/prop-types': OFF,
'react/react-in-jsx-scope': ERROR,
'react/self-closing-comp': ERROR,
// We don't care to do this
'react/sort-comp': OFF,
'react/wrap-multilines': [ERROR, {declaration: false, assignment: false}],

// CUSTOM RULES
Expand Down
43 changes: 43 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
[ignore]

<PROJECT_ROOT>/examples/.*
<PROJECT_ROOT>/fixtures/.*
<PROJECT_ROOT>/build/.*
<PROJECT_ROOT>/node_modules/chrome-devtools-frontend/.*
<PROJECT_ROOT>/.*/node_modules/chrome-devtools-frontend/.*
<PROJECT_ROOT>/.*/node_modules/y18n/.*
<PROJECT_ROOT>/.*/__mocks__/.*
<PROJECT_ROOT>/.*/__tests__/.*
<PROJECT_ROOT>/addons/.*

# Ignore Docs
<PROJECT_ROOT>/docs/.*
<PROJECT_ROOT>/.*/docs/.*

[include]

[libs]
./node_modules/fbjs/flow/lib/dev.js
./flow

[options]
module.system=haste

esproposal.class_static_fields=enable
esproposal.class_instance_fields=enable

munge_underscores=false

suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FixMe
suppress_type=$FlowExpectedError

suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-3]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*www[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError

[version]
^0.37.0

11 changes: 11 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
**Before submitting a pull request,** please make sure the following is done:

1. Fork [the repository](https://github.com/facebook/react) and create your branch from `master`.
2. If you've added code that should be tested, add tests!
3. If you've changed APIs, update the documentation.
4. Ensure the test suite passes (`npm test`).
5. Make sure your code lints (`npm run lint`).
6. Format your code with [prettier](https://github.com/prettier/prettier) (`npm run prettier`).
7. Run the [Flow](https://flowtype.org/) typechecks (`npm run flow`).
8. If you added or removed any tests, run `./scripts/fiber/record-tests` before submitting the pull request, and commit the resulting changes.
9. If you haven't already, complete the CLA.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,15 @@ docs/code
docs/_site
docs/.sass-cache
docs/js/*
docs/downloads
docs/downloads/*.zip
docs/vendor/bundle
<<<<<<< HEAD
examples/shared/*.js
examples/**/bundle.js
=======
fixtures/dom/public/react-dom.js
fixtures/dom/public/react.js
>>>>>>> 4a37718... Remove examples/ folder (#9323)
test/the-files-to-test.generated.js
*.log*
chrome-user-data
Expand Down
43 changes: 38 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
---
sudo: required
dist: trusty
language: node_js
node_js:
- 4
sudo: false
rvm:
- 2.2.3
cache:
directories:
- docs/vendor/bundle
Expand All @@ -25,8 +28,8 @@ script:

GH_PAGES_DIR="$TRAVIS_BUILD_DIR"/../react-gh-pages
echo "machine github.com login reactjs-bot password $GITHUB_TOKEN" >~/.netrc
git config --global user.name "Travis CI"
git config --global user.email "travis@reactjs.org"
git config --global user.name "$GITHUB_USER_NAME"
git config --global user.email "$GITHUB_USER_EMAIL"

git clone --branch gh-pages --depth=50 \
https://reactjs-bot@github.com/facebook/react.git \
Expand All @@ -36,7 +39,7 @@ script:
bundle exec rake release
cd $GH_PAGES_DIR
git status
if ! git diff-index --quiet HEAD --; then
if test -n "$(git status --porcelain)"; then
git add -A .
git commit -m "Rebuild website"
git push origin gh-pages
Expand All @@ -58,6 +61,7 @@ script:
-F "react-dom-server.min=@build/react-dom-server.min.js" \
-F "npm-react=@build/packages/react.tgz" \
-F "npm-react-dom=@build/packages/react-dom.tgz" \
-F "npm-react-native=@build/packages/react-native-renderer.tgz" \
-F "commit=$TRAVIS_COMMIT" \
-F "date=`git log --format='%ct' -1`" \
-F "pull_request=$TRAVIS_PULL_REQUEST" \
Expand All @@ -67,12 +71,40 @@ script:
fi
elif [ "$TEST_TYPE" = test ]; then
set -e
./node_modules/.bin/grunt jest:normal
./node_modules/.bin/grunt jest:coverage
cat ./coverage/lcov.info | ./node_modules/.bin/coveralls

echo 'Testing in server-render (HTML generation) mode...'
printf '\nmodule.exports.useCreateElement = false;\n' \
>> src/renderers/dom/shared/ReactDOMFeatureFlags.js
./node_modules/.bin/grunt jest:normal
git checkout -- src/renderers/dom/shared/ReactDOMFeatureFlags.js

echo 'Testing in fiber mode...'
printf '\nmodule.exports.useFiber = true;\n' \
>> src/renderers/dom/shared/ReactDOMFeatureFlags.js
FIBER_TESTS=`\
NODE_ENV=test node node_modules/jest/bin/jest --json | \
node -e "\
var data = JSON.parse(require('fs').readFileSync('/dev/stdin', 'utf8')); \
console.log(data.numPassedTests + '/' + data.numTotalTests)\
"\
`
git checkout -- src/renderers/dom/shared/ReactDOMFeatureFlags.js
node scripts/facts-tracker/index.js \
"fiber-tests" "$FIBER_TESTS"

./node_modules/.bin/gulp react:extract-errors
elif [ "$TEST_TYPE" = flow ]; then
set -e
./node_modules/.bin/grunt flow

ALL_FILES=`find src -name '*.js' | grep -v umd/ | grep -v __tests__ | grep -v __mocks__`
COUNT_ALL_FILES=`echo "$ALL_FILES" | wc -l`
COUNT_WITH_FLOW=`grep '@flow' $ALL_FILES | perl -pe 's/:.+//' | wc -l`
node scripts/facts-tracker/index.js \
"flow-files" "$COUNT_WITH_FLOW/$COUNT_ALL_FILES"

else
./node_modules/.bin/grunt $TEST_TYPE
fi
Expand All @@ -81,6 +113,7 @@ env:
- TEST_TYPE=build
- TEST_TYPE=test
- TEST_TYPE=lint
- TEST_TYPE=flow
- TEST_TYPE=build_website
global:
# SERVER
Expand Down
Loading