github-desktop/package.json
Brendan Forster a5b8861cf9 extracting unit tests to a standalone script
This npm script has been unreadable for a long time, and
rather than putting in additional hacks I decided to extract
it to it's own file so that it can be annotated for future
visitors to this fresh hell that I find myself in.
2018-03-16 18:05:06 +11:00

139 lines
No EOL
5.4 KiB
JSON

{
"repository": {
"type": "git",
"url": "https://github.com/desktop/desktop.git"
},
"description": "GitHub Desktop build dependencies",
"scripts": {
"cli": "ts-node --require ./app/test/globals.ts --require ./app/src/cli/dev-commands-global.js app/src/cli/main.ts",
"test:integration": "cross-env TEST_ENV=1 ELECTRON_NO_ATTACH_CONSOLE=1 xvfb-maybe --auto-servernum -- mocha -t 30000 --require ts-node/register app/test/integration/*.ts",
"test:unit": "ts-node script/unit-tests.ts",
"test": "yarn test:unit && yarn test:integration",
"test:setup": "ts-node script/test-setup.ts",
"test:review": "ts-node script/test-review.ts",
"postinstall": "cd app && yarn install --force && cd .. && git submodule update --recursive --init && yarn compile:tslint",
"start": "cross-env NODE_ENV=development node script/start",
"start:prod": "cross-env NODE_ENV=production node script/start",
"debug": "cross-env NODE_ENV=development node script/debug",
"compile:dev": "cross-env NODE_ENV=development parallel-webpack --config app/webpack.development.js",
"compile:prod": "cross-env NODE_ENV=production parallel-webpack --config app/webpack.production.js",
"build:dev": "yarn compile:dev && cross-env NODE_ENV=development ts-node script/build.ts",
"build:prod": "yarn compile:prod && cross-env NODE_ENV=production ts-node script/build.ts",
"package": "ts-node -P script script/package.ts",
"generate-octicons": "ts-node script/generate-octicons.ts",
"clean:tslint": "rimraf tslint-rules/*.js",
"compile:tslint": "tsc -p tslint-rules",
"compile:script": "tsc -p script",
"lint": "yarn lint:src && yarn lint:prettier",
"lint:fix": "yarn lint:src:fix && yarn lint:prettier --fix",
"lint:prettier": "ts-node script/prettier.ts",
"lint:src": "yarn tslint && yarn eslint-check && yarn eslint",
"lint:src:fix": "yarn tslint --fix && yarn eslint --fix",
"tslint": "tslint ./{script,tslint-rules}/*.ts ./app/{src,typings,test}/**/*.{ts,tsx}",
"eslint": "ts-node script/eslint.ts",
"eslint-check": "eslint --print-config .eslintrc.* | eslint-config-prettier-check",
"publish": "node script/publish",
"clean-slate": "rimraf out node_modules app/node_modules && yarn",
"rebuild-hard:dev": "yarn clean-slate && yarn build:dev",
"rebuild-hard:prod": "yarn clean-slate && yarn build:prod",
"changelog": "ts-node script/changelog/index.ts",
"draft-release": "ts-node script/draft-release/index.ts"
},
"author": {
"name": "GitHub, Inc.",
"email": "opensource+desktop@github.com",
"url": "https://desktop.github.com/"
},
"license": "MIT",
"engines": {
"node": ">= 7",
"yarn": ">= 1.2.0"
},
"dependencies": {
"awesome-typescript-loader": "^3.4.0",
"aws-sdk": "^2.23.0",
"babel-core": "^6.24.1",
"babel-minify": "^0.2.0",
"babel-webpack-plugin": "^0.1.1",
"chai": "^4.1.1",
"chai-as-promised": "^7.1.1",
"chai-datetime": "^1.4.1",
"chalk": "^2.2.0",
"clean-webpack-plugin": "^0.1.16",
"cross-env": "^5.0.5",
"css-loader": "^0.28.5",
"eslint": "^4.15.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-prettier": "^2.4.0",
"eslint-plugin-react": "^7.5.1",
"eslint-plugin-typescript": "^0.8.1",
"express": "^4.15.0",
"extract-text-webpack-plugin": "^3.0.0",
"fs-extra": "^2.1.2",
"html-webpack-plugin": "^2.30.1",
"json-pretty": "^0.0.1",
"klaw-sync": "^3.0.0",
"legal-eagle": "0.15.0",
"mocha": "^4.0.1",
"node-native-loader": "^1.1.1",
"node-sass": "^4.7.2",
"octicons": "^7.0.1",
"parallel-webpack": "^2.1.0",
"prettier": "1.11.0",
"request": "^2.72.0",
"rimraf": "^2.5.2",
"sass-loader": "^6.0.6",
"semver": "^5.5.0",
"spectron": "^3.8.0",
"style-loader": "^0.19.1",
"to-camel-case": "^1.0.0",
"ts-node": "^3.2.0",
"tslint": "^5.8.0",
"tslint-config-prettier": "^1.6.0",
"tslint-microsoft-contrib": "^5.0.1",
"tslint-react": "~3.2.0",
"typescript": "2.7.2",
"typescript-eslint-parser": "^14.0.0",
"webpack": "^3.10.0",
"webpack-dev-middleware": "^2.0.3",
"webpack-hot-middleware": "^2.21.0",
"webpack-merge": "^4.1.0",
"xml2js": "^0.4.16",
"xvfb-maybe": "^0.2.1"
},
"devDependencies": {
"@types/byline": "^4.2.31",
"@types/chai": "^4.0.5",
"@types/chai-datetime": "^0.0.31",
"@types/classnames": "^2.2.2",
"@types/codemirror": "0.0.55",
"@types/electron-packager": "^10.1.0",
"@types/electron-winstaller": "^2.6.0",
"@types/event-kit": "^1.2.28",
"@types/file-url": "^2.0.0",
"@types/fs-extra": "2.1.0",
"@types/fuzzaldrin-plus": "^0.0.1",
"@types/keytar": "^4.0.0",
"@types/mocha": "^2.2.29",
"@types/mri": "^1.1.0",
"@types/node": "^7.0.18",
"@types/react": "^16.0.40",
"@types/react-dom": "^16.0.4",
"@types/react-transition-group": "1.1.1",
"@types/react-virtualized": "^9.7.12",
"@types/semver": "^5.5.0",
"@types/strip-ansi": "^3.0.0",
"@types/temp": "^0.8.29",
"@types/to-camel-case": "^1.0.0",
"@types/ua-parser-js": "^0.7.30",
"@types/uuid": "^3.4.0",
"@types/winston": "^2.2.0",
"@types/xml2js": "^0.4.0",
"electron": "1.8.3",
"electron-builder": "20.2.0",
"electron-mocha": "^5.0.0",
"electron-packager": "^11.0.0",
"electron-winstaller": "2.5.2"
}
}