Skip to content

Instantly share code, notes, and snippets.

@az1979
Created January 5, 2018 15:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save az1979/058932b0819a90e626e8316c3092e9d0 to your computer and use it in GitHub Desktop.
Save az1979/058932b0819a90e626e8316c3092e9d0 to your computer and use it in GitHub Desktop.
Reactが動作するサンプルプロジェクトのpackage.json
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "entry.jsx",
"scripts": {
"build": "webpack --display-error-details",
"watch": "webpack --watch"
},
"author": "",
"license": "ISC",
"babel": {
"presets": [
"react",
"env"
]
},
"eslintConfig": {
"env": {
"browser": true,
"commonjs": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module",
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true
}
},
"extends": "airbnb",
"rules": {
"comma-dangle": 0,
"function-paren-newline": 0
}
},
"dependencies": {
"react": "^16.2.0",
"react-dom": "^16.2.0"
},
"devDependencies": {
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.24.1",
"eslint": "^4.14.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.5.1",
"webpack": "^3.10.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment