-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage.json
134 lines (134 loc) · 4.57 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
{
"name": "fe-common-library",
"version": "0.0.5",
"description": "fe-common-library",
"main": "dest/lib.js",
"scripts": {
"build": "yarn run build:dest",
"build:common": "webpack --env build",
"build:dest": "webpack --verbose --colors --display-error-details --config webpack.dest.config.js --bail",
"clean": "rimraf lib",
"dev": "webpack --progress --colors --watch --env dev",
"eslint:ci": "eslint -f tap src test > eslint.tap || ( echo 'eslint error' && exit 1 )",
"lint-pass": "echo '\\033[4;32m♡' Awsome!!! you are great to commit ♡' \\033[0m'",
"lint-staged": "lint-staged",
"merge-taps": "cat eslint.tap sass-lint.tap | tap-merge > lint-all.tap",
"sass-lint": "sass-lint -v",
"sass-lint:ci": "sass-lint -v -f tap > sass-lint.tap || ( echo 'sass-lint error' && exit 1 )",
"test": "TZ=Asia/Taipei jest",
"test:ci": "unset ERRORR; yarn run eslint:ci || ERRORR=1; yarn run sass-lint:ci || ERRORR=1; CI=true yarn run test -- --coverage || ERRORR=1; yarn run merge-taps; if [ $ERRORR ]; then exit 1; fi"
},
"lint-staged": {
"*.js": [
"prettier --single-quote --print-width 120 --trailing-comma es5 --write",
"git add",
"jest --findRelatedTests",
"eslint --ignore-pattern"
],
"*.scss": [
"sass-lint --max-warnings 0 -v"
]
},
"pre-commit": [
"lint-staged",
"lint-pass"
],
"repository": {
"type": "git",
"url": "git+ssh://[email protected]/cnyesrd/fe-common-library.git"
},
"devDependencies": {
"babel-cli": "^6.24.1",
"babel-core": "^6.25.0",
"babel-eslint": "^7.2.3",
"babel-jest": "^21.2.0",
"babel-loader": "^7.1.1",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-plugin-react-transform": "^3.0.0",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-es2015": "^6.24.1",
"babel-preset-react": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"base64-inline-loader": "^1.1.0",
"classnames": "^2.2.5",
"clean-webpack-plugin": "^0.1.17",
"css-loader": "^0.28.7",
"enzyme": "^3.1.0",
"enzyme-adapter-react-15": "^1.0.1",
"enzyme-to-json": "^3.2.2",
"eslint": "^3.19.0",
"eslint-config-airbnb": "~15.0.1",
"eslint-config-airbnb-base": "^11.3.1",
"eslint-config-cnyes": "https://bitbucket.org/cnyesrd/eslint-config-cnyes.git#2e6cc9206644",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jsx-a11y": "^5.0.1",
"eslint-plugin-react": "^7.0.1",
"eslint-plugin-security": "^1.4.0",
"extract-text-webpack-plugin": "^3.0.1",
"file-loader": "^1.1.5",
"identity-obj-proxy": "^3.0.0",
"idx": "^2.1.0",
"jasmine-reporters": "^2.2.1",
"jest": "^21.2.0",
"json-loader": "^0.5.7",
"lint-staged": "^4.0.2",
"node-sass": "^4.5.3",
"postcss-loader": "^2.0.7",
"pre-commit": "^1.2.2",
"prettier": "^1.7.4",
"raf": "^3.4.0",
"react": "15.6.1",
"react-dom": "15.6.1",
"react-test-renderer": "^15.6.1",
"react-transform-catch-errors": "^1.0.2",
"redbox-react": "^1.5.0",
"sass-lint": "^1.12.0",
"sass-loader": "^6.0.6",
"static-site-generator-webpack-plugin": "^3.4.1",
"strip-loader": "^0.1.2",
"style-loader": "^0.19.0",
"tap-merge": "^0.3.1",
"webpack": "^3.4.1",
"webpack-isomorphic-tools": "^3.0.5"
},
"peerDependencies": {
"classnames": "^2.2.3",
"react": "^0.14.0 || ^15.0.0",
"react-dom": "^0.14.0 || ^15.0.0"
},
"author": "Ichi Dong",
"license": "ISC",
"homepage": "https://bitbucket.org/cnyesrd/fe-common-library/overview",
"jest": {
"collectCoverageFrom": [
"src/**/*.js",
"!**/__mocks__/**",
"!**/__tests__/**"
],
"setupFiles": [
"<rootDir>/config/jest/setup.js"
],
"setupTestFrameworkScriptFile": "<rootDir>/config/jest/setupTestFramework.js",
"testPathIgnorePatterns": [
"<rootDir>[/\\\\](build|docs|node_modules)[/\\\\]"
],
"testEnvironment": "jsdom",
"testURL": "http://localhost",
"transform": {
"^.+\\.(js|jsx)$": "<rootDir>/config/jest/transform.js",
"^.+\\.(scss|css)$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|css|scss|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(js|jsx)$"
],
"moduleNameMapper": {
"^react-native$": "react-native-web"
},
"testRegex": "/__tests__/.*\\.(test|spec)\\.js$"
}
}