-
Notifications
You must be signed in to change notification settings - Fork 3
/
package.json
150 lines (150 loc) · 4.86 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
{
"name": "collectionsonline",
"version": "1.0.1",
"description": "Science Museum Group : Collections Online",
"main": "index.js",
"directories": {
"test": "test"
},
"dependencies": {
"@elastic/elasticsearch": "^7.17.13",
"@hapi/boom": "^10.0.1",
"@hapi/catbox": "^10.2.1",
"@hapi/catbox-redis": "^5.0.5",
"@hapi/h2o2": "^10.0.1",
"@hapi/hapi": "^21.3.2",
"@hapi/inert": "^7.1.0",
"@hapi/vision": "^7.0.1",
"awesomplete": "git+https://github.com/TheScienceMuseum/awesomplete.git",
"catbox": "^10.0.6",
"catbox-redis": "^4.2.4",
"clipboard": "^2.0.11",
"fetch-mock": "^10.0.7",
"fetch-ponyfill": "^7.1.0",
"flickity": "^2.3.0",
"flickity-imagesloaded": "^2.0.0",
"format-number": "^3.0.0",
"foundation-sites": "^6.8.1",
"handlebars": "^4.7.8",
"hapi-auth-jwt2": "^10.4.0",
"joi": "^17.9.1",
"json-beautify": "^1.1.1",
"jsonwebtoken": "^9.0.2",
"lodash": "^4.17.21",
"openseadragon": "2.4.2",
"page": "^1.11.6",
"plyr": "^3.7.8",
"promise": "^8.3.0",
"rc": "^1.2.8",
"slugg": "^1.2.1",
"smg-web-design-system": "^0.11.4",
"snackbarlightjs": "^1.1.2",
"wikibase-sdk": "^8.1.1",
"wikijs": "^6.4.1"
},
"devDependencies": {
"@babel/core": "^7.23.5",
"@babel/plugin-transform-object-assign": "^7.23.3",
"@babel/preset-env": "^7.23.5",
"async": "^3.2.5",
"autoprefixer": "^10.4.16",
"babelify": "^10.0.0",
"brfs": "^1.6.1",
"browserify": "^17.0.0",
"chalk": "^5.3.0",
"chromedriver": "^126.0.4",
"cssnano": "^6.0.1",
"exorcist": "^2.0.0",
"faucet": "0.0.4",
"nightwatch": "^3.3.0",
"nodemon": "^3.0.2",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"postcss": "^8.4.32",
"postcss-cli": "^10.1.0",
"pre-commit": "^1.2.2",
"sass": "^1.77.4",
"selenium-download": "^2.0.16",
"selenium-server": "^3.141.59",
"selenium-standalone": "^9.3.0",
"selenium-webdriver": "^4.16.0",
"semistandard": "^17.0.0",
"sinon": "^17.0.1",
"svg-sprite": "^2.0.4",
"tape": "^5.7.2",
"uglify-js": "^3.17.4",
"watchify": "^4.0.0"
},
"scripts": {
"index-update": "run-s index-update:*",
"index-update:galleries": "node scripts/get-galleries.mjs",
"postinstall": "run-s build minify && node nightwatch.conf.js",
"start": "node bin/server.mjs",
"test": "run-s test:*",
"test:lint": "semistandard",
"test:unit": "run-s test:unit:*",
"test:unit:sync": "node test/fixtures/copy-data.js",
"test:unit:tape": "tape 'test/**/*.test.js' | faucet",
"test:endtoend": "nightwatch --retries 3 --env ${NW_ENV}",
"build": "run-p build:*",
"build:js": "browserify client/main.js --debug | exorcist public/bundle.js.map > public/bundle.js",
"build:css": "run-s build:css:*",
"build:css:sass": "sass --load-path=node_modules --load-path=node_modules/smg-web-design-system/node_modules client/styles/main.scss public/bundle.css",
"build:css:prefix": "postcss public/bundle.css -r -u autoprefixer",
"build:img": "cp -R client/icons/* public/assets/icons",
"build:wds": "cp -R node_modules/smg-web-design-system/dist/assets/logos public/assets/logos",
"build:svg": "svg-sprite --view --vscss --view-sprite=svg/sprite.view.svg --symbol --symbol-example --symbol-sprite=svg/sprite.symbol.svg --dest=public/assets/icons client/icons/*.svg",
"minify": "run-p minify:*",
"minify:js": "uglifyjs public/bundle.js -o public/bundle.js",
"minify:css": "postcss public/bundle.css -r -u cssnano",
"watch": "npm-run-all build --parallel watch:*",
"watch:js": "watchify client/main.js -o 'exorcist public/bundle.js.map > public/bundle.js ' -d -v",
"watch:css": "nodemon -e scss -x 'npm run build:css'",
"watch:svg": "nodemon -e svg --ignore public/ -x 'npm run build:svg'",
"watch:server": "nodemon --watch . --ignore node_modules/ --ignore public/ -e js,html -x 'npm start'",
"fix-semistandard": "semistandard --fix"
},
"repository": {
"type": "git",
"url": "https://github.com/TheScienceMuseum/collectionsonline.git"
},
"author": "",
"license": "MIT",
"bugs": {
"url": "https://github.com/TheScienceMuseum/collectionsonline/issues"
},
"homepage": "https://github.com/TheScienceMuseum/collectionsonline",
"browserify": {
"transform": [
"brfs",
[
"babelify",
{
"presets": [
"@babel/preset-env"
],
"plugins": [
"@babel/plugin-transform-object-assign"
]
}
]
]
},
"semistandard": {
"globals": [
"OpenSeadragon",
"sessionStorage"
],
"ignore": [
"client/lib/polyfills.js",
"public/vendor/object2vr/skin.js",
"public/vendor/object2vr/object2vr_player.js",
"backstop_data"
]
},
"browserslist": [
"last 2 versions",
">1% in GB",
"ie >= 10"
]
}