forked from internetarchive/openlibrary
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
113 lines (113 loc) · 2.92 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
{
"name": "openlibrary",
"version": "1.0.0",
"repository": "github:internetarchive:openlibrary",
"license": "AGPL-3.0",
"scripts": {
"watch": "webpack --watch --mode=development --progress",
"build-assets:webpack": "NODE_ENV=production webpack --mode=production",
"build-assets": "make js && make css",
"check-bundles": "npm run build-assets && bundlesize",
"svg-min": "svgo --config .svgo.yml static/images/**/*.svg static/images/*.svg",
"lint:fix": "eslint --config .eslintrc.json . --fix && stylelint --syntax less --fix static/css/",
"lint:js": "eslint --config .eslintrc.json .",
"test:unit": "jest --testRegex tests/unit/**/test.*.js",
"test": "npm run check-bundles && stylelint --syntax less static/css/ && npm run lint:js && npm run test:unit"
},
"bundlesize": [
{
"path": "static/build/editions-table.*.js",
"maxSize": "16.8KB"
},
{
"path": "static/build/graphs.*.js",
"maxSize": "17.2KB"
},
{
"path": "static/build/markdown-editor.*.js",
"maxSize": "10.5KB"
},
{
"path": "static/build/carousel.*.js",
"maxSize": "12.2KB"
},
{
"path": "static/build/all.js",
"maxSize": "146.3KB"
},
{
"path": "static/build/page-admin.css",
"maxSize": "20KB"
},
{
"path": "static/build/page-book.css",
"maxSize": "8KB"
},
{
"path": "static/build/page-edit.css",
"maxSize": "20KB"
},
{
"path": "static/build/page-form.css",
"maxSize": "20KB"
},
{
"path": "static/build/page-home.css",
"maxSize": "6KB"
},
{
"path": "static/build/page-plain.css",
"maxSize": "20KB"
},
{
"path": "static/build/page-subject.css",
"maxSize": "8KB"
},
{
"path": "static/build/page-user.css",
"maxSize": "19.5KB"
}
],
"devDependencies": {
"@babel/core": "7.2.2",
"@babel/plugin-syntax-dynamic-import": "7.8.3",
"@babel/preset-env": "7.9.0",
"@babel/register": "7.9.0",
"babel-eslint": "10.1.0",
"babel-loader": "8.1.0",
"bundlesize": "0.18.0",
"css-loader": "2.1.1",
"eslint": "6.8.0",
"jest": "25.1.0",
"jquery": "1.11.0",
"jquery-migrate": "1.2.1",
"jquery-ui": "1.12.1",
"jquery-validation": "1.19.1",
"less": "3.11.1",
"less-loader": "5.0.0",
"less-plugin-clean-css": "1.5.1",
"promise-polyfill": "8.1.3",
"sinon": "9.0.1",
"slick-carousel": "1.6.0",
"style-loader": "1.1.2",
"stylelint": "13.2.1",
"stylelint-declaration-use-variable": "1.7.2",
"svgo": "1.3.2",
"webpack": "4.41.5",
"webpack-cli": "3.3.11"
},
"jest": {
"collectCoverageFrom": [
"openlibrary/plugins/openlibrary/js/**/*.js"
],
"coverageThreshold": {
"global": {
"branches": 1,
"functions": 6,
"lines": 7,
"statements": 3
}
},
"collectCoverage": true
}
}