mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-10-26 23:32:02 +03:00
df0f9e16ae
Summary: This method provides an alternative way to run Test262 through a stream of compiled test contents for each scenario (default, strict mode), including all the necessary harness contents. The logic to capture an execution success or failure is similar to the original one - from scripts/test262-runner.js - and improvements should be done as follow ups. The filtering system is now done through a configuration yaml file, using tests metadata and path locations. This filter is used as an object that can be extended with further logic, but still offers a single point to check for filtering. The report system requires some improvements and these should also be done as follow-ups. For now they provide a report for each folder and the total results. Although, the results data contain enough information to highly expand the report. Some further improvements are expected and planned, this work should be at least ready for an initial round for feedback review. Closes https://github.com/facebook/prepack/pull/1122 Reviewed By: cblappert Differential Revision: D6456700 Pulled By: hermanventer fbshipit-source-id: ba56efcaa4eab847594cb7c1fbc908cf1fc66a80
122 lines
5.7 KiB
JSON
122 lines
5.7 KiB
JSON
{
|
|
"name": "prepack",
|
|
"version": "0.2.14-alpha.0",
|
|
"description": "Execute a JS bundle, serialize global state and side effects to a snapshot that can be quickly restored.",
|
|
"homepage": "https://github.com/facebook/prepack",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git://github.com/facebook/prepack.git"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/facebook/prepack/issues"
|
|
},
|
|
"files": [
|
|
"LICENSE",
|
|
"PATENTS",
|
|
"bin/",
|
|
"lib/"
|
|
],
|
|
"bin": {
|
|
"prepack": "bin/prepack.js",
|
|
"prepack-repl": "bin/prepack-repl.js"
|
|
},
|
|
"main": "lib/prepack-node.js",
|
|
"browser": "lib/prepack-standalone.js",
|
|
"scripts": {
|
|
"build": "babel src --out-dir lib --source-maps && yarn build-bundle",
|
|
"build-scripts": "babel scripts --out-dir lib --source-maps",
|
|
"build-bundle": "webpack",
|
|
"watch": "babel src scripts --out-dir lib --watch --source-maps",
|
|
"lint": "eslint src scripts",
|
|
"flow": "flow check",
|
|
"test-residual": "babel-node scripts/test-residual.js",
|
|
"test-residual-with-coverage": "./node_modules/.bin/istanbul cover ./lib/test-residual.js --dir coverage.residual && ./node_modules/.bin/remap-istanbul -i coverage.residual/coverage.json -o coverage-sourcemapped.residual -t html",
|
|
"test-serializer": "babel-node --stack_trace_limit=200 --stack_size=10000 scripts/test-runner.js",
|
|
"test-serializer-with-coverage": "./node_modules/.bin/istanbul cover ./lib/test-error-handler.js --dir coverage.error && ./node_modules/.bin/istanbul cover ./lib/test-runner.js && ./node_modules/.bin/remap-istanbul -i coverage.error/coverage.json -i coverage/coverage.json -o coverage-sourcemapped -t html",
|
|
"test-sourcemaps": "babel-node scripts/generate-sourcemaps-test.js && bash < scripts/test-sourcemaps.sh",
|
|
"test-test262": "babel-node scripts/test262-runner.js",
|
|
"test-test262-nightly": "NIGHTLY_BUILD=true babel-node -- scripts/test262-runner.js",
|
|
"test-test262-new": "babel-node scripts/test262.js",
|
|
"test-internal": "babel-node --stack_size=10000 --stack_trace_limit=200 --max_old_space_size=16384 scripts/test-internal.js",
|
|
"test-error-handler": "babel-node scripts/test-error-handler.js",
|
|
"test-error-handler-with-coverage": "./node_modules/.bin/istanbul cover ./lib/test-error-handler.js --dir coverage.error && ./node_modules/.bin/remap-istanbul -i coverage.error/coverage.json -o coverage-sourcemapped.error -t html",
|
|
"test-node-cli-mode": "bash < scripts/test-node-cli-mode.sh",
|
|
"test-std-in": "bash < scripts/test-std-in.sh",
|
|
"test-react": "jest scripts/test-react",
|
|
"test": "yarn test-residual && yarn test-serializer && yarn test-sourcemaps && yarn test-error-handler && yarn test-std-in && yarn test-test262 && yarn test-react && yarn test-internal",
|
|
"test-coverage-most": "./node_modules/.bin/istanbul --stack_size=10000 --max_old_space_size=16384 cover ./lib/multi-runner.js --dir coverage.most && ./node_modules/.bin/remap-istanbul -i coverage.most/coverage.json -o coverage-sourcemapped -t html",
|
|
"test-all-coverage": "./node_modules/.bin/istanbul --stack_size=10000 --max_old_space_size=16384 cover ./lib/multi-runner.js --dir coverage.most && ./node_modules/.bin/istanbul --stack_size=10000 --max_old_space_size=16384 cover -- ./lib/test262-runner.js --timeout 50 --singleThreaded && ./node_modules/.bin/remap-istanbul -i coverage/coverage.json -i coverage.most/coverage.json -o coverage-sourcemapped -t html",
|
|
"repl": "node lib/repl-cli.js",
|
|
"prepack": "node lib/prepack-cli.js",
|
|
"prepack-prepack": "node --stack_size=10000 --max_old_space_size=8096 ./bin/prepack.js ./lib/prepack-cli.js --out ./lib/prepack-cli.prepacked.js --compatibility node-cli --mathRandomSeed rnd",
|
|
"validate": "yarn build && yarn build-scripts && yarn lint && yarn depcheck && yarn flow && yarn test",
|
|
"prepublish": "yarn build",
|
|
"depcheck": "babel-node scripts/detect_bad_deps.js",
|
|
"prettier": "node ./scripts/prettier.js write-changed",
|
|
"prettier-all": "node ./scripts/prettier.js write"
|
|
},
|
|
"dependencies": {
|
|
"babel-core": "^6.26.0",
|
|
"babel-generator": "^6.8.0",
|
|
"babel-plugin-transform-react-jsx": "^6.24.1",
|
|
"babel-template": "^6.9.0",
|
|
"babel-traverse": "^6.9.0",
|
|
"babel-types": "^6.9.0",
|
|
"babylon": "^6.18.0",
|
|
"base62": "^1.1.2",
|
|
"queue-fifo": "^0.2.3",
|
|
"seedrandom": "^2.4.2",
|
|
"source-map": "^0.5.6",
|
|
"vscode-debugadapter": "^1.24.0",
|
|
"vscode-debugprotocol": "^1.24.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-cli": "^6.18.0",
|
|
"babel-eslint": "^7.1.1",
|
|
"babel-helper-function-name": "^6.8.0",
|
|
"babel-helper-get-function-arity": "^6.8.0",
|
|
"babel-plugin-transform-class-properties": "^6.6.0",
|
|
"babel-plugin-transform-object-rest-spread": "^6.8.0",
|
|
"babel-preset-env": "^1.4.0",
|
|
"babel-preset-react": "^6.5.0",
|
|
"chalk": "^1.1.3",
|
|
"eslint": "^3.8.1",
|
|
"eslint-plugin-babel": "^3.3.0",
|
|
"eslint-plugin-flow-header": "^0.1.1",
|
|
"eslint-plugin-flowtype": "^2.20.0",
|
|
"eslint-plugin-header": "^1.0.0",
|
|
"eslint-plugin-prettier": "^2.1.2",
|
|
"flow-bin": "^0.58.0",
|
|
"graceful-fs": "^4.1.11",
|
|
"invariant": "^2.2.0",
|
|
"istanbul": "^0.4.5",
|
|
"jest": "^21.2.1",
|
|
"js-yaml": "^3.6.1",
|
|
"jsdom": "^9.2.1",
|
|
"kcheck": "^2.0.0",
|
|
"madge": "^1.6.0",
|
|
"minimist": "^1.2.0",
|
|
"prettier": "1.5.2",
|
|
"react": "^16.0.0",
|
|
"react-test-renderer": "^16.0.0",
|
|
"remap-istanbul": "^0.9.1",
|
|
"source-map-support": "^0.4.6",
|
|
"test262-integrator": "^1.2.0",
|
|
"uglify-js": "^2.6.2",
|
|
"webpack": "^2.3.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.1.0"
|
|
},
|
|
"keywords": [
|
|
"prepack"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"author": "Facebook",
|
|
"jest": {
|
|
"testMatch": [
|
|
"**/scripts/test-react.js"
|
|
]
|
|
}
|
|
}
|