2014-03-04 16:31:52 +00:00
|
|
|
{
|
2016-02-10 04:55:10 +00:00
|
|
|
"name": "thelounge",
|
2015-04-29 19:55:13 +00:00
|
|
|
"description": "The self-hosted Web IRC client",
|
2018-03-09 02:27:05 +00:00
|
|
|
"version": "3.0.0-pre.3",
|
2014-08-13 21:35:20 +00:00
|
|
|
"preferGlobal": true,
|
|
|
|
"bin": {
|
2017-11-12 20:49:04 +00:00
|
|
|
"thelounge": "index.js"
|
2014-08-13 21:35:20 +00:00
|
|
|
},
|
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2018-02-21 17:48:22 +00:00
|
|
|
"url": "https://github.com/thelounge/thelounge.git"
|
2014-08-13 21:35:20 +00:00
|
|
|
},
|
2018-01-14 07:15:08 +00:00
|
|
|
"homepage": "https://thelounge.chat/",
|
2014-08-13 21:35:20 +00:00
|
|
|
"scripts": {
|
2017-11-27 09:45:58 +00:00
|
|
|
"build": "webpack",
|
2018-02-23 01:28:05 +00:00
|
|
|
"coverage": "rm -rf .nyc_output/ && run-s test:{client,server} && nyc --nycrc-path=test/.nycrc-report report",
|
|
|
|
"dev": "run-p watch start",
|
2017-11-28 07:10:17 +00:00
|
|
|
"lint:css": "stylelint --color \"client/**/*.css\"",
|
2018-02-23 01:28:05 +00:00
|
|
|
"lint:js": "eslint . --report-unused-disable-directives --color",
|
|
|
|
"start": "node index start",
|
|
|
|
"test": "run-p --aggregate-output --continue-on-error lint:* test:{client,server}",
|
|
|
|
"test:browser": "webpack-dev-server --config=webpack.config-browser.js",
|
|
|
|
"test:client": "nyc --nycrc-path=test/.nycrc-mocha-webpack mocha-webpack --colors --opts=test/mocha-webpack.opts",
|
|
|
|
"test:server": "nyc --nycrc-path=test/.nycrc-mocha mocha --colors",
|
|
|
|
"watch": "webpack --watch"
|
2014-03-24 13:44:41 +00:00
|
|
|
},
|
|
|
|
"keywords": [
|
2016-11-19 10:05:46 +00:00
|
|
|
"lounge",
|
2014-04-20 17:13:33 +00:00
|
|
|
"browser",
|
2014-06-26 16:14:45 +00:00
|
|
|
"web",
|
2014-03-24 13:44:41 +00:00
|
|
|
"chat",
|
2014-04-22 18:26:05 +00:00
|
|
|
"client",
|
2014-03-24 13:44:41 +00:00
|
|
|
"irc",
|
2018-01-26 05:23:51 +00:00
|
|
|
"server",
|
|
|
|
"thelounge"
|
2014-03-24 13:44:41 +00:00
|
|
|
],
|
2014-08-25 23:13:47 +00:00
|
|
|
"license": "MIT",
|
2016-04-26 10:51:11 +00:00
|
|
|
"engines": {
|
2017-11-22 05:55:40 +00:00
|
|
|
"node": ">=6"
|
2016-04-26 10:51:11 +00:00
|
|
|
},
|
2014-06-17 13:38:08 +00:00
|
|
|
"dependencies": {
|
2017-03-23 07:47:51 +00:00
|
|
|
"bcryptjs": "2.4.3",
|
2018-03-06 08:46:52 +00:00
|
|
|
"chalk": "2.3.2",
|
2016-11-19 08:49:16 +00:00
|
|
|
"cheerio": "0.22.0",
|
2018-03-08 08:13:32 +00:00
|
|
|
"commander": "2.15.0",
|
2017-10-17 08:21:39 +00:00
|
|
|
"express": "4.16.2",
|
2017-12-11 17:42:23 +00:00
|
|
|
"fs-extra": "5.0.0",
|
2018-02-22 14:38:30 +00:00
|
|
|
"irc-framework": "2.11.0",
|
2018-02-04 01:24:58 +00:00
|
|
|
"lodash": "4.17.5",
|
2018-02-16 17:35:16 +00:00
|
|
|
"mime-types": "2.1.18",
|
2018-03-03 01:17:08 +00:00
|
|
|
"moment": "2.21.0",
|
2017-09-18 15:57:24 +00:00
|
|
|
"package-json": "4.0.1",
|
2018-01-18 00:44:09 +00:00
|
|
|
"primer-tooltips": "1.5.2",
|
2016-02-12 11:27:17 +00:00
|
|
|
"read": "1.0.7",
|
2017-09-27 03:35:01 +00:00
|
|
|
"request": "2.83.0",
|
2018-01-16 20:35:46 +00:00
|
|
|
"semver": "5.5.0",
|
2017-10-22 13:31:44 +00:00
|
|
|
"socket.io": "2.0.4",
|
2017-07-27 06:04:47 +00:00
|
|
|
"spdy": "3.4.7",
|
2018-01-30 19:57:44 +00:00
|
|
|
"thelounge-ldapjs-non-maintained-fork": "1.0.2",
|
2017-10-17 08:21:39 +00:00
|
|
|
"ua-parser-js": "0.7.17",
|
2018-02-10 16:06:01 +00:00
|
|
|
"urijs": "1.19.1",
|
2018-02-23 21:02:25 +00:00
|
|
|
"web-push": "3.3.0",
|
2018-02-27 09:06:03 +00:00
|
|
|
"yarn": "1.5.1"
|
2014-06-17 13:38:08 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2017-08-16 17:14:29 +00:00
|
|
|
"babel-core": "6.26.0",
|
2017-08-18 23:02:09 +00:00
|
|
|
"babel-loader": "7.1.2",
|
2017-10-17 12:45:44 +00:00
|
|
|
"babel-preset-env": "1.6.1",
|
2017-08-31 22:04:54 +00:00
|
|
|
"chai": "4.1.2",
|
2018-03-01 21:17:39 +00:00
|
|
|
"copy-webpack-plugin": "4.5.0",
|
2017-08-29 09:38:29 +00:00
|
|
|
"css.escape": "1.5.1",
|
2017-08-23 14:19:04 +00:00
|
|
|
"emoji-regex": "6.5.1",
|
2018-03-02 22:42:12 +00:00
|
|
|
"eslint": "4.18.2",
|
2016-11-19 08:49:16 +00:00
|
|
|
"font-awesome": "4.7.0",
|
2016-12-30 05:32:27 +00:00
|
|
|
"fuzzy": "0.1.3",
|
2018-03-01 11:51:01 +00:00
|
|
|
"graphql-request": "1.5.1",
|
2017-10-17 20:57:51 +00:00
|
|
|
"handlebars": "4.0.11",
|
2017-09-01 17:14:54 +00:00
|
|
|
"handlebars-loader": "1.6.0",
|
2017-12-02 20:58:55 +00:00
|
|
|
"intersection-observer": "0.5.0",
|
Instrument client code before running tests
Despite being a bit gross to look at, this brings a few advantages:
- Tests are now closer to what actually runs, so more likely to find broken stuff.
- We can start using things that were so far Webpack-only or browser-only, like ES6 imports, loading Handlebars templates, etc.
- We open ourselves to browser testing (there is some work to do, but that would be a necessary step).
- We improve the client/server separation, by making it possible to run them independently
I do some extra steps around coverage: now we have 2 reports (client + server), so I have an extra step to combine them (the `nyc report` part). This is strictly to keep feature parity (the coverage report of this code is effectively the same as before), but in the near future, we might want to keep both reports separate, for example to continue separating client/server. Another reason would be to use something like Codecov, which I believe has the ability to have multiple reports. This is down the road though, our coverage is not good enough to make hosting them somewhere be useful (I think).
A few extras with this commit:
- Coverage summary is displayed when tests are run (this is not slowing down tests)
- Tests check for leaks (see https://mochajs.org/#--check-leaks)
- Tests now output with the `dot` reporter. This is nice as `npm test` runs in parallel, the whole output holds in a few lines instead of spanning over multiple screens.
2017-11-22 01:21:51 +00:00
|
|
|
"istanbul-instrumenter-loader": "3.0.0",
|
2018-01-20 17:37:32 +00:00
|
|
|
"jquery": "3.3.1",
|
2016-12-18 15:53:28 +00:00
|
|
|
"jquery-ui": "1.12.1",
|
2018-03-07 21:53:39 +00:00
|
|
|
"mocha": "5.0.4",
|
2017-11-28 07:10:17 +00:00
|
|
|
"mocha-loader": "1.1.3",
|
Instrument client code before running tests
Despite being a bit gross to look at, this brings a few advantages:
- Tests are now closer to what actually runs, so more likely to find broken stuff.
- We can start using things that were so far Webpack-only or browser-only, like ES6 imports, loading Handlebars templates, etc.
- We open ourselves to browser testing (there is some work to do, but that would be a necessary step).
- We improve the client/server separation, by making it possible to run them independently
I do some extra steps around coverage: now we have 2 reports (client + server), so I have an extra step to combine them (the `nyc report` part). This is strictly to keep feature parity (the coverage report of this code is effectively the same as before), but in the near future, we might want to keep both reports separate, for example to continue separating client/server. Another reason would be to use something like Codecov, which I believe has the ability to have multiple reports. This is down the road though, our coverage is not good enough to make hosting them somewhere be useful (I think).
A few extras with this commit:
- Coverage summary is displayed when tests are run (this is not slowing down tests)
- Tests check for leaks (see https://mochajs.org/#--check-leaks)
- Tests now output with the `dot` reporter. This is nice as `npm test` runs in parallel, the whole output holds in a few lines instead of spanning over multiple screens.
2017-11-22 01:21:51 +00:00
|
|
|
"mocha-webpack": "1.0.1",
|
2017-04-02 19:46:29 +00:00
|
|
|
"mousetrap": "1.6.1",
|
2017-11-07 11:51:15 +00:00
|
|
|
"npm-run-all": "4.1.2",
|
2017-12-20 05:35:33 +00:00
|
|
|
"nyc": "11.4.1",
|
2017-10-22 13:19:58 +00:00
|
|
|
"socket.io-client": "2.0.4",
|
2018-02-21 22:44:54 +00:00
|
|
|
"stylelint": "9.1.1",
|
2018-03-01 14:27:18 +00:00
|
|
|
"stylelint-config-standard": "18.2.0",
|
2018-02-28 06:28:27 +00:00
|
|
|
"textcomplete": "0.16.1",
|
2017-11-28 07:10:17 +00:00
|
|
|
"webpack": "3.11.0",
|
|
|
|
"webpack-dev-server": "2.11.1"
|
2014-03-24 13:44:41 +00:00
|
|
|
}
|
2014-03-04 16:31:52 +00:00
|
|
|
}
|