mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
14c86bef1d
* Implement a very simple prefetching solution. * Remove next-prefetcher. * Require 'whatwg-fetch' only in the client. * Use xhr in the code. * Use a simple fetching solution. * Fix 404 and xhr status issue. * Move the prefetching implementation to next/router. * Add deprecated warnning for next/prefetch * Run only 2 parellel prefetching request at a time. * Change xhr to jsonPageRes. * Improve the prefetching logic. * Add unit tests covering the Router.prefetch() * Update examples to use the new syntax. * Update docs. * Use execOnce() to manage warn printing. * Remove prefetcher building from the flyfile.js Because, we no longer use it.
128 lines
3.6 KiB
JSON
128 lines
3.6 KiB
JSON
{
|
|
"name": "next",
|
|
"version": "2.0.0-beta.26",
|
|
"description": "Minimalistic framework for server-rendered React applications",
|
|
"main": "./dist/server/next.js",
|
|
"license": "MIT",
|
|
"repository": "zeit/next.js",
|
|
"publishConfig": {
|
|
"tag": "beta"
|
|
},
|
|
"files": [
|
|
"dist",
|
|
"babel.js",
|
|
"link.js",
|
|
"css.js",
|
|
"head.js",
|
|
"document.js",
|
|
"prefetch.js",
|
|
"router.js",
|
|
"error.js"
|
|
],
|
|
"bin": {
|
|
"next": "./dist/bin/next"
|
|
},
|
|
"scripts": {
|
|
"build": "fly",
|
|
"release": "fly release",
|
|
"pretestonly": "fly pretest",
|
|
"testonly": "cross-env NODE_PATH=test/lib jest \\.test.js",
|
|
"posttestonly": "fly posttest",
|
|
"pretest": "npm run lint && cross-env NODE_ENV=test npm run release",
|
|
"test": "npm run testonly -- --coverage --forceExit",
|
|
"coveralls": "nyc --instrument=false --source-map=false report --temp-directory=./coverage --reporter=text-lcov | coveralls",
|
|
"lint": "standard 'bin/*' 'client/**/*.js' 'examples/**/*.js' 'lib/**/*.js' 'pages/**/*.js' 'server/**/*.js' 'test/**/*.js'",
|
|
"prepublish": "npm run test && npm run release",
|
|
"precommit": "npm run lint"
|
|
},
|
|
"standard": {
|
|
"parser": "babel-eslint",
|
|
"ignore": [
|
|
"**/node_modules/**"
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"accepts": "1.3.3",
|
|
"ansi-html": "0.0.7",
|
|
"babel-core": "6.23.1",
|
|
"babel-generator": "6.22.0",
|
|
"babel-loader": "6.3.0",
|
|
"babel-plugin-module-resolver": "2.5.0",
|
|
"babel-plugin-react-require": "^3.0.0",
|
|
"babel-plugin-transform-class-properties": "6.22.0",
|
|
"babel-plugin-transform-es2015-modules-commonjs": "6.22.0",
|
|
"babel-plugin-transform-object-rest-spread": "6.22.0",
|
|
"babel-plugin-transform-react-jsx-source": "^6.22.0",
|
|
"babel-plugin-transform-react-remove-prop-types": "^0.3.2",
|
|
"babel-plugin-transform-runtime": "6.22.0",
|
|
"babel-preset-latest": "6.22.0",
|
|
"babel-preset-react": "6.23.0",
|
|
"babel-runtime": "6.23.0",
|
|
"case-sensitive-paths-webpack-plugin": "1.1.4",
|
|
"cross-spawn": "5.0.1",
|
|
"del": "2.2.2",
|
|
"friendly-errors-webpack-plugin": "1.1.3",
|
|
"glamor": "2.20.23",
|
|
"glob-promise": "3.1.0",
|
|
"htmlescape": "1.1.1",
|
|
"http-status": "1.0.1",
|
|
"is-windows-bash": "1.0.3",
|
|
"json-loader": "0.5.4",
|
|
"loader-utils": "0.2.16",
|
|
"mime-types": "2.1.14",
|
|
"minimist": "1.2.0",
|
|
"mkdirp-then": "1.2.0",
|
|
"mz": "2.6.0",
|
|
"path-match": "1.2.4",
|
|
"pkg-up": "1.0.0",
|
|
"react-hot-loader": "3.0.0-beta.6",
|
|
"send": "0.14.1",
|
|
"source-map-support": "0.4.11",
|
|
"strip-ansi": "3.0.1",
|
|
"styled-jsx": "0.5.5",
|
|
"url": "0.11.0",
|
|
"uuid": "3.0.1",
|
|
"webpack": "2.2.1",
|
|
"webpack-dev-middleware": "1.10.0",
|
|
"webpack-hot-middleware": "2.16.1",
|
|
"whatwg-fetch": "^2.0.2",
|
|
"write-file-webpack-plugin": "3.4.2"
|
|
},
|
|
"devDependencies": {
|
|
"babel-eslint": "7.1.1",
|
|
"babel-jest": "^18.0.0",
|
|
"babel-plugin-istanbul": "^3.0.0",
|
|
"babel-plugin-transform-remove-strict-mode": "0.0.2",
|
|
"babel-preset-env": "1.1.8",
|
|
"benchmark": "2.1.3",
|
|
"cheerio": "^0.22.0",
|
|
"chromedriver": "^2.26.1",
|
|
"coveralls": "2.11.16",
|
|
"cross-env": "^3.1.4",
|
|
"fly": "^2.0.4",
|
|
"fly-babel": "^2.1.1",
|
|
"fly-clear": "^1.0.1",
|
|
"fly-esnext": "^2.0.0",
|
|
"fly-watch": "^1.1.1",
|
|
"husky": "0.13.1",
|
|
"jest-cli": "^18.0.0",
|
|
"node-fetch": "^1.6.3",
|
|
"node-notifier": "^5.0.2",
|
|
"nyc": "^10.0.0",
|
|
"react": "15.4.2",
|
|
"react-dom": "15.4.2",
|
|
"standard": "8.6.0",
|
|
"wd": "^1.1.3"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^15.4.2",
|
|
"react-dom": "^15.4.2"
|
|
},
|
|
"jest": {
|
|
"testEnvironment": "node",
|
|
"testPathDirs": [
|
|
"test/"
|
|
]
|
|
}
|
|
}
|