mirror of
https://github.com/facebookarchive/prepack.git
synced 2024-09-11 14:46:37 +03:00
Summary: This will fail CI if we forgot to run `yarn prettier` before committing. We do the same in React repo. It prevents committing stale files that later cause unexpected changes. Pull Request resolved: https://github.com/facebook/prepack/pull/2212 Differential Revision: D8784406 Pulled By: gaearon fbshipit-source-id: ca948b8e088be8886c8ba865f280ba8d72750f69
147 lines
6.9 KiB
JSON
147 lines
6.9 KiB
JSON
{
|
|
"name": "prepack",
|
|
"version": "0.2.43-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": "yarn build-prepack && yarn build-bundle",
|
|
"build-scripts": "babel scripts --out-dir lib --source-maps",
|
|
"build-bundle": "webpack-cli",
|
|
"build-prepack": "babel src --out-dir lib --source-maps",
|
|
"watch": "babel src scripts --out-dir lib --watch --source-maps",
|
|
"lint": "eslint src scripts",
|
|
"flow": "flow version; flow check --merge-timeout 0",
|
|
"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-internal-react": "babel-node --stack_size=10000 --stack_trace_limit=200 --max_old_space_size=16384 scripts/test-internal-react.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",
|
|
"test-react-fast": "SKIP_REACT_JSX_TESTS=true jest",
|
|
"test": "yarn test-residual && yarn test-serializer && yarn test-sourcemaps && yarn test-error-handler && yarn test-std-in && yarn test-test262 && yarn test-internal && yarn test-internal-react && yarn test-react",
|
|
"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",
|
|
"precheck": "yarn prepack-cli --check",
|
|
"prepack-cli": "node --stack_size=10000 --stack_trace_limit=200 --max_old_space_size=16384 lib/prepack-cli.js --accelerateUnsupportedRequires --compatibility jsc-600-1-4-17 --delayUnsupportedRequires --mathRandomSeed 0",
|
|
"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 install --frozen-lockfile && yarn build && yarn build-scripts && yarn lint && yarn depcheck && yarn flow && yarn test",
|
|
"prepublishOnly": "yarn build",
|
|
"depcheck": "babel-node scripts/detect_bad_deps.js",
|
|
"prettier": "node ./scripts/prettier.js write-changed",
|
|
"prettier-all": "node ./scripts/prettier.js write",
|
|
"prettier-ci": "node ./scripts/prettier.js",
|
|
"debug-fb-www": "node --stack_trace_limit=200 --stack_size=10000 --max_old_space_size=16384 ./scripts/debug-fb-www.js"
|
|
},
|
|
"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",
|
|
"fbjs": "^0.8.16",
|
|
"node-zip": "^1.1.1",
|
|
"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": "^8.2.2",
|
|
"babel-helper-function-name": "^6.8.0",
|
|
"babel-helper-get-function-arity": "^6.8.0",
|
|
"babel-loader": "^7.1.3",
|
|
"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": "^4.18.2",
|
|
"eslint-plugin-babel": "^3.3.0",
|
|
"eslint-plugin-flow-header": "^0.1.1",
|
|
"eslint-plugin-flowtype": "^2.40.0",
|
|
"eslint-plugin-header": "^1.0.0",
|
|
"eslint-plugin-prettier": "^2.1.2",
|
|
"flow-bin": "^0.76.0",
|
|
"flow-typed": "^2.3.0",
|
|
"graceful-fs": "^4.1.11",
|
|
"invariant": "^2.2.0",
|
|
"istanbul": "^0.4.5",
|
|
"jest": "^23.2.0",
|
|
"js-beautify": "^1.7.5",
|
|
"js-yaml": "^3.6.1",
|
|
"jsdom": "^9.2.1",
|
|
"madge": "^1.6.0",
|
|
"minimist": "^1.2.0",
|
|
"prettier": "1.13.6",
|
|
"prop-types": "^15.6.0",
|
|
"react": "16.3.1",
|
|
"react-dom": "16.3.1",
|
|
"react-native": "^0.55.4",
|
|
"react-relay": "^1.4.1",
|
|
"react-test-renderer": "16.3.1",
|
|
"remap-istanbul": "^0.9.1",
|
|
"source-map-support": "^0.4.6",
|
|
"test262-integrator": "^1.2.0",
|
|
"webpack": "^4.1.0",
|
|
"webpack-cli": "^2.0.10"
|
|
},
|
|
"optionalDependencies": {
|
|
"v8-profiler": "^5.7.0"
|
|
},
|
|
"engines": {
|
|
"node": ">=6.1.0"
|
|
},
|
|
"keywords": [
|
|
"prepack"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"author": "Facebook",
|
|
"jest": {
|
|
"preset": "react-native",
|
|
"roots": [
|
|
"<rootDir>/node_modules/react-native/",
|
|
"<rootDir>/lib/",
|
|
"<rootDir>/test/react/",
|
|
"<rootDir>/fb-www/"
|
|
],
|
|
"testEnvironment": "jsdom",
|
|
"testMatch": [
|
|
"**/test/react/*-test.js",
|
|
"**/fb-www/**/*-test.js"
|
|
]
|
|
}
|
|
}
|