-
Notifications
You must be signed in to change notification settings - Fork 86
/
package.json
140 lines (140 loc) · 4 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
{
"name": "slackin-extended",
"version": "2.2.2",
"description": "Public Slack organizations made easy",
"repository": "emedvedev/slackin-extended",
"license": "MIT",
"main": "./lib/index.js",
"bin": {
"slackin": "./bin/slackin.js"
},
"files": [
"assets/*.{css,js,svg,png,ico}",
"bin/slackin.js",
"lib/*.js",
"views/*.pug"
],
"dependencies": {
"args": "^5.0.3",
"autoprefixer": "^10.4.14",
"body-parser": "^1.20.0",
"compression": "^1.7.4",
"cors": "^2.8.5",
"cross-env": "^7.0.3",
"debug": "^4.3.4",
"dotenv": "^16.0.3",
"email-regex": "^4.0.0",
"errorhandler": "^1.5.1",
"express": "^4.18.2",
"hostenv": "3.13.0",
"micromatch": "^4.0.5",
"morgan": "^1.10.0",
"npm-run-all": "^4.1.5",
"postcss": "^8.4.12",
"postcss-cli": "^9.1.0",
"pug": "^3.0.2",
"resolve-pkg": "^2.0.0",
"sass": "^1.60.0",
"serve-favicon": "^2.5.0",
"socket.io": "^4.6.1",
"superagent": "^7.1.1",
"tinycolor2": "^1.6.0"
},
"devDependencies": {
"lockfile-lint": "^4.10.1",
"mocha": "^10.0.0",
"nock": "^13.3.0",
"nodemon": "^2.0.19",
"stylelint": "^14.16.1",
"stylelint-config-twbs-bootstrap": "^5.0.0",
"supertest": "^6.2.4",
"xo": "^0.48.0"
},
"engines": {
"node": "16.x"
},
"scripts": {
"dev": "nodemon --watch assets/ --watch lib/ --watch scss/ --ext js,scss,svg --exec \"npm-run-all build start\"",
"lint": "npm-run-all --parallel --continue-on-error lint:*",
"lint:css": "stylelint \"{assets,scss}/*.{css,scss}\"",
"lint:js": "xo",
"lint:lockfile": "lockfile-lint --allowed-hosts npm --allowed-schemes https: --empty-hostname false --type npm --path package-lock.json",
"mocha": "mocha --require ./test/setup --exit",
"test": "npm-run-all build lint mocha",
"build": "npm-run-all build:*",
"build:sass": "sass --style compressed --no-source-map --no-error-css scss/:assets/",
"build:prefix": "postcss --use autoprefixer --no-map --replace \"assets/*.css\" \"!assets/iframe-button.css\"",
"now-build": "npm run build && cp node_modules/superagent/superagent.js assets",
"start": "cross-env-shell node ./bin/slackin.js $SLACK_SUBDOMAIN $SLACK_API_TOKEN --coc \\\"$SLACKIN_COC\\\" --channels \\\"$SLACKIN_CHANNELS\\\"",
"prepublishOnly": "npm run build"
},
"xo": {
"space": true,
"rules": {
"arrow-parens": [
"error",
"always"
],
"camelcase": "off",
"capitalized-comments": "off",
"comma-dangle": "off",
"curly": [
"error",
"multi-line"
],
"import/extensions": "off",
"object-curly-spacing": [
"error",
"always"
],
"operator-linebreak": [
"error",
"before"
],
"spaced-comment": "off",
"unicorn/explicit-length-check": "off",
"unicorn/no-array-for-each": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-module": "off",
"unicorn/prevent-abbreviations": "off",
"wrap-iife": [
"error",
"outside"
]
},
"overrides": [
{
"files": "test/*.js",
"envs": [
"mocha"
]
},
{
"files": "assets/*.js",
"parserOptions": {
"ecmaVersion": 3,
"sourceType": "script"
},
"envs": [
"browser"
],
"rules": {
"no-multi-assign": "off",
"no-var": "off",
"object-shorthand": "off",
"prefer-arrow-callback": "off",
"prefer-destructuring": "off",
"semi": "off",
"unicorn/no-for-loop": "off",
"unicorn/numeric-separators-style": "off",
"unicorn/prefer-dom-node-append": "off",
"unicorn/prefer-dom-node-remove": "off",
"unicorn/prefer-math-trunc": "off",
"unicorn/prefer-modern-dom-apis": "off",
"unicorn/prefer-query-selector": "off",
"unicorn/prefer-string-starts-ends-with": "off"
}
}
]
}
}