2014-02-12 05:23:40 -05:00
|
|
|
{
|
2019-08-12 09:17:43 -04: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",
|
2019-08-12 09:17:43 -04:00
|
|
|
"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"
|
|
|
|
},
|
2017-11-23 11:01:32 -05:00
|
|
|
"scripts": {
|
2020-07-09 09:56:33 -04:00
|
|
|
"test:acceptance:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --require test/acceptance/bootstrap.js",
|
2019-10-23 08:22:37 -04:00
|
|
|
"test:acceptance:app": "npm run test:acceptance:run_dir -- test/acceptance/src",
|
2020-07-09 09:56:33 -04:00
|
|
|
"test:unit:run_dir": "mocha --recursive --timeout 25000 --exit --grep=$MOCHA_GREP --file test/unit/bootstrap.js",
|
2019-10-23 08:22:37 -04:00
|
|
|
"test:unit:app": "npm run test:unit:run_dir -- test/unit/src",
|
2020-05-22 06:34:57 -04:00
|
|
|
"test:unit:app:parallel": "parallel --plain --keep-order --halt now,fail=1 npm run test:unit:run_dir -- {} ::: test/unit/src/*",
|
2020-10-27 06:52:40 -04:00
|
|
|
"test:frontend": "NODE_ENV=test TZ=GMT mocha --recursive --exit --grep=$MOCHA_GREP --require test/frontend/bootstrap.js test/frontend modules/*/test/frontend",
|
2020-07-13 07:23:04 -04:00
|
|
|
"test:frontend:coverage": "c8 --all --include 'frontend/js' --include 'modules/*/frontend/js' --exclude 'frontend/js/vendor' --reporter=lcov --reporter=text-summary npm run test:frontend",
|
2020-07-09 09:56:33 -04:00
|
|
|
"test:karma": "karma start",
|
|
|
|
"test:karma:single": "karma start --single-run",
|
2019-11-28 05:20:22 -05:00
|
|
|
"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",
|
2020-03-02 07:33:48 -05:00
|
|
|
"webpack:production": "webpack --config webpack.config.prod.js",
|
2020-07-28 05:36:58 -04:00
|
|
|
"lint": "eslint --max-warnings 0 -f unix .",
|
2019-12-05 14:09:31 -05:00
|
|
|
"format": "prettier-eslint '**/*.{js,less}' --list-different",
|
|
|
|
"format:fix": "prettier-eslint '**/*.{js,less}' --write",
|
2020-09-25 04:40:19 -04:00
|
|
|
"migrations": "east",
|
|
|
|
"storybook": "start-storybook -p 6006"
|
2017-11-23 11:01:32 -05:00
|
|
|
},
|
2020-06-01 08:16:44 -04:00
|
|
|
"browserslist": [
|
|
|
|
"last 1 year",
|
|
|
|
"ie 11",
|
|
|
|
"firefox esr"
|
|
|
|
],
|
2014-02-12 05:23:40 -05:00
|
|
|
"dependencies": {
|
2020-04-22 05:32:25 -04:00
|
|
|
"@babel/cli": "^7.8.4",
|
|
|
|
"@babel/core": "^7.9.0",
|
|
|
|
"@babel/preset-env": "^7.9.5",
|
|
|
|
"@babel/preset-react": "^7.9.4",
|
2020-11-04 08:35:37 -05:00
|
|
|
"@overleaf/metrics": "^3.4.0",
|
2020-08-11 05:28:29 -04:00
|
|
|
"@overleaf/o-error": "^3.0.0",
|
2020-05-06 10:57:36 -04:00
|
|
|
"@pollyjs/adapter-node-http": "^4.2.1",
|
|
|
|
"@pollyjs/core": "^4.2.1",
|
|
|
|
"@pollyjs/persister-fs": "^4.2.1",
|
2020-03-31 05:12:46 -04:00
|
|
|
"@sentry/browser": "^5.12.0",
|
2020-01-10 09:26:27 -05:00
|
|
|
"algoliasearch": "^3.35.1",
|
2020-08-03 09:40:45 -04:00
|
|
|
"angular": "~1.8.0",
|
|
|
|
"angular-sanitize": "~1.8.0",
|
2020-04-29 05:47:24 -04:00
|
|
|
"archiver": "4.0.1",
|
2014-03-31 12:24:41 -04:00
|
|
|
"async": "0.6.2",
|
2020-10-26 06:46:00 -04:00
|
|
|
"axios": "^0.18.1",
|
2018-05-11 04:56:54 -04:00
|
|
|
"backbone": "^1.3.3",
|
2015-06-30 07:04:41 -04:00
|
|
|
"basic-auth-connect": "^1.0.0",
|
2020-09-28 06:58:41 -04:00
|
|
|
"bcrypt": "^5.0.0",
|
2020-04-22 10:15:16 -04:00
|
|
|
"body-parser": "^1.19.0",
|
2014-04-01 11:23:13 -04:00
|
|
|
"bufferedstream": "1.6.0",
|
2020-11-04 08:35:37 -05:00
|
|
|
"bull": "^3.18.0",
|
2019-10-07 08:13:41 -04:00
|
|
|
"celebrate": "^10.0.1",
|
2020-06-29 09:05:08 -04:00
|
|
|
"classnames": "^2.2.6",
|
2018-01-15 12:17:28 -05:00
|
|
|
"codemirror": "^5.33.0",
|
2016-11-08 10:32:36 -05:00
|
|
|
"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",
|
2020-04-22 10:15:16 -04:00
|
|
|
"core-js": "^3.6.2",
|
2019-10-16 06:10:54 -04:00
|
|
|
"crypto-js": "^3.1.9-1",
|
2020-04-22 05:32:25 -04:00
|
|
|
"csurf": "^1.11.0",
|
2018-05-11 04:56:54 -04:00
|
|
|
"d3": "^3.5.16",
|
2014-09-26 09:52:00 -04:00
|
|
|
"dateformat": "1.0.4-1.2.3",
|
2020-05-29 12:55:52 -04:00
|
|
|
"daterangepicker": "git+https://github.com/40thieves/daterangepicker.git#master",
|
2019-10-01 07:30:10 -04:00
|
|
|
"east": "^1.1.0",
|
2020-04-22 10:15:16 -04:00
|
|
|
"express": "4.17.1",
|
|
|
|
"express-bearer-token": "^2.4.0",
|
|
|
|
"express-http-proxy": "^1.6.0",
|
|
|
|
"express-session": "^1.17.1",
|
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",
|
2020-04-22 05:32:25 -04:00
|
|
|
"handlebars": "^4.7.6",
|
|
|
|
"helmet": "^3.22.0",
|
2020-09-16 12:39:00 -04:00
|
|
|
"http-proxy": "^1.18.1",
|
2020-08-18 06:09:28 -04:00
|
|
|
"i18next": "^19.6.3",
|
|
|
|
"i18next-fs-backend": "^1.0.7",
|
|
|
|
"i18next-http-middleware": "^3.0.2",
|
2020-06-30 08:04:48 -04:00
|
|
|
"isomorphic-unfetch": "^3.0.0",
|
2020-01-06 06:22:20 -05:00
|
|
|
"jquery": "^2.2.4",
|
2019-01-17 09:55:51 -05:00
|
|
|
"json2csv": "^4.3.3",
|
2020-04-22 05:32:25 -04:00
|
|
|
"jsonwebtoken": "^8.5.1",
|
2020-09-16 12:39:05 -04:00
|
|
|
"lodash": "^4.17.19",
|
2020-08-14 04:10:18 -04:00
|
|
|
"logger-sharelatex": "^2.2.0",
|
2018-08-04 12:30:24 -04:00
|
|
|
"mailchimp-api-v3": "^1.12.0",
|
2020-09-21 05:43:32 -04:00
|
|
|
"marked": "^0.3.5",
|
2015-06-30 07:04:41 -04:00
|
|
|
"method-override": "^2.3.3",
|
2020-04-22 05:32:25 -04:00
|
|
|
"minimist": "1.2.5",
|
2018-11-15 04:40:33 -05:00
|
|
|
"mmmagic": "^0.5.2",
|
2019-11-18 09:37:05 -05:00
|
|
|
"mocha": "^6.2.2",
|
2020-01-03 05:39:03 -05:00
|
|
|
"moment": "^2.24.0",
|
2020-10-05 04:46:34 -04:00
|
|
|
"mongodb": "^3.6.0",
|
2020-11-03 04:19:05 -05:00
|
|
|
"mongoose": "^5.10.7",
|
2018-12-13 07:54:49 -05:00
|
|
|
"multer": "git+https://github.com/overleaf/multer.git",
|
2020-06-26 05:49:52 -04:00
|
|
|
"nocache": "^2.1.0",
|
2016-02-12 12:13:45 -05:00
|
|
|
"nodemailer": "2.1.0",
|
2017-12-11 06:05:04 -05:00
|
|
|
"nodemailer-mandrill-transport": "^1.2.0",
|
2020-04-22 05:32:25 -04:00
|
|
|
"nodemailer-ses-transport": "^1.5.1",
|
2018-05-11 04:56:54 -04:00
|
|
|
"nvd3": "^1.8.6",
|
2019-05-14 05:27:21 -04:00
|
|
|
"oauth2-server": "^3.0.1",
|
2020-04-07 06:27:33 -04:00
|
|
|
"otplib": "^12.0.1",
|
2020-04-22 05:32:25 -04:00
|
|
|
"p-limit": "^2.3.0",
|
2020-05-12 10:23:47 -04:00
|
|
|
"parse-data-url": "^2.0.0",
|
2020-04-22 10:15:16 -04:00
|
|
|
"passport": "^0.4.1",
|
|
|
|
"passport-google-oauth20": "^2.0.0",
|
2016-09-02 11:17:37 -04:00
|
|
|
"passport-local": "^1.0.0",
|
2020-04-22 05:32:25 -04:00
|
|
|
"passport-oauth2": "^1.5.0",
|
2020-04-22 10:15:16 -04:00
|
|
|
"passport-orcid": "0.0.4",
|
2020-03-12 13:22:27 -04:00
|
|
|
"passport-saml": "^1.3.3",
|
2018-09-18 03:43:02 -04:00
|
|
|
"passport-twitter": "^1.0.4",
|
2020-10-01 11:59:29 -04:00
|
|
|
"pdfjs-dist": "^2.2.228",
|
2020-06-01 09:54:11 -04:00
|
|
|
"prop-types": "^15.7.2",
|
2020-04-22 05:32:25 -04:00
|
|
|
"pug": "^2.0.4",
|
2020-04-07 06:27:33 -04:00
|
|
|
"qrcode": "^1.4.4",
|
2020-06-01 09:54:11 -04:00
|
|
|
"react": "^16.13.1",
|
2020-06-29 09:05:08 -04:00
|
|
|
"react-bootstrap": "^0.33.1",
|
2020-06-01 09:54:11 -04:00
|
|
|
"react-dom": "^16.13.1",
|
2020-09-16 04:53:29 -04:00
|
|
|
"react-error-boundary": "^2.3.1",
|
2020-09-03 05:23:34 -04:00
|
|
|
"react-i18next": "^11.7.1",
|
2020-10-12 06:25:59 -04:00
|
|
|
"react-linkify": "^1.0.0-alpha",
|
2020-06-29 09:05:08 -04:00
|
|
|
"react2angular": "^4.0.6",
|
2020-07-30 04:23:38 -04:00
|
|
|
"redis-sharelatex": "^1.0.13",
|
2020-04-22 05:32:25 -04:00
|
|
|
"request": "^2.88.2",
|
|
|
|
"request-promise-native": "^1.0.8",
|
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",
|
2020-07-22 04:55:35 -04:00
|
|
|
"sanitize-html": "^1.27.1",
|
2014-06-04 11:28:20 -04:00
|
|
|
"sanitizer": "0.1.1",
|
2020-08-24 08:20:54 -04:00
|
|
|
"scroll-into-view-if-needed": "^2.2.25",
|
2019-02-19 09:51:34 -05:00
|
|
|
"settings-sharelatex": "^1.1.0",
|
2014-09-26 09:52:00 -04:00
|
|
|
"underscore": "1.6.0",
|
2019-08-09 05:40:26 -04:00
|
|
|
"url-parse": "^1.4.7",
|
2020-01-06 10:35:35 -05:00
|
|
|
"utf-8-validate": "^5.0.2",
|
2017-01-30 06:09:50 -05:00
|
|
|
"uuid": "^3.0.1",
|
2020-05-12 10:23:47 -04:00
|
|
|
"valid-data-url": "^2.0.0",
|
2018-02-16 12:13:26 -05:00
|
|
|
"valid-url": "^1.0.9",
|
2019-10-05 13:43:21 -04:00
|
|
|
"xml2js": "^0.4.22",
|
2020-04-22 05:32:25 -04:00
|
|
|
"xregexp": "^4.3.0",
|
2019-01-07 06:18:10 -05:00
|
|
|
"yauzl": "^2.10.0"
|
2016-06-02 10:24:10 -04:00
|
|
|
},
|
2014-02-12 05:23:40 -05:00
|
|
|
"devDependencies": {
|
2020-07-09 09:56:33 -04:00
|
|
|
"@babel/register": "^7.10.1",
|
2020-09-25 04:40:19 -04:00
|
|
|
"@storybook/addon-a11y": "^6.0.21",
|
|
|
|
"@storybook/addon-essentials": "^6.0.21",
|
|
|
|
"@storybook/react": "^6.0.21",
|
2020-06-05 06:15:43 -04:00
|
|
|
"@testing-library/dom": "^7.7.3",
|
|
|
|
"@testing-library/react": "^10.0.4",
|
2020-04-29 05:47:24 -04:00
|
|
|
"acorn": "^7.1.1",
|
|
|
|
"acorn-walk": "^7.1.1",
|
2020-09-03 09:45:20 -04:00
|
|
|
"angular-mocks": "~1.8.0",
|
2020-04-15 06:39:42 -04:00
|
|
|
"autoprefixer": "^9.7.6",
|
|
|
|
"babel-eslint": "^10.1.0",
|
|
|
|
"babel-loader": "^8.1.0",
|
2019-07-16 05:13:18 -04:00
|
|
|
"babel-plugin-angularjs-annotate": "^0.10.0",
|
2020-07-13 07:23:04 -04:00
|
|
|
"c8": "^7.2.0",
|
2019-11-18 09:37:05 -05:00
|
|
|
"chai": "^4.2.0",
|
2019-10-01 07:30:10 -04:00
|
|
|
"chai-as-promised": "^7.1.1",
|
2019-10-07 08:13:41 -04:00
|
|
|
"chaid": "^1.0.2",
|
2019-10-05 13:43:21 -04:00
|
|
|
"cheerio": "^1.0.0-rc.3",
|
2020-04-15 06:39:42 -04:00
|
|
|
"copy-webpack-plugin": "^5.1.1",
|
|
|
|
"css-loader": "^3.5.2",
|
|
|
|
"es6-promise": "^4.2.8",
|
2018-02-22 14:25:02 -05:00
|
|
|
"eslint": "^4.18.1",
|
2018-11-05 05:06:39 -05:00
|
|
|
"eslint-config-prettier": "^3.1.0",
|
2018-02-22 14:25:02 -05:00
|
|
|
"eslint-config-standard": "^11.0.0",
|
2018-10-30 06:03:05 -04:00
|
|
|
"eslint-config-standard-jsx": "^5.0.0",
|
|
|
|
"eslint-config-standard-react": "^6.0.0",
|
2018-02-28 06:45:10 -05:00
|
|
|
"eslint-plugin-chai-expect": "^1.1.1",
|
|
|
|
"eslint-plugin-chai-friendly": "^0.4.1",
|
2020-04-15 06:39:42 -04:00
|
|
|
"eslint-plugin-import": "^2.20.2",
|
|
|
|
"eslint-plugin-jsx-a11y": "^6.2.3",
|
2018-10-30 06:03:05 -04:00
|
|
|
"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",
|
2020-04-15 06:39:42 -04:00
|
|
|
"eslint-plugin-react": "^7.19.0",
|
2020-07-20 09:21:36 -04:00
|
|
|
"eslint-plugin-react-hooks": "^4.0.8",
|
2018-02-22 14:25:02 -05:00
|
|
|
"eslint-plugin-standard": "^3.0.1",
|
2019-10-16 06:10:54 -04:00
|
|
|
"expose-loader": "^0.7.5",
|
2020-06-30 08:04:48 -04:00
|
|
|
"fetch-mock": "^9.10.2",
|
2020-01-29 05:25:33 -05:00
|
|
|
"file-loader": "^5.0.2",
|
2020-04-15 06:39:42 -04:00
|
|
|
"glob": "^7.1.6",
|
|
|
|
"handlebars-loader": "^1.7.1",
|
2020-07-09 09:56:33 -04:00
|
|
|
"jsdom": "^16.2.2",
|
|
|
|
"jsdom-global": "^3.0.2",
|
2020-05-06 05:58:36 -04:00
|
|
|
"karma": "^5.0.2",
|
2018-02-12 11:46:36 -05:00
|
|
|
"karma-chai-sinon": "^0.1.5",
|
2020-05-06 05:58:36 -04:00
|
|
|
"karma-chrome-launcher": "^3.1.0",
|
|
|
|
"karma-mocha": "^2.0.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",
|
2019-08-06 08:20:02 -04:00
|
|
|
"karma-webpack": "^4.0.2",
|
2020-05-06 05:58:36 -04:00
|
|
|
"less": "^3.11.1",
|
|
|
|
"less-loader": "^6.0.0",
|
2018-11-16 06:37:29 -05:00
|
|
|
"less-plugin-autoprefix": "^2.0.0",
|
2019-11-28 05:20:22 -05:00
|
|
|
"mini-css-extract-plugin": "^0.8.0",
|
2020-09-07 09:41:41 -04:00
|
|
|
"mkdirp": "0.5.1",
|
2020-04-23 07:51:06 -04:00
|
|
|
"mock-fs": "^4.11.0",
|
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",
|
2019-11-28 05:20:22 -05:00
|
|
|
"optimize-css-assets-webpack-plugin": "^5.0.3",
|
|
|
|
"postcss-loader": "^3.0.0",
|
2018-11-05 05:06:39 -05:00
|
|
|
"prettier-eslint-cli": "^4.7.1",
|
2020-04-15 06:39:42 -04:00
|
|
|
"requirejs": "^2.3.6",
|
2020-03-12 13:22:27 -04:00
|
|
|
"samlp": "^3.4.1",
|
2015-10-09 05:11:38 -04:00
|
|
|
"sandboxed-module": "0.2.0",
|
2019-11-18 09:37:05 -05:00
|
|
|
"sinon": "^7.5.0",
|
2020-04-15 06:39:42 -04:00
|
|
|
"sinon-chai": "^3.5.0",
|
2019-07-18 10:18:56 -04:00
|
|
|
"sinon-mongoose": "^2.3.0",
|
2020-05-06 05:58:36 -04:00
|
|
|
"terser-webpack-plugin": "^2.3.6",
|
2019-08-08 11:23:31 -04:00
|
|
|
"timekeeper": "^2.2.0",
|
2019-10-16 06:10:54 -04:00
|
|
|
"val-loader": "^1.1.1",
|
2020-05-06 05:58:36 -04:00
|
|
|
"webpack": "^4.43.0",
|
2020-04-15 06:39:42 -04:00
|
|
|
"webpack-cli": "^3.3.11",
|
2020-05-29 04:03:48 -04:00
|
|
|
"webpack-dev-server": "^3.11.0",
|
2020-04-15 06:39:42 -04:00
|
|
|
"webpack-manifest-plugin": "^2.2.0",
|
2020-10-01 11:59:29 -04:00
|
|
|
"webpack-merge": "^4.2.2"
|
2014-02-12 05:23:40 -05:00
|
|
|
}
|
|
|
|
}
|