A
A
Andrey Okhotnikov2018-12-05 10:31:59
JavaScript
Andrey Okhotnikov, 2018-12-05 10:31:59

Which of the dependencies can be moved to devdependencies?

React. You need to move dependencies from dependencies to devdependencies (package.json). Tell me which to move and which to leave?

"dependencies": {
    "chalk": "1.1.3",
    "classnames": "^2.2.6",
    "dotenv": "4.0.0",
    "dotenv-expand": "4.2.0",
    "file-loader": "1.1.5",
    "fs-extra": "3.0.1",
    "history": "^4.7.2",
    "jest": "20.0.4",
    "npm": "^6.4.1",
    "object-assign": "4.1.1",
    "promise": "8.0.1",
    "raf": "3.4.0",
    "react": "^16.4.2",
    "react-dom": "^16.4.2",
    "react-helmet": "^5.2.0",
    "react-redux": "^5.0.7",
    "react-router": "^4.3.1",
    "react-router-dom": "^4.3.1",
    "react-router-redux": "^4.0.8",
    "redux": "^4.0.0",
    "redux-actions": "^2.6.1",
    "redux-thunk": "^2.3.0"
  },

"devDependencies": {
    "autoprefixer": "7.1.6",
    "babel-eslint": "^7.2.3",
    "babel-loader": "^7.1.2",
    "babel-core": "6.26.0",
    "babel-jest": "20.0.3",
    "babel-preset-react-app": "^3.1.2",
    "babel-runtime": "6.26.0",
    "css-loader": "0.28.7",
    "case-sensitive-paths-webpack-plugin": "2.1.1",
    "extract-text-webpack-plugin": "3.0.2",
    "eslint": "^4.10.0",
    "eslint-config-airbnb": "^17.1.0",
    "eslint-loader": "^1.9.0",
    "eslint-plugin-react": "^7.4.0",
    "redux-logger": "^3.0.6",
    "webpack": "3.8.1",
    "webpack-dev-server": "2.11.3",
    "webpack-manifest-plugin": "1.3.2",
    "react-dev-utils": "^5.0.2",
    "eslint-config-react-app": "^2.1.0",
    "eslint-plugin-flowtype": "2.39.1",
    "eslint-plugin-import": "2.8.0",
    "eslint-plugin-jsx-a11y": "5.1.1",
    "postcss-flexbugs-fixes": "3.2.0",
    "postcss-loader": "2.0.8",
    "resolve": "1.6.0",
    "style-loader": "0.19.0",
    "sw-precache-webpack-plugin": "0.11.4",
    "url-loader": "0.6.2",
    "html-webpack-plugin": "2.29.0",
    "whatwg-fetch": "2.0.3"
  }

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lnked, 2018-12-07
@lnked

dotenv
dotenv-expand
file-loader
fs-extra
jest
npm
chalk

and I think it's better to move whatwg-fetch to dependencies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question