overleaf/services/web/package.json

193 lines
6.3 KiB
JSON
Raw Normal View History

2014-02-12 05:23:40 -05:00
{
"name": "web-overleaf",
2015-03-20 10:09:27 -04:00
"version": "0.1.4",
2014-08-19 09:44:48 -04:00
"description": "The HTTP front end for ShareLaTeX",
"license": "AGPL-3.0-only",
"private": true,
2014-08-19 09:44:48 -04:00
"repository": {
2014-09-26 09:52:00 -04:00
"type": "git",
2014-08-19 09:44:48 -04:00
"url": "https://github.com/sharelatex/web-sharelatex.git"
},
2014-02-12 05:23:40 -05:00
"directories": {
"public": "./public"
},
"scripts": {
"test:acceptance:run_dir": "mocha --recursive --reporter spec --timeout 25000 --exit --grep=$MOCHA_GREP --require test/acceptance/bootstrap.js",
"test:acceptance:app": "npm run test:acceptance:run_dir -- test/acceptance/src",
"test:unit:run_dir": "mocha --recursive --reporter spec --timeout 25000 --exit --grep=$MOCHA_GREP --file test/unit/bootstrap.js",
"test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
"test:frontend": "karma start",
"test:frontend:single": "karma start --single-run",
"start": "node $NODE_APP_OPTIONS app.js",
CI and local dev environment improvements The need for this became very noticeable due to the slowness of filesystem access in docker-in-mac, with a full compile taking over a minute for me in docker. Using make to introduce incremental compile makes this near instantaneous outside of docker (if only a few files have changed), and quick enough inside docker. With incremental compile via make, it compiles quickly enough that re-compiling and restarting the web service automatically when backend files change is quick enough now. This is how the service is run via docker-compose in https://github.com/sharelatex/sharelatex-dev-environment, so it shouldn't be necessary to manually restart the container each time a coffee file changes. At the moment Jenkins pull web modules in via the GitSCM plugin, but I believe this is creating a dependency in Jenkins, where any commits to any of the modules causes all of the web branches to rebuild. By doing it via our own scripts we can hopefully avoid this. It also creates a build process which is reproducible locally. **Note that at the moment in this PR all modules pull from `ja-dockerize-dev` branches, but these should be merged first, and this PR updated to point to the master branches before merging**. This is necessary for other changes to build process/docker-compose workflow. As well as a Makefile for web, there is now a `Makefile.module`. This is copied into each module directory by the top-level Makefile, and is written in a way to be flexible and support unit tests, acceptance tests, front-end js for the ide and main, and the modules `app/coffee` directory, while allowing modules to have some of these missing (not all modules have e.g. acceptance tests, or front-end JS). This will allows us to refine the build process in future, without needing to update the Makefile in each module repo separately (I found this to be a painful part of this development). This makes web compatible with the docker-compose workflow at https://github.com/sharelatex/sharelatex-dev-environment, where each service is running in its own docker container, with networking managed by docker. Previously the Makefile was set up to run unit tests in docker with `make unit_tests`. This now just runs them natively. In the CI, they are run in docker anyway (all steps in Jenkins are), and locally, they run fine natively with `npm run test:unit`, or can be run in docker via https://github.com/sharelatex/sharelatex-dev-environment with `bin/run web_sl npm run test:unit`. Previously we did a lot of juggling with only mounting source files (coffee, less, etc) into the docker container for acceptance tests. This was to avoid creating root owned files if the whole directory was mounted. Now instead the whole web directory is mounted read-only, with the compilation step done outside of the container before running the tests. This allows the host and container to share the `node_modules` folder as well, which avoids needing to `npm install` twice on the CI box, and should speed up the build by a few minutes. On macOS, this would cause a problem with compiled modules if you tried to use the same `node_modules` to run the app natively. However, if running via docker-compose in https://github.com/sharelatex/sharelatex-dev-environment, this is no longer a problem.
2017-12-28 15:11:27 -05:00
"nodemon": "nodemon --config nodemon.json",
2018-02-23 06:41:21 -05:00
"webpack": "webpack-dev-server --config webpack.config.dev.js",
"webpack:production": "webpack --config webpack.config.prod.js",
"lint": "eslint -f unix .",
"format": "prettier-eslint '**/*.{js,less}' --list-different",
"format:fix": "prettier-eslint '**/*.{js,less}' --write",
"migrations": "east"
},
2014-02-12 05:23:40 -05:00
"dependencies": {
"@babel/cli": "^7.5.5",
"@babel/core": "^7.5.5",
"@babel/preset-env": "^7.5.5",
"@babel/preset-react": "^7.0.0",
"@overleaf/o-error": "^2.1.0",
"algoliasearch": "^3.35.1",
"angular": "~1.6.10",
"angular-sanitize": "~1.6.10",
2014-09-26 09:52:00 -04:00
"archiver": "0.9.0",
2014-03-31 12:24:41 -04:00
"async": "0.6.2",
"backbone": "^1.3.3",
2015-06-30 07:04:41 -04:00
"basic-auth-connect": "^1.0.0",
"bcrypt": "^3.0.4",
2015-06-30 07:04:41 -04:00
"body-parser": "^1.13.1",
"bufferedstream": "1.6.0",
"celebrate": "^10.0.1",
"chai-as-promised": "^7.1.1",
2018-01-15 12:17:28 -05:00
"codemirror": "^5.33.0",
"connect-redis": "^3.1.0",
2018-05-21 18:34:58 -04:00
"contentful": "^6.1.1",
2016-04-19 11:48:51 -04:00
"cookie": "^0.2.3",
2015-06-30 07:04:41 -04:00
"cookie-parser": "1.3.5",
"core-js": "^3.6.2",
"crypto-js": "^3.1.9-1",
2015-06-30 07:04:41 -04:00
"csurf": "^1.8.3",
"d3": "^3.5.16",
2014-09-26 09:52:00 -04:00
"dateformat": "1.0.4-1.2.3",
"daterangepicker": "^2.1.27",
"east": "^1.1.0",
2015-06-30 07:04:41 -04:00
"express": "4.13.0",
"express-bearer-token": "^2.2.0",
2017-12-21 08:51:52 -05:00
"express-http-proxy": "^1.1.0",
"express-session": "^1.14.2",
2017-10-13 11:49:22 -04:00
"fs-extra": "^4.0.2",
2018-03-29 12:48:05 -04:00
"fuse.js": "^3.0.0",
"handlebars": "^4.0.11",
"helmet": "^3.8.1",
"http-proxy": "^1.8.1",
"joi-mongodb-objectid": "^0.1.0",
"jquery": "^2.2.4",
"json2csv": "^4.3.3",
2017-10-03 05:29:49 -04:00
"jsonwebtoken": "^8.0.1",
"lodash": "^4.13.1",
"logger-sharelatex": "^1.8.0",
2018-08-04 12:30:24 -04:00
"mailchimp-api-v3": "^1.12.0",
2016-06-06 04:28:53 -04:00
"marked": "^0.3.5",
2015-06-30 07:04:41 -04:00
"method-override": "^2.3.3",
"metrics-sharelatex": "^2.6.1",
2018-09-18 03:43:02 -04:00
"minimist": "1.2.0",
"mmmagic": "^0.5.2",
"mocha": "^6.2.2",
"moment": "^2.24.0",
"mongojs": "2.4.0",
"mongoose": "^4.13.19",
"multer": "git+https://github.com/overleaf/multer.git",
2017-07-28 12:30:57 -04:00
"node-html-encoder": "0.0.2",
"nodemailer": "2.1.0",
2017-12-11 06:05:04 -05:00
"nodemailer-mandrill-transport": "^1.2.0",
2016-03-29 09:15:33 -04:00
"nodemailer-sendgrid-transport": "^0.2.0",
"nodemailer-ses-transport": "^1.3.0",
"nvd3": "^1.8.6",
"oauth2-server": "^3.0.1",
"p-limit": "^2.2.1",
2016-09-02 11:17:37 -04:00
"passport": "^0.3.2",
2018-09-18 03:43:02 -04:00
"passport-google-oauth20": "^1.0.0",
"passport-ldapauth": "^0.6.0",
2016-09-02 11:17:37 -04:00
"passport-local": "^1.0.0",
2017-08-07 06:24:04 -04:00
"passport-oauth2": "^1.4.0",
"passport-oauth2-refresh": "^1.0.0",
2018-09-18 03:43:02 -04:00
"passport-orcid": "0.0.3",
"passport-saml": "^1.3.3",
2018-09-18 03:43:02 -04:00
"passport-twitter": "^1.0.4",
"pdfjs-dist": "^2.2.228",
2017-07-27 05:58:20 -04:00
"pug": "^2.0.0-beta6",
2018-03-29 11:15:53 -04:00
"react": "^15.4.2",
2018-04-10 05:01:10 -04:00
"react-dom": "^15.4.2",
"redis-sharelatex": "^1.0.11",
2016-03-08 10:59:04 -05:00
"request": "^2.69.0",
"request-promise-native": "^1.0.7",
2018-02-12 10:16:21 -05:00
"requestretry": "^1.13.0",
2014-09-26 09:52:00 -04:00
"rimraf": "2.2.6",
2017-07-27 05:58:20 -04:00
"rolling-rate-limiter": "git+https://github.com/ShaneKilkelly/rolling-rate-limiter.git#master",
2014-06-04 11:28:20 -04:00
"sanitizer": "0.1.1",
"settings-sharelatex": "^1.1.0",
2016-05-13 08:30:00 -04:00
"temp": "^0.8.3",
2014-09-26 09:52:00 -04:00
"underscore": "1.6.0",
"url-parse": "^1.4.7",
"utf-8-validate": "^5.0.2",
"uuid": "^3.0.1",
"valid-url": "^1.0.9",
"xml2js": "^0.4.22",
"xregexp": "^4.2.4",
"yauzl": "^2.10.0"
2016-06-02 10:24:10 -04:00
},
2014-02-12 05:23:40 -05:00
"devDependencies": {
"acorn": "^6.1.0",
"acorn-walk": "^6.1.1",
"angular-mocks": "~1.6.10",
"autoprefixer": "^9.7.2",
"babel-eslint": "^10.0.2",
"babel-loader": "^8.0.6",
"babel-plugin-angularjs-annotate": "^0.10.0",
"chai": "^4.2.0",
"chai-as-promised": "^7.1.1",
"chaid": "^1.0.2",
"cheerio": "^1.0.0-rc.3",
"copy-webpack-plugin": "^5.0.4",
"css-loader": "^3.2.0",
"dom-testing-library": "^3.19.4",
2017-01-18 10:38:18 -05:00
"es6-promise": "^4.0.5",
2018-02-22 14:25:02 -05:00
"eslint": "^4.18.1",
"eslint-config-prettier": "^3.1.0",
2018-02-22 14:25:02 -05:00
"eslint-config-standard": "^11.0.0",
"eslint-config-standard-jsx": "^5.0.0",
"eslint-config-standard-react": "^6.0.0",
"eslint-plugin-chai-expect": "^1.1.1",
"eslint-plugin-chai-friendly": "^0.4.1",
2018-02-22 14:25:02 -05:00
"eslint-plugin-import": "^2.9.0",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-mocha": "^5.2.0",
2018-02-22 14:25:02 -05:00
"eslint-plugin-node": "^6.0.0",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-react": "^7.11.1",
2018-02-22 14:25:02 -05:00
"eslint-plugin-standard": "^3.0.1",
"expose-loader": "^0.7.5",
"file-loader": "^5.0.2",
"glob": "^7.1.3",
"handlebars-loader": "^1.7.0",
2018-02-12 11:46:36 -05:00
"karma": "^2.0.0",
"karma-chai-sinon": "^0.1.5",
"karma-chrome-launcher": "^2.2.0",
"karma-mocha": "^1.3.0",
2018-02-22 09:02:14 -05:00
"karma-mocha-reporter": "^2.2.5",
2018-02-12 11:46:36 -05:00
"karma-requirejs": "^1.1.0",
"karma-webpack": "^4.0.2",
"less": "^2.7.3",
"less-loader": "^5.0.0",
"less-plugin-autoprefix": "^2.0.0",
"mini-css-extract-plugin": "^0.8.0",
2017-11-30 08:15:39 -05:00
"mkdirp": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz",
CI and local dev environment improvements The need for this became very noticeable due to the slowness of filesystem access in docker-in-mac, with a full compile taking over a minute for me in docker. Using make to introduce incremental compile makes this near instantaneous outside of docker (if only a few files have changed), and quick enough inside docker. With incremental compile via make, it compiles quickly enough that re-compiling and restarting the web service automatically when backend files change is quick enough now. This is how the service is run via docker-compose in https://github.com/sharelatex/sharelatex-dev-environment, so it shouldn't be necessary to manually restart the container each time a coffee file changes. At the moment Jenkins pull web modules in via the GitSCM plugin, but I believe this is creating a dependency in Jenkins, where any commits to any of the modules causes all of the web branches to rebuild. By doing it via our own scripts we can hopefully avoid this. It also creates a build process which is reproducible locally. **Note that at the moment in this PR all modules pull from `ja-dockerize-dev` branches, but these should be merged first, and this PR updated to point to the master branches before merging**. This is necessary for other changes to build process/docker-compose workflow. As well as a Makefile for web, there is now a `Makefile.module`. This is copied into each module directory by the top-level Makefile, and is written in a way to be flexible and support unit tests, acceptance tests, front-end js for the ide and main, and the modules `app/coffee` directory, while allowing modules to have some of these missing (not all modules have e.g. acceptance tests, or front-end JS). This will allows us to refine the build process in future, without needing to update the Makefile in each module repo separately (I found this to be a painful part of this development). This makes web compatible with the docker-compose workflow at https://github.com/sharelatex/sharelatex-dev-environment, where each service is running in its own docker container, with networking managed by docker. Previously the Makefile was set up to run unit tests in docker with `make unit_tests`. This now just runs them natively. In the CI, they are run in docker anyway (all steps in Jenkins are), and locally, they run fine natively with `npm run test:unit`, or can be run in docker via https://github.com/sharelatex/sharelatex-dev-environment with `bin/run web_sl npm run test:unit`. Previously we did a lot of juggling with only mounting source files (coffee, less, etc) into the docker container for acceptance tests. This was to avoid creating root owned files if the whole directory was mounted. Now instead the whole web directory is mounted read-only, with the compilation step done outside of the container before running the tests. This allows the host and container to share the `node_modules` folder as well, which avoids needing to `npm install` twice on the CI box, and should speed up the build by a few minutes. On macOS, this would cause a problem with compiled modules if you tried to use the same `node_modules` to run the app natively. However, if running via docker-compose in https://github.com/sharelatex/sharelatex-dev-environment, this is no longer a problem.
2017-12-28 15:11:27 -05:00
"nodemon": "^1.14.3",
"optimize-css-assets-webpack-plugin": "^5.0.3",
"postcss-loader": "^3.0.0",
"prettier-eslint-cli": "^4.7.1",
"react-testing-library": "^5.4.2",
2018-02-12 11:46:36 -05:00
"requirejs": "^2.1.22",
"samlp": "^3.4.1",
"sandboxed-module": "0.2.0",
"sinon": "^7.5.0",
"sinon-chai": "^3.3.0",
"sinon-mongoose": "^2.3.0",
"terser-webpack-plugin": "^2.2.1",
"timekeeper": "^2.2.0",
2018-05-16 05:13:43 -04:00
"translations-sharelatex": "git+https://github.com/sharelatex/translations-sharelatex.git#master",
"val-loader": "^1.1.1",
"webpack": "^4.39.0",
"webpack-cli": "^3.3.6",
"webpack-dev-server": "^3.7.2",
"webpack-manifest-plugin": "^2.0.4",
"webpack-merge": "^4.2.1"
2014-02-12 05:23:40 -05:00
}
}