Re:React 0.14 Release Candidate
by Scarbutt on Thursday September 10, 2015 @01:23PM
(#10199339)
What does react use typescript and coffescript for? they are listed as a dep in package.json
[ Parent
| on HN ]
We just test that their class systems work properly with React:
https://github.com/facebook/react/tree/v0.14.0-rc1/src/isomo...
We don't use either one outside of the tests.
I think that means you can move them to the `devDependencies`.
edit: Derp, they're there already
They already are in devDependencies.
Is it the same case for babel? re: ReactES6Class-test.js
Yes, though we use Babel to compile all of our JS source code and tests.
Will you end up testing a Babelified es6 class and a "native" es6 class, or will you keep testing just the Babelified version for now?
Probably the latter, though we might add a native one too after we run our tests using a version of Node that supports classes.
FWIW, https://github.com/facebook/react/blob/master/package.json is not actually the package.json we ship to npm. This is just for building. https://github.com/facebook/react/blob/master/packages/react... is the package.json we ship to npm.