-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
162 lines (162 loc) · 6.02 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
{
"name": "@scipe/librarian",
"version": "1.0.12",
"description": "The only source of truth in data",
"preferGlobal": true,
"main": "dist/index.js",
"module": "esdist/browser.js",
"sideEffects": false,
"browser": "esdist/browser.js",
"bin": {
"librarian": "dist/bin/librarian.js"
},
"scripts": {
"cloudant": "docker restart cloudant-developer",
"format": "prettier --single-quote --write \"{src,test}/**/*.js\"",
"just-test": "cross-env DB_NAME=test-librarian mocha --reporter spec --require @babel/register --exit",
"test-story": "mocha --reporter spec --require @babel/register test/test-story.js --exit",
"test": "cross-env DB_NAME=test-librarian npm run just-test",
"pretest": "cross-env DB_NAME=test-librarian npm run create-auth-db && cross-env DB_NAME=test-librarian npm run push-auth-db && cross-env DB_NAME=test-librarian npm run delete-db && cross-env DB_NAME=test-librarian npm run create-db && cross-env DB_NAME=test-librarian npm run push-ddoc && cross-env DB_NAME=test-librarian npm run set-couchdb-auth && cross-env DB_NAME=test-librarian npm run reset-redis",
"build": "rm -rf dist/* && babel src --out-dir dist --env-name cjs",
"build-esm": "rm -rf esdist/* && babel src --out-dir esdist --env-name esm",
"watch": "babel --watch src --out-dir dist",
"watch-linked": "npm run watch",
"watch-email-server": "babel-node ./src/email-server.js | bunyan",
"redis": "$(brew info redis | tail -1)",
"reset-redis": "./dist/bin/librarian.js reset-redis",
"set-couchdb-auth": "./dist/bin/librarian.js secure",
"init": "npm run delete-auth-db && npm run create-auth-db && npm run push-auth-db && npm run delete-db && npm run create-db && npm run push-ddoc && npm run set-couchdb-auth && npm run reset-redis",
"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}",
"prepare": "npm run build && npm run build-esm",
"postversion": "git push && git push --tags"
},
"prettier": {
"singleQuote": true
},
"babel": {
"presets": [
[
"@babel/preset-env",
{
"targets": "> 0.25%, not dead"
}
]
],
"plugins": [
"@babel/plugin-transform-runtime",
"@babel/plugin-transform-async-to-generator"
],
"env": {
"cjs": {
"presets": [
[
"@babel/preset-env",
{
"modules": "commonjs"
}
]
]
},
"esm": {
"presets": [
[
"@babel/preset-env",
{
"modules": false
}
]
]
}
}
},
"eslintConfig": {
"extends": "@scipe"
},
"repository": {
"type": "git",
"url": "https://github.com/science-periodicals/librarian.git"
},
"keywords": [
"couchdb",
"librarian"
],
"author": "Sebastien Ballesteros <[email protected]>",
"license": "See README.md",
"bugs": {
"url": "https://github.com/science-periodicals/librarian/issues"
},
"homepage": "https://github.com/science-periodicals/librarian",
"dependencies": {
"@babel/runtime": "^7.5.5",
"@scipe/blob-store": "^1.0.0",
"@scipe/collate": "^1.0.0",
"@scipe/create-error": "^1.0.0",
"@scipe/ddoc": "^1.0.3",
"@scipe/ddoc-auth": "^1.0.0",
"@scipe/ds3-mime": "^1.0.0",
"@scipe/jsonld": "^1.0.0",
"@scipe/ontology": "^23.0.0",
"async": "^2.6.2",
"aws-sdk": "^2.516.0",
"bunyan": "^1.8.12",
"camelcase": "^4.1.0",
"certpem": "^1.1.3",
"colors": "^1.3.3",
"cookie": "^0.4.0",
"decamelize": "^1.2.0",
"dr-sax": "^1.0.12",
"ejs": "^2.6.2",
"is-client": "0.0.2",
"is-url": "^1.2.4",
"isemail": "^3.1.4",
"json-stable-stringify": "^1.0.1",
"juice": "^5.2.0",
"lodash": "^4.17.15",
"mmmagic": "^0.5.3",
"moment": "^2.24.0",
"npm-user-validate": "^1.0.0",
"once": "^1.4.0",
"redis": "^2.8.0",
"redlock": "^3.1.2",
"regex-email": "^1.0.2",
"request": "^2.88.0",
"sanitize-html": "^1.20.1",
"schema.org": "^3.1.1",
"semver": "^6.3.0",
"slug": "^1.1.0",
"stripe": "^6.34.0",
"through2": "^3.0.1",
"traverse": "0.6.6",
"url-template": "^2.0.8",
"util.promisify": "^1.0.0",
"uuid": "^3.3.3",
"web-verse": "^2.1.2",
"xhr": "^2.5.0",
"xmldom": "^0.1.27",
"yargs": "^13.3.0",
"zeromq": "^5.1.0"
},
"devDependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/node": "^7.5.5",
"@babel/plugin-transform-async-to-generator": "^7.5.0",
"@babel/plugin-transform-runtime": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/register": "^7.5.5",
"@scipe/eslint-config": "^1.0.0",
"@scipe/resources": "^1.0.1",
"@scipe/workers": "^1.0.2",
"couchapp": "^0.11.0",
"cross": "^1.0.0",
"cross-env": "^5.2.0",
"express": "^4.17.1",
"mocha": "^6.2.0",
"prettier": "^1.17.1"
}
}