-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
195 lines (195 loc) · 7.39 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
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
{
"name": "@scipe/ui",
"version": "1.4.1",
"description": "common UI components",
"main": "dist/index.js",
"module": "esdist/index.js",
"sideEffects": false,
"style": "src/index.css",
"scripts": {
"profile": "webpack --profile --json > stats.json && webpack-bundle-analyzer stats.json esdist",
"build": "rm -rf dist; mkdir dist; babel src -d dist --env-name cjs",
"build-esm": "rm -rf esdist; mkdir esdist; babel src -d esdist --env-name esm",
"format": "prettier --single-quote --write \"{src,test,example}/**/*.js\"",
"test": "cross-env DB_NAME=test-ui mocha --require @babel/register --bail --exit",
"backstop:reference": "backstop reference --config backstop.config.js",
"backstop:approve": "backstop approve --config backstop.config.js",
"backstop:test": "backstop test --config backstop.config.js",
"backstop:init": "backstop init",
"backstop:kill": "pkill -f \"(chrome)?(--headless)\"",
"backstop:download": "./get-artifacts.sh",
"backstop:open": "backstop openReport --config backstop.config.js",
"watch": "cross-env DB_NAME=test-ui babel-node ./example/server.js --env cjs | bunyan",
"start": "npm run watch",
"redis": "$(brew info redis | tail -1)",
"reset-redis": "librarian reset-redis",
"set-couchdb-auth": "librarian secure",
"create-auth-db": "curl -XPUT ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${COUCH_AUTH_DB:=_users}",
"delete-auth-db": "curl -XDELETE ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${COUCH_AUTH_DB:=_users}",
"push-auth-db": "./node_modules/.bin/couchapp push ./node_modules/@scipe/ddoc-auth/ddoc.js ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${COUCH_AUTH_DB:=_users}",
"create-db": "curl -XPUT ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${DB_NAME:=scienceai}",
"delete-db": "curl -XDELETE ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${DB_NAME:=scienceai}",
"push-ddoc": "./node_modules/.bin/couchapp push ./node_modules/@scipe/ddoc/ddoc.js ${COUCH_PROTOCOL:=http:}//${COUCH_ADMIN_USERNAME:=admin}:${COUCH_ADMIN_PASSWORD:=pass}@${COUCH_HOST:=127.0.0.1}:${COUCH_PORT:=5984}/${DB_NAME:=scienceai}",
"seed": "cross-env DB_NAME=test-ui babel-node example/seed.js",
"init-ontologist": "(cd ./node_modules/@scipe/ontologist && ./scripts/seed.sh)",
"reset": "cross-env DB_NAME=test-ui npm run delete-auth-db && cross-env DB_NAME=test-ui npm run create-auth-db && cross-env DB_NAME=test-ui npm run push-auth-db && npm run init",
"init": "cross-env DB_NAME=test-ui npm run delete-db && cross-env DB_NAME=test-ui npm run create-db && cross-env DB_NAME=test-ui npm run push-ddoc && cross-env DB_NAME=test-ui npm run set-couchdb-auth && cross-env DB_NAME=test-ui npm run reset-redis && cross-env DB_NAME=test-ui npm run init-ontologist && cross-env DB_NAME=test-ui npm run seed",
"prepare": "npm run build && npm run build-esm",
"postversion": "git push && git push --tags"
},
"eslintConfig": {
"extends": "@scipe"
},
"prettier": {
"singleQuote": true
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead"
}
],
"@babel/preset-react"
],
"plugins": [
"@babel/plugin-proposal-class-properties",
"@babel/plugin-proposal-object-rest-spread"
],
"env": {
"cjs": {
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
]
},
"esm": {
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/science-periodicals/ui.git"
},
"author": "Sebastien Ballesteros",
"license": "See README.md",
"bugs": {
"url": "https://github.com/science-periodicals/ui/issues"
},
"homepage": "https://github.com/science-periodicals/ui#readme",
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/node": "^7.5.5",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-proposal-object-rest-spread": "^7.5.5",
"@babel/polyfill": "^7.4.4",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.5.5",
"@scipe/api": "^1.1.0",
"@scipe/ddoc": "^1.0.3",
"@scipe/ddoc-auth": "^1.0.0",
"@scipe/eslint-config": "^1.0.0",
"@scipe/express-logger": "^1.0.0",
"@scipe/ontologist": "^1.0.0",
"babel-loader": "^8.0.6",
"backstopjs": "^4.1.12",
"bunyan": "^1.8.12",
"couchapp": "0.11.0",
"cross-env": "^5.2.0",
"css-loader": "^2.1.1",
"duplicate-package-checker-webpack-plugin": "^3.0.0",
"ejs": "^2.6.2",
"express": "^4.17.1",
"faker": "^4.1.0",
"mocha": "^6.2.0",
"postcss-import": "^12.0.1",
"postcss-loader": "^3.0.0",
"postcss-nested": "^4.1.2",
"postcss-preset-env": "^6.7.0",
"postcss-url": "^8.0.0",
"prettier": "^1.18.2",
"raf": "^3.4.1",
"react-hot-loader": "^4.12.10",
"style-loader": "^0.23.1",
"webpack": "^4.39.1",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.6",
"webpack-dev-middleware": "^3.7.0",
"webpack-dev-server": "^3.7.2",
"xlsx": "^0.14.4"
},
"dependencies": {
"@scipe/create-error": "^1.0.0",
"@scipe/ds3-mime": "^1.0.0",
"@scipe/iconoclass": "^1.0.1",
"@scipe/jsonld": "^1.0.0",
"@scipe/librarian": "^1.0.12",
"@scipe/resources": "^1.0.1",
"ally.js": "^1.4.1",
"async": "^2.6.3",
"capture-submit": "^1.0.3",
"classnames": "^2.2.6",
"clipboard-copy": "^2.0.1",
"contrast": "1.0.1",
"country-list": "^1.1.1",
"create-react-class": "^15.6.3",
"decamelize": "^1.2.0",
"dom-scroll-into-view": "1.2.1",
"fuse.js": "^3.4.5",
"is-client": "0.0.2",
"is-domain-name": "^1.0.1",
"is-url": "^1.2.4",
"list-of-programming-languages": "^2.0.2",
"lodash": "^4.17.15",
"marked": "^0.6.3",
"material-color-hash": "^0.1.6",
"mime-types": "^2.1.24",
"moment": "^2.24.0",
"normalize.css": "^8.0.1",
"once": "^1.4.0",
"ordinal": "^1.0.3",
"pluralize": "^7.0.0",
"postcss-reporter": "^6.0.1",
"prop-types": "^15.7.2",
"react": "^16.8.6",
"react-collapse": "^4.0.3",
"react-color": "^2.17.3",
"react-day-picker": "^7.3.0",
"react-dnd": "7.1.0",
"react-dnd-html5-backend": "7.1.0",
"react-dom": "^16.8.6",
"react-height": "^3.0.0",
"react-input-autosize": "^2.2.1",
"react-measure": "^2.3.0",
"react-motion": "^0.5.2",
"react-onclickoutside": "^6.8.0",
"react-router-dom": "^5.0.1",
"react-transition-group": "^4.2.2",
"regex-email": "^1.0.2",
"romanize": "^1.1.1",
"schema.org": "^3.1.1",
"slug": "^1.1.0",
"spdx-license-list": "^3.0.1",
"textarea-caret": "^3.1.0",
"tinycolor2": "^1.4.1",
"turndown": "^5.0.3",
"uuid": "^3.3.2",
"web-verse": "^2.1.2",
"webpack-hot-middleware": "^2.25.0"
}
}