mirror of
https://github.com/facebook/react.git
synced 2026-02-25 23:25:21 +00:00
As part of the new class effort it is now possible to define React Components using any type of generic JavaScript class syntax. This includes TypeScript classes. This test ensures that we don't regress that support, and also serves as an example for using React in TypeScript. TypeScript provides a good demo of where we think property initializers are going. We don't have any official *type* support for TypeScript yet. This test trails the ReactES6Class-test file. Some manual tweaking is required when converting tests.
103 lines
2.3 KiB
JSON
103 lines
2.3 KiB
JSON
{
|
|
"name": "react-tools",
|
|
"description": "A set of complementary tools to React, including the JSX transformer.",
|
|
"version": "0.13.0-alpha.2",
|
|
"keywords": [
|
|
"react",
|
|
"jsx",
|
|
"transformer",
|
|
"view"
|
|
],
|
|
"homepage": "http://facebook.github.io/react",
|
|
"bugs": "https://github.com/facebook/react/issues",
|
|
"license": "BSD-3-Clause",
|
|
"files": [
|
|
"main.js",
|
|
"bin/jsx",
|
|
"src/",
|
|
"vendor/fbtransform/"
|
|
],
|
|
"main": "main.js",
|
|
"bin": {
|
|
"jsx": "./bin/jsx"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/facebook/react"
|
|
},
|
|
"dependencies": {
|
|
"commoner": "^0.10.0",
|
|
"jstransform": "^8.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"benchmark": "~1.0.0",
|
|
"browserify": "^8.1.0",
|
|
"bundle-collapser": "^1.1.1",
|
|
"coffee-script": "^1.8.0",
|
|
"coverify": "~1.0.4",
|
|
"derequire": "^1.2.0",
|
|
"envify": "^3.0.0",
|
|
"es3ify": "~0.1.2",
|
|
"es5-shim": "^4.0.0",
|
|
"eslint": "0.11.0-alpha.0",
|
|
"grunt": "~0.4.2",
|
|
"grunt-cli": "~0.1.9",
|
|
"grunt-compare-size": "~0.4.0",
|
|
"grunt-contrib-clean": "^0.6.0",
|
|
"grunt-contrib-compress": "^0.13.0",
|
|
"grunt-contrib-connect": "~0.6.0",
|
|
"grunt-contrib-copy": "^0.7.0",
|
|
"grunt-contrib-jshint": "^0.10.0",
|
|
"gzip-js": "~0.3.2",
|
|
"jasmine-tapreporter": "~0.2.2",
|
|
"jest-cli": "^0.2.1",
|
|
"lodash": "~2.4.1",
|
|
"optimist": "~0.6.0",
|
|
"phantomjs": "~1.9",
|
|
"platform": "^1.1.0",
|
|
"populist": "~0.1.6",
|
|
"recast": "^0.9.11",
|
|
"sauce-tunnel": "~1.1.0",
|
|
"ts-compiler": "^2.0.0",
|
|
"tmp": "~0.0.18",
|
|
"uglify-js": "~2.4.0",
|
|
"uglifyify": "^2.4.0",
|
|
"wd": "~0.2.6"
|
|
},
|
|
"engines": {
|
|
"node": ">=0.10.0"
|
|
},
|
|
"preferGlobal": true,
|
|
"commonerConfig": {
|
|
"version": 4
|
|
},
|
|
"scripts": {
|
|
"test": "jest",
|
|
"jest": "jest",
|
|
"lint": "eslint src",
|
|
"build": "grunt build"
|
|
},
|
|
"jest": {
|
|
"rootDir": "",
|
|
"scriptPreprocessor": "jest/preprocessor.js",
|
|
"setupEnvScriptFile": "jest/environment.js",
|
|
"testFileExtensions": [
|
|
"js",
|
|
"coffee",
|
|
"ts"
|
|
],
|
|
"modulePathIgnorePatterns": [
|
|
"/build/",
|
|
"/node_modules/",
|
|
"/.module-cache/"
|
|
],
|
|
"testPathIgnorePatterns": [
|
|
"/build/",
|
|
"/node_modules/"
|
|
],
|
|
"unmockedModulePathPatterns": [
|
|
""
|
|
]
|
|
}
|
|
}
|