/
package.json
140 lines (140 loc) · 4.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
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
{
"name": "cozy-bar",
"version": "0.0.0-development",
"description": "cozy-bar.js library, a small lib provided by cozy-stack to inject the Cozy-bar component into each app",
"main": "dist/cozy-bar.js",
"author": "Cozy Cloud <contact@cozycloud.cc> (https://cozy.io/)",
"contributors": ["m4dz (https://m4dz.net)", "CPatchane"],
"repository": {
"type": "git",
"url": "https://github.com/cozy/cozy-bar.git"
},
"homepage": "https://github.com/cozy/cozy-bar",
"bugs": {
"url": "https://github.com/cozy/cozy-bar/issues"
},
"license": "MIT",
"scripts": {
"prepublishOnly": "yarn build",
"build": "npm-run-all --parallel 'build:*' 'build:*:*'",
"webpack": "webpack --config ./config/webpack.js",
"build:browser": "yarn run webpack",
"build:mobile": "yarn run webpack --env.target=mobile",
"build:browser:min": "yarn run webpack --env.production",
"build:mobile:min": "yarn run webpack --env.production --env.target=mobile",
"watch": "yarn run webpack --watch --display-chunks",
"watch:mobile": "yarn run watch --env.target=mobile",
"clean": "rm -rf ./dist/*",
"lint": "eslint 'config/**/*.{js,jsx}, src/**/*.{js,jsx}'",
"prebuild": "npm-run-all lint clean tx",
"prewatch": "npm-run-all clean",
"tx": "tx pull --all || true",
"postbuild": "yarn shasum",
"shasum": "shasum -a 256 dist/cozy-bar.min.js && shasum -a 256 dist/cozy-bar.min.css",
"test": "jest --verbose --coverage",
"posttest": "bundlesize",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},
"devDependencies": {
"autoprefixer": "9.4.2",
"babel-jest": "23.6.0",
"babel-loader": "7.1.5",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.7.0",
"babel-preset-react": "6.24.1",
"babel-runtime": "6.26.0",
"bundlesize": "0.17.0",
"cozy-ui": "17.4.9",
"css-loader": "1.0.1",
"css-mqpacker": "7.0.0",
"csswring": "7.0.0",
"deep-equal": "1.0.1",
"enzyme": "3.2.0",
"enzyme-adapter-react-16": "1.1.1",
"eslint": "4.19.1",
"eslint-config-cozy-app": "1.1.5",
"eslint-plugin-prettier": "3.0.1",
"eslint-plugin-react": "7.12.2",
"file-loader": "2.0.0",
"identity-obj-proxy": "3.0.0",
"jest": "23.6.0",
"json-loader": "0.5.7",
"mini-css-extract-plugin": "0.5.0",
"my-react": "npm:react@16.6.0",
"my-react-dom": "npm:react-dom@16.6.0",
"npm-run-all": "4.1.5",
"postcss": "7.0.7",
"postcss-css-variables": "0.11.0",
"postcss-discard-duplicates": "4.0.2",
"postcss-discard-empty": "4.0.1",
"postcss-import": "12.0.1",
"postcss-loader": "3.0.0",
"redux-logger": "3.0.6",
"semantic-release": "15.13.2",
"style-loader": "0.23.1",
"stylus": "0.54.5",
"stylus-loader": "3.0.2",
"svg-sprite-loader": "4.1.3",
"terser-webpack-plugin": "1.1.0",
"travis-deploy-once": "5.0.11",
"url-loader": "1.1.2",
"webpack": "4.28.3",
"webpack-bundle-analyzer": "3.0.3",
"webpack-cli": "3.1.2",
"webpack-merge": "4.1.5",
"yaml-jest": "1.0.5",
"yaml-loader": "0.5.0"
},
"dependencies": {
"@babel/core": "7.2.0",
"babel-core": "7.0.0-bridge.0",
"babel-preset-cozy-app": "1.2.5",
"core-js": "2.6.0",
"cozy-client-js": "0.14.2",
"cozy-device-helper": "1.5.0",
"cozy-realtime": "1.2.5",
"hammerjs": "2.0.8",
"lerna-changelog": "0.8.2",
"localforage": "1.7.3",
"lodash.debounce": "4.0.8",
"lodash.unionwith": "4.6.0",
"node-polyglot": "2.3.0",
"piwik-react-router": "0.12.1",
"react-autosuggest": "9.4.2",
"react-redux": "5.1.1",
"redux": "3.7.2",
"redux-persist": "5.10.0",
"redux-thunk": "2.3.0"
},
"bundlesize": [
{
"path": "./dist/cozy-bar.min.js",
"maxSize": "170 KB"
}
],
"jest": {
"moduleFileExtensions": ["js", "jsx", "json", "styl", "yaml"],
"setupFiles": ["<rootDir>/test/jestLib/setup.js"],
"moduleDirectories": ["node_modules", "src"],
"transform": {
"\\.yaml$": "yaml-jest",
"\\.(js|jsx)$": "babel-jest"
},
"moduleNameMapper": {
"^config/(.*)": "<rootDir>/src/config/$1",
"^react$": "<rootDir>/config/aliases/globalReact",
"^(react-dom|react-dom/(.*))$": "<rootDir>/config/aliases/globalReactDOM",
"\\.(png|gif|jpe?g|svg)$": "<rootDir>/test/__mocks__/fileMock.js",
"styles": "identity-obj-proxy"
},
"transformIgnorePatterns": ["node_modules/(?!cozy-ui)"],
"globals": {
"__ALLOW_HTTP__": false,
"__TARGET__": "browser",
"__SENTRY_TOKEN__": "token",
"__DEVELOPMENT__": false,
"__VERSION__": "4.5.0"
}
}
}