-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
92 lines (92 loc) · 2.57 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
{
"name": "@realmq/customer-messaging",
"version": "0.1.0",
"description": "An intercom-like customer messaging reference implementation on top of RealMQ's instant messaging backbone.",
"author": "RealMQ GmbH <[email protected]> (https://realmq.com)",
"license": "MIT",
"repository": "https://github.com/realmq/customer-messaging",
"private": true,
"scripts": {
"precommit": "lint-staged",
"lint": "xo",
"lint-fix": "xo --fix",
"start": "node server",
"debug": "node --inspect=0.0.0.0:9229 server",
"test": "echo 'No tests, yet' && exit 1",
"build-agent": "mkdir -p public/js && mkdir -p public/img && node -r dotenv/config node_modules/.bin/browserify -t envify assets/js/agent.js > public/js/agent.js && cp assets/img/* public/img",
"build-widget": "mkdir -p public/js && mkdir -p public/img && node -r dotenv/config node_modules/.bin/browserify -t envify assets/js/widget.js > public/js/widget.js && cp assets/img/* public/img",
"dist": "export NODE_ENV=production; for p in agent widget; do yarn build-${p} && uglifyjs public/js/${p}.js -o public/js/${p}.min.js; done",
"postinstall": "yarn dist"
},
"main": "server.js",
"engines": {
"node": ">= 8"
},
"lint-staged": {
"*.js": [
"yarn lint-fix",
"git add"
]
},
"xo": {
"space": true,
"prettier": true,
"overrides": [
{
"files": "**/assets/js/**/*.js",
"envs": [
"browser"
],
"parserOptions": {
"ecmaVersion": 5,
"sourceType": "script",
"ecmaFeatures": {
"globalReturn": false
}
},
"esnext": false,
"rules": {
"no-implicit-globals": "off"
}
}
]
},
"devDependencies": {
"browserify": "^16.1.1",
"envify": "^4.1.0",
"husky": "^0.14.3",
"lint-staged": "^7.0.4",
"node-sass": "^4.8.3",
"uglify-js": "^3.3.20",
"vueify": "^9.4.1",
"xo": "^0.20.3"
},
"dependencies": {
"@realmq/node-sdk": "^0.1.0",
"@realmq/web-sdk": "^0.1.0",
"chalk": "^2.3.2",
"connect-session-sequelize": "^5.2.1",
"dotenv": "^5.0.1",
"express": "^4.16.3",
"express-basic-auth": "^1.1.4",
"express-session": "^1.15.6",
"moment": "^2.22.1",
"moniker": "^0.1.2",
"morgan": "^1.9.0",
"pg": "^7.4.1",
"pug": "^2.0.3",
"sequelize": "^4.37.6",
"uuid": "^3.2.1",
"vue": "^2.5.16",
"vue-chat-scroll": "^1.2.1"
},
"browserify": {
"transform": [
"envify",
"vueify"
]
},
"browser": {
"vue": "vue/dist/vue.common.js"
}
}