mirror of
https://github.com/status-im/react-native.git
synced 2025-01-09 17:15:54 +00:00
857bae4ea3
Summary: (I changed a ton from when I previously submitted this PR so please take another look if you already did.) PROBLEM: the no-longer-maintained `esprima-fb` parser does not support class properties, leading our website docgen to die if we use class properties, which we're gonna do real soon now SOLUTION: use `flow-parser` instead, which the flow team is maintaining including all the fancy-pants ES? stuff that FB uses internally. This removes the `esprima-fb` parser from jsdocs and replaces it with `flow-parser`. It's almost the same, I checked by diffing all the parser json output and it only had a few irrelevant differences. I had to add a file of constants so that we could remove esprima-fb altogether, too. This also adds a couple unit tests, so that we can test that jsDocs works programmatically. They don't run if you run the regular RN tests, you have to run `npm test` from the `/website/` subdirectory. Closes https://github.com/facebook/react-native/pull/9890 Differential Revision: D3865629 Pulled By: bestander fbshipit-source-id: 8f561b78ca4a02f3f7b45e55904ec2fa911e3bb6
34 lines
882 B
JSON
34 lines
882 B
JSON
{
|
|
"scripts": {
|
|
"start": "RN_VERSION=next node server/server.js",
|
|
"test": "jest",
|
|
"gh-pages": "node publish-gh-pages.js"
|
|
},
|
|
"dependencies": {
|
|
"babel-core": "^6.6.4",
|
|
"babel-plugin-external-helpers": "^6.5.0",
|
|
"babel-polyfill": "^6.6.1",
|
|
"babel-preset-react-native": "~1.6.0",
|
|
"babel-register": "^6.6.0",
|
|
"babel-types": "^6.6.4",
|
|
"bluebird": "^2.9.21",
|
|
"connect": "2.8.3",
|
|
"deep-assign": "^2.0.0",
|
|
"flow-parser": "^0.32.0",
|
|
"fs.extra": "1.3.2",
|
|
"glob": "6.0.4",
|
|
"jsdoc-api": "^1.1.0",
|
|
"jstransform": "11.0.3",
|
|
"mkdirp": "^0.5.1",
|
|
"optimist": "0.6.0",
|
|
"react": "~0.13.0",
|
|
"react-docgen": "^2.9.0",
|
|
"react-page-middleware": "git://github.com/facebook/react-page-middleware.git",
|
|
"request": "^2.69.0",
|
|
"semver-compare": "^1.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"jest": "^15.1.1"
|
|
}
|
|
}
|