-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
94 lines (94 loc) · 2.59 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
{
"name": "react-npm-package-template",
"version": "1.0.0",
"description": "The template that will help you quickly start developing your NPM package for React",
"main": "./dist/index.js",
"scripts": {
"build": "webpack --mode production",
"lint": "eslint --report-unused-disable-directives src",
"fix": "eslint --fix --report-unused-disable-directives src",
"test": "jest --coverage",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"setup": "cp ./.github/hooks/pre-commit ./.git/hooks/pre-commit && chmod +x ./.git/hooks/pre-commit"
},
"repository": {
"type": "git",
"url": "https://github.com/awibox/react-npm-package-template.git"
},
"keywords": [
"react-component",
"npm-package",
"template",
"css-modules",
"jest",
"eslint",
"travis-ci",
"coveralls",
"webpack",
"scss"
],
"author": "awibox",
"license": "MIT",
"bugs": {
"url": "https://github.com/awibox/react-npm-package-template/issues"
},
"homepage": "https://github.com/awibox/react-npm-package-template#readme",
"devDependencies": {
"@babel/core": "^7.8.7",
"@babel/plugin-proposal-class-properties": "^7.8.3",
"@babel/preset-env": "^7.8.7",
"@babel/preset-react": "^7.8.3",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^10.1.0",
"babel-loader": "8.1.0",
"coveralls": "^3.0.9",
"css-loader": "^5.1.0",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.2",
"enzyme-to-json": "^3.4.3",
"eslint": "^6.8.0",
"eslint-config-airbnb-base": "^14.0.0",
"eslint-plugin-import": "^2.20.0",
"eslint-plugin-react": "^7.17.0",
"jest": "^26.0.1",
"jest-css-modules-transform": "^4.0.0",
"jest-enzyme": "^7.1.2",
"mini-css-extract-plugin": "^0.9.0",
"node-sass": "^4.13.1",
"react": "^16.13.0",
"react-dom": "^16.13.0",
"sass-loader": "^8.0.2",
"webpack": "^4.42.0",
"webpack-cli": "^3.3.11"
},
"dependencies": {
"prop-types": "^15.7.2"
},
"peerDependencies": {
"react": "^16.13.0",
"react-dom": "^16.13.0"
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx,mjs}",
"!src/index.js"
],
"testEnvironment": "node",
"moduleFileExtensions": [
"js",
"jsx"
],
"moduleDirectories": [
"node_modules",
"src"
],
"setupFilesAfterEnv": [
"<rootDir>/node_modules/jest-enzyme/lib/index.js",
"<rootDir>/jest-setup-tests.js"
],
"transform": {
"^.+\\.js$": "babel-jest",
".+\\.(css|styl|less|sass|scss)$": "<rootDir>/node_modules/jest-css-modules-transform"
}
}
}