/
package.json
146 lines (146 loc) · 4.35 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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
{
"name": "react-cs",
"version": "1.0.0",
"description": "Starter project for released React components",
"main": "dist/index.min.js",
"files": [
"dist"
],
"scripts": {
"install:example": "cd example/app && npm install",
"build": "npm run build:clean && cross-env NODE_ENV=production npm run build:dist && npm run build:flow && npm run build:minify",
"build:clean": "rimraf dist",
"build:dist": "babel -d dist src --ignore '**/__tests__/**'",
"build:flow": "flow-copy-source -v -i '**/__tests__/**' src dist",
"build:minify": "./node_modules/.bin/uglifyjs dist/index.js -o dist/index.min.js",
"lint": "npm run lint:js",
"lint:eslint": "eslint",
"lint:js": "npm run lint:eslint -- . ",
"lint:fix": "npm run lint:eslint -- --fix . ",
"lint:staged": "lint-staged && npm run flow",
"pretest": "npm run test:clean && npm run lint && npm run flow",
"test:clean": "rimraf ./coverage",
"test": "cross-env NODE_ENV=test jest --coverage",
"test:watch": "cross-env NODE_ENV=test jest --watchAll",
"flow": "flow status",
"changelog": "github_changelog_generator -u aurbano -p react-component-starter",
"start": "cd example/app && npm start",
"deploy": "cd example/app && npm run build && gh-pages -d build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/aurbano/react-component-starter.git"
},
"keywords": [
"react",
"reactjs",
"component",
"library"
],
"author": "Alejandro U. Alvarez",
"license": "MIT",
"bugs": {
"url": "https://github.com/aurbano/react-component-starter/issues"
},
"homepage": "https://github.com/aurbano/react-component-starter#readme",
"peerDependencies": {
"prop-types": "^15.0",
"react": "^^15.0.0-rc || ^15.0"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-plugin-dynamic-import-node": "^1.0.2",
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.1",
"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-plugin-transform-react-constant-elements": "^6.23.0",
"babel-plugin-transform-react-inline-elements": "^6.22.0",
"babel-plugin-transform-react-remove-prop-types": "^0.4.6",
"babel-polyfill": "^6.23.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-latest": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"codacy-coverage": "^2.0.2",
"coveralls": "^2.13.1",
"cross-env": "^5.0.1",
"enzyme": "^2.9.1",
"eslint": "^3.19.0",
"eslint-config-airbnb": "^15.0.2",
"eslint-plugin-flowtype": "^2.35.0",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jsx-a11y": "^6.0.2",
"eslint-plugin-react": "^7.1.0",
"flow-bin": "^0.49.1",
"flow-copy-source": "^1.2.0",
"flow-runtime": "^0.13.0",
"gh-pages": "^1.0.0",
"gulp": "^3.9.1",
"jasmine": "^2.6.0",
"jasmine-reporters": "^2.2.1",
"jest": "^20.0.4",
"jest-cli": "^20.0.4",
"lint-staged": "^4.0.1",
"lodash": "^4.17.4",
"pre-commit": "^1.2.2",
"prop-types": "^15.5.10",
"react": "^15.6.1",
"react-dom": "^15.6.1",
"react-test-renderer": "^15.6.1",
"rimraf": "^2.6.1",
"sinon": "^2.3.7",
"uglify-es": "^3.0.24"
},
"lint-staged": {
"*.js": "lint:eslint"
},
"pre-commit": "lint:staged",
"babel": {
"presets": [
[
"latest",
{
"es2015": {
"modules": false
}
}
],
"react",
"stage-0"
],
"env": {
"production": {
"plugins": [
"transform-es2015-modules-commonjs",
"transform-flow-strip-types",
"transform-react-remove-prop-types",
"transform-react-constant-elements",
"transform-react-inline-elements"
]
},
"test": {
"plugins": [
"transform-es2015-modules-commonjs",
"dynamic-import-node"
]
}
}
},
"jest": {
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
"moduleDirectories": [
"node_modules",
"src"
],
"unmockedModulePathPatterns": [
"./node_modules/react",
"./node_modules/react-addons-test-utils",
"./node_modules/jasmine-reporters"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/util/test-bundler.js",
"testRegex": ".*\\.test\\.js$"
}
}