-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpackage.json
178 lines (178 loc) · 5.85 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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
{
"name": "stupid-rc-starter",
"description": "Boilerplate for React.js components with storybook",
"author": "Stupid Sun",
"user": "stupidism",
"version": "1.0.1",
"scripts": {
"start": "start-storybook -p 6006 && opn localhost:6006",
"test": "jest",
"test:update": "npm run test -- -u",
"test:coverage": "jest --coverage",
"test:watch": "jest --watch",
"unit": "npm run test src",
"unit:watch": "npm run test:watch src",
"lint:js": "eslint . --ignore-path .gitignore --ignore-pattern dist --cache",
"lint:css": "stylelint \"src/**/*.{css,less,scss,sss}\" --allow-empty-input",
"lint:staged": "lint-staged",
"lint": "npm run lint:js && npm run lint:css",
"gh-pages": "build-storybook -o gh-pages",
"gh-pages:opn": "opn gh-pages/index.html",
"gh-pages:deploy": "gh-pages -d gh-pages",
"dist": "webpack --env dist",
"dist:min": "webpack --env distMin",
"dist:modules": "babel src -d dist-modules --ignore spec.js,test.js",
"dist:meta": "babel-node ./starter/scripts/copy-files",
"build": "npm run build:modules",
"build:single": "rimraf dist && npm run dist && npm run dist:min && npm run dist:meta dist",
"build:modules": "rimraf dist-modules && npm run dist:modules && npm run dist:meta dist-modules",
"publish:repo": "npm run build:single && npm run build:modules && npm run publish",
"publish:single": "npm run build:single && (cd dist && npm publish) && npm run postpublish",
"publish:modules": "npm run build:modules && (cd dist-modules && npm publish) && npm run postpublish",
"postpublish": "npm run gh-pages && npm run gh-pages:deploy",
"git:commitable": "git status | grep 'Changes to be committed:'",
"git:stash-pop": "git stash pop >> /dev/null",
"git:stash-rebase": "git read-tree stash && git stash drop",
"pre-commit:stash-unstaged": "git stash save -k --include-untracked 'unstaged-stash' >> /dev/null",
"pre-commit:lint-staged-or-pop": "(lint-staged && git add .) || (npm run git:stash-pop && exit 1)",
"pre-commit:commitable-or-pop": "npm run git:commitable || (npm run git:stash-pop && lint-staged && exit 1)",
"pre-commit:stash-linted": "git stash save 'linted-stash' >> /dev/null",
"pre-commit:pop-unstaged": "git stash pop stash@{1}",
"pre-commit:rebase-linted": "npm run git:stash-rebase",
"pre-commit:clean": "(lint-staged >> /dev/null) || exit 0"
},
"lint-staged": {
"*.{cmd,html,json,md,sh,txt,xml,yml}": [
"editorconfig-tools fix"
],
"*.{js,jsx}": [
"eslint --fix"
],
"*.{css,less,scss,sss}": [
"stylefmt",
"stylelint"
]
},
"main": "dist-modules",
"module": "src",
"jsnext:main": "src",
"dependencies": {
"lodash": "^4.17.5",
"prop-types": "^15.6.1",
"recompose": "^0.26.0"
},
"devDependencies": {
"@storybook/addon-actions": "^3.3.14",
"@storybook/addon-events": "^3.3.14",
"@storybook/addon-info": "^3.3.14",
"@storybook/addon-knobs": "^3.3.14",
"@storybook/addon-links": "^3.3.14",
"@storybook/addon-options": "^3.3.14",
"@storybook/addon-storyshots": "^3.3.14",
"@storybook/react": "^3.3.14",
"babel-cli": "^6.24.1",
"babel-core": "^6.24.1",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.1",
"babel-loader": "^7.1.3",
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-react-hmre": "^1.1.1",
"babel-preset-stage-2": "^6.24.1",
"chai": "^4.0.1",
"css-loader": "^0.28.10",
"editorconfig-tools": "^0.1.1",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme-to-json": "^3.3.1",
"eslint": "^4.18.1",
"eslint-config-airbnb": "^16.1.0",
"eslint-loader": "^2.0.0",
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.7.0",
"file-loader": "^1.1.10",
"fs-extra": "^5.0.0",
"gh-pages": "^1.1.0",
"git-prepush-hook": "^1.0.2",
"jest": "^22.4.2",
"json-loader": "^0.5.4",
"lint-staged": "^7.0.0",
"opn-cli": "^3.1.0",
"pre-commit": "^1.2.2",
"purecss": "^1.0.0",
"raw-loader": "^0.5.1",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-test-renderer": "^16.2.0",
"rimraf": "^2.6.2",
"style-loader": "^0.20.2",
"stylefmt": "^6.0.0",
"stylelint": "^9.1.1",
"stylelint-config-standard": "^18.1.0",
"sync-exec": "^0.6.2",
"system-bell-webpack-plugin": "^1.0.0",
"url-loader": "^0.6.2",
"webpack": "^3.11.0",
"webpack-merge": "^4.1.2"
},
"peerDependencies": {
"react": ">= 0.11.2 < 16.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/Stupidism/stupid-rc-starter"
},
"homepage": "https://stupidism.github.io/stupid-rc-starter/",
"bugs": {
"url": "https://github.com/Stupidism/stupid-rc-starter/issues"
},
"jest": {
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx}"
],
"moduleFileExtensions": [
"js",
"json",
"jsx"
],
"moduleDirectories": [
"node_modules",
"packages"
],
"moduleNameMapper": {
"\\.(jpg|jpeg|png|gif|css)$": "<rootDir>/__tests__/__mocks__/fileMock.js",
"\\.md$": "<rootDir>/__tests__/__mocks__/mdMock.js"
},
"setupFiles": [
"<rootDir>/__tests__/slim.js",
"<rootDir>/__tests__/setup.js"
],
"testMatch": [
"**/__tests__/**/(!\\.)*.js?(x)",
"**/?(*.)(spec|test).js?(x)"
]
},
"keywords": [
"react",
"reactjs",
"boilerplate",
"starter-kit",
"storybook"
],
"license": "MIT",
"pre-commit": [
"pre-commit:stash-unstaged",
"pre-commit:lint-staged-or-pop",
"pre-commit:commitable-or-pop",
"pre-commit:stash-linted",
"pre-commit:pop-unstaged",
"pre-commit:rebase-linted",
"pre-commit:clean"
],
"pre-push": [
"test"
]
}