|
| 1 | +{ |
| 2 | + "name": "react-npm-package-template", |
| 3 | + "version": "1.0.0", |
| 4 | + "description": "", |
| 5 | + "main": "./dist/index.js", |
| 6 | + "scripts": { |
| 7 | + "build": "webpack --mode production", |
| 8 | + "lint": "eslint --report-unused-disable-directives src", |
| 9 | + "fix": "eslint --fix --report-unused-disable-directives src", |
| 10 | + "test": "jest", |
| 11 | + "coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls" |
| 12 | + }, |
| 13 | + "repository": { |
| 14 | + "type": "git", |
| 15 | + "url": "https://github.com/awibox/react-npm-package-template.git" |
| 16 | + }, |
| 17 | + "keywords": [ |
| 18 | + "timeline", |
| 19 | + |
| 20 | + "react-component", |
| 21 | + "npm-package" |
| 22 | + ], |
| 23 | + "author": "awibox", |
| 24 | + "license": "MIT", |
| 25 | + "bugs": { |
| 26 | + "url": "https://github.com/awibox/react-npm-package-template/issues" |
| 27 | + }, |
| 28 | + "homepage": "https://github.com/awibox/react-npm-package-template#readme", |
| 29 | + "devDependencies": { |
| 30 | + "@babel/core": "^7.8.3", |
| 31 | + "@babel/plugin-proposal-class-properties": "^7.8.3", |
| 32 | + "@babel/preset-env": "^7.8.3", |
| 33 | + "@babel/preset-react": "^7.8.3", |
| 34 | + "babel-core": "^7.0.0-bridge.0", |
| 35 | + "babel-eslint": "^10.0.3", |
| 36 | + "babel-loader": "8.0.6", |
| 37 | + "coveralls": "^3.0.9", |
| 38 | + "css-loader": "^3.4.2", |
| 39 | + "enzyme": "^3.11.0", |
| 40 | + "enzyme-adapter-react-16": "^1.15.2", |
| 41 | + "enzyme-to-json": "^3.4.3", |
| 42 | + "eslint": "^6.8.0", |
| 43 | + "eslint-config-airbnb-base": "^14.0.0", |
| 44 | + "eslint-plugin-import": "^2.20.0", |
| 45 | + "eslint-plugin-react": "^7.17.0", |
| 46 | + "jest": "^24.9.0", |
| 47 | + "jest-css-modules-transform": "^3.1.0", |
| 48 | + "jest-enzyme": "^7.1.2", |
| 49 | + "mini-css-extract-plugin": "^0.9.0", |
| 50 | + "node-sass": "^4.13.1", |
| 51 | + "sass-loader": "^8.0.2", |
| 52 | + "webpack": "^4.41.4", |
| 53 | + "webpack-cli": "^3.3.10" |
| 54 | + }, |
| 55 | + "dependencies": { |
| 56 | + "prop-types": "^15.7.2", |
| 57 | + "react": "^16.12.0", |
| 58 | + "react-dom": "^16.12.0" |
| 59 | + }, |
| 60 | + "jest": { |
| 61 | + "collectCoverageFrom": ["src/**/*.{js,jsx,mjs}", "!src/index.js"], |
| 62 | + "testEnvironment": "node", |
| 63 | + "moduleFileExtensions": [ |
| 64 | + "js", |
| 65 | + "jsx" |
| 66 | + ], |
| 67 | + "moduleDirectories": [ |
| 68 | + "node_modules", |
| 69 | + "src" |
| 70 | + ], |
| 71 | + "setupFilesAfterEnv": [ |
| 72 | + "<rootDir>/node_modules/jest-enzyme/lib/index.js", |
| 73 | + "<rootDir>/jest-setup-tests.js" |
| 74 | + ], |
| 75 | + "transform": { |
| 76 | + "^.+\\.js$": "babel-jest", |
| 77 | + ".+\\.(css|styl|less|sass|scss)$": "<rootDir>/node_modules/jest-css-modules-transform" |
| 78 | + } |
| 79 | + } |
| 80 | +} |
0 commit comments