Closed dangron closed 4 years ago
package.json:
{
"name": "INJECTED PACKAGE NAME",
"version": "2.0.0",
"description": "INJECTED DESCRIPTION",
"main": "index.js",
"scripts": {
"test": "./node_modules/.bin/jest",
"dev": "webpack-dashboard -- webpack-dev-server --config ./webpack.dev.config.js",
"build": "webpack --config ./webpack.prod.config.js && ./node_modules/.bin/jest",
},
"private": true,
"author": "INJECTED AUTHOR",
"license": "UNLICENSED",
"devDependencies": {
"... BABEL THINGS ...": "HERE",
"jest": "^20",
"react": "^15",
"react-dom": "^15",
"... REACT THINGS...": "HERE"
},
"dependencies": {
"babel-jest": "^17.0.2",
"es6-promise": "^3.3.1",
"isomorphic-fetch": "^2.2.1",
"lodash": "^4.17.2",
"prop-types": "^15.5.10",
"qs": "^6.2.1",
"react-redux": "^4.4.5",
"react-router": "^2.8.1",
"react-router-component": "^0.36.0",
"react-test-renderer": "^15.5.4",
"redux-thunk": "^2.1.0"
}
}
Each react app we create should follow this structure: