115 lines
3.5 KiB
JSON
115 lines
3.5 KiB
JSON
{
|
|
"name": "nextjs-project",
|
|
"private": true,
|
|
"workspaces": [
|
|
"packages/*"
|
|
],
|
|
"scripts": {
|
|
"lerna": "lerna",
|
|
"dev": "lerna run build --stream --parallel",
|
|
"testonly": "jest",
|
|
"testall": "yarn check && yarn run testonly -- --ci --coverage --reporters=default --reporters=jest-junit --forceExit --runInBand",
|
|
"pretest": "yarn run lint",
|
|
"git-reset": "git reset --hard HEAD",
|
|
"git-clean": "git clean -d -x -e node_modules -e packages -f",
|
|
"test-take2": "yarn git-reset && yarn git-clean && yarn testall",
|
|
"test": "yarn run testall || yarn run test-take2",
|
|
"coveralls": "cat ./test/coverage/lcov.info | coveralls",
|
|
"lint": "lerna run typescript && standard && standard --parser typescript-eslint-parser --plugin typescript packages/**/*.ts",
|
|
"lint-fix": "standard --fix && standard --fix --parser typescript-eslint-parser --plugin typescript packages/**/*.ts",
|
|
"prettier": "prettier --write examples/**/*.js && yarn lint-fix",
|
|
"typescript": "lerna run typescript",
|
|
"prepublish": "lerna run prepublish",
|
|
"publish-canary": "lerna version prerelease --preid canary --force-publish && release --pre",
|
|
"publish-stable": "lerna version --force-publish",
|
|
"lint-staged": "lint-staged",
|
|
"next": "./packages/next/dist/bin/next"
|
|
},
|
|
"pre-commit": "lint-staged",
|
|
"lint-staged": {
|
|
"examples/**/*.js": [
|
|
"prettier --write",
|
|
"standard --fix",
|
|
"git add"
|
|
],
|
|
"*.js": [
|
|
"standard --fix",
|
|
"git add"
|
|
],
|
|
"*.{ts,tsx}": [
|
|
"tslint -c tslint.json --fix",
|
|
"git add"
|
|
],
|
|
"packages/**/bin/*": [
|
|
"standard --fix",
|
|
"git add"
|
|
]
|
|
},
|
|
"standard": {
|
|
"parser": "babel-eslint",
|
|
"ignore": [
|
|
"packages/**/*.ts",
|
|
"**/*.d.ts",
|
|
"**/node_modules/**",
|
|
"packages/next/build/webpack/plugins/terser-webpack-plugin/**",
|
|
"examples/with-ioc/**",
|
|
"examples/with-kea/**",
|
|
"examples/with-mobx/**",
|
|
"test/integration/client-navigation/pages/throw-undefined.js"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/plugin-proposal-object-rest-spread": "7.0.0",
|
|
"@babel/preset-flow": "7.0.0",
|
|
"@babel/preset-react": "7.0.0",
|
|
"@mdx-js/loader": "0.18.0",
|
|
"@types/string-hash": "1.1.1",
|
|
"@zeit/next-css": "1.0.2-canary.2",
|
|
"@zeit/next-sass": "1.0.2-canary.2",
|
|
"@zeit/next-typescript": "1.1.2-canary.0",
|
|
"abort-controller": "2.0.2",
|
|
"amphtml-validator": "1.0.23",
|
|
"babel-core": "7.0.0-bridge.0",
|
|
"babel-eslint": "9.0.0",
|
|
"babel-jest": "23.6.0",
|
|
"browserstack-local": "1.4.0",
|
|
"cheerio": "0.22.0",
|
|
"chromedriver": "2.46.0",
|
|
"clone": "2.1.1",
|
|
"coveralls": "3.0.2",
|
|
"cross-spawn": "6.0.5",
|
|
"eslint": "5.4.0",
|
|
"eslint-plugin-typescript": "0.14.0",
|
|
"express": "4.16.3",
|
|
"fs-extra": "7.0.1",
|
|
"get-port": "3.2.0",
|
|
"isomorphic-unfetch": "3.0.0",
|
|
"jest-cli": "23.6.0",
|
|
"jest-junit": "6.3.0",
|
|
"lerna": "^3.4.0",
|
|
"lint-staged": "4.2.3",
|
|
"mkdirp": "0.5.1",
|
|
"node-fetch": "2.3.0",
|
|
"node-notifier": "5.1.2",
|
|
"node-sass": "4.9.2",
|
|
"pre-commit": "1.2.2",
|
|
"prettier": "1.15.3",
|
|
"react": "16.8.6",
|
|
"react-dom": "16.8.6",
|
|
"release": "5.0.3",
|
|
"request-promise-core": "1.1.1",
|
|
"rimraf": "2.6.2",
|
|
"standard": "12.0.1",
|
|
"taskr": "1.1.0",
|
|
"tree-kill": "1.2.1",
|
|
"tslint": "5.12.0",
|
|
"typescript": "3.1.1",
|
|
"typescript-eslint-parser": "21.0.1",
|
|
"wait-port": "0.2.2",
|
|
"wd": "1.10.3",
|
|
"webpack-bundle-analyzer": "3.0.3"
|
|
},
|
|
"engines": {
|
|
"node": ">= 8.0.0"
|
|
}
|
|
}
|