Skip to content

Instantly share code, notes, and snippets.

@pawelgalazka
Last active April 21, 2017 22:14
Show Gist options
  • Save pawelgalazka/9b0c6703048007e5547977a9432b51e4 to your computer and use it in GitHub Desktop.
Save pawelgalazka/9b0c6703048007e5547977a9432b51e4 to your computer and use it in GitHub Desktop.
package.json pattern for react component
{
"name": "react-component",
"version": "1.0.0",
"main": "lib/index.js",
"scripts": {
"build": "babel src --out-dir lib --ignore test.js",
"lint": "eslint src",
"test": "npm run lint && npm run build && jest --env=jsdom",
"clean": "rm -rf node_modules"
},
"dependencies": {
"prop-types": "15.5.8"
},
"peerDependencies": {
"react": "^15.5.4"
},
"devDependencies": {
"babel-cli": "6.16.0",
"babel-core": "6.16.0",
"babel-eslint": "7.0.0",
"babel-preset-es2015": "6.16.0",
"babel-preset-react": "6.16.0",
"babel-preset-stage-2": "6.16.0",
"babel-register": "6.16.3",
"eslint": "3.6.1",
"eslint-config-standard": "6.2.0",
"eslint-config-standard-jsx": "3.2.0",
"eslint-config-standard-react": "4.2.0",
"eslint-plugin-promise": "2.0.1",
"eslint-plugin-react": "6.3.0",
"eslint-plugin-standard": "2.0.1",
"enzyme": "2.8.2",
"jest": "16.0.2",
"react": "15.5.4",
"react-dom": "15.5.4",
"react-test-renderer": "15.5.4"
},
"babel": {
"presets": [
"es2015",
"react",
"stage-2"
]
},
"eslintConfig": {
"extends": [
"eslint-config-standard",
"eslint-config-standard-react"
],
"parser": "babel-eslint"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment