Compare commits

...

2 Commits

Author SHA1 Message Date
timvisee
5d3d9339b8 Update dependencies 2020-10-15 16:36:38 +02:00
timvisee
94e826e1e2 Fix incorrect development server port in documentation 2020-10-15 16:12:50 +02:00
6 changed files with 1967 additions and 809 deletions

View File

@@ -45,7 +45,7 @@ npm install
npm start
```
Then, browse to http://localhost:8080
Then, browse to http://localhost:1337
---
@@ -100,7 +100,7 @@ see also [docs/deployment.md](docs/deployment.md)
## Android
The android implementation is contained in the `android` directory, and can be viewed locally for easy testing and editing by running `ANDROID=1 npm start` and then visiting <http://localhost:8080>. CSS and image files are located in the `android/app/src/main/assets` directory.
The android implementation is contained in the `android` directory, and can be viewed locally for easy testing and editing by running `ANDROID=1 npm start` and then visiting <http://localhost:1337>. CSS and image files are located in the `android/app/src/main/assets` directory.
---

View File

@@ -2,7 +2,7 @@ Send has two build configurations, development and production. Both can be run v
# Development
`npm start` launches a `webpack-dev-server` on port 8080 that compiles the assets and watches files for changes. It also serves the backend API and frontend unit tests via the `server/bin/dev.js` entrypoint. The frontend tests can be run in the browser by navigating to http://localhost:8080/test and will rerun automatically as the watched files are saved with changes.
`npm start` launches a `webpack-dev-server` on port 1337 that compiles the assets and watches files for changes. It also serves the backend API and frontend unit tests via the `server/bin/dev.js` entrypoint. The frontend tests can be run in the browser by navigating to http://localhost:8080/test and will rerun automatically as the watched files are saved with changes.
# Production
@@ -19,4 +19,4 @@ Send has two build configurations, development and production. Both can be run v
# Custom Loaders
The `build/` directory contains custom webpack loaders specific to Send. See [build/readme.md](../build/readme.md) for details on each loader.
The `build/` directory contains custom webpack loaders specific to Send. See [build/readme.md](../build/readme.md) for details on each loader.

2732
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -61,32 +61,32 @@
"node": "^12.16.3"
},
"devDependencies": {
"@babel/core": "^7.10.5",
"@babel/core": "^7.12.0",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/preset-env": "^7.10.4",
"@babel/preset-env": "^7.12.0",
"@dannycoates/webcrypto-liner": "^0.1.37",
"@fullhuman/postcss-purgecss": "^1.3.0",
"@mattiasbuelens/web-streams-polyfill": "0.2.1",
"@sentry/browser": "^5.20.1",
"@sentry/browser": "^5.26.0",
"asmcrypto.js": "^0.22.0",
"babel-loader": "^8.0.6",
"babel-plugin-istanbul": "^5.2.0",
"base64-js": "^1.3.1",
"content-disposition": "^0.5.3",
"copy-webpack-plugin": "^5.0.5",
"copy-webpack-plugin": "^5.1.2",
"core-js": "^3.4.0",
"cross-env": "^6.0.3",
"css-loader": "^3.2.0",
"css-loader": "^3.6.0",
"css-mqpacker": "^7.0.0",
"cssnano": "^4.1.10",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"eslint-config-prettier": "^6.12.0",
"eslint-plugin-mocha": "^6.2.1",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-security": "^1.4.0",
"expose-loader": "^0.7.5",
"extract-loader": "^3.1.0",
"extract-loader": "^3.2.0",
"extract-text-webpack-plugin": "^4.0.0-beta.0",
"fast-text-encoding": "^1.0.3",
"file-loader": "^4.2.0",
@@ -94,7 +94,7 @@
"html-loader": "^0.5.5",
"http_ece": "^1.1.0",
"husky": "^3.0.9",
"intl-pluralrules": "^1.1.1",
"intl-pluralrules": "^1.2.2",
"lint-staged": "^9.4.2",
"mocha": "^6.2.2",
"morgan": "^1.9.1",
@@ -119,7 +119,7 @@
"stylelint-no-unsupported-browser-features": "^3.0.2",
"svgo": "^1.3.2",
"svgo-loader": "^2.2.1",
"tailwindcss": "^1.1.3",
"tailwindcss": "^1.9.2",
"val-loader": "^1.1.1",
"webpack": "4.38.0",
"webpack-cli": "^3.3.12",
@@ -132,10 +132,10 @@
"@dannycoates/express-ws": "^5.0.3",
"@fluent/bundle": "^0.13.0",
"@fluent/langneg": "^0.3.0",
"@google-cloud/storage": "^5.1.2",
"@peculiar/webcrypto": "^1.1.1",
"@sentry/node": "^5.20.1",
"aws-sdk": "^2.568.0",
"@google-cloud/storage": "^5.3.0",
"@peculiar/webcrypto": "^1.1.3",
"@sentry/node": "^5.26.0",
"aws-sdk": "^2.771.0",
"body-parser": "^1.19.0",
"choo": "^7.0.0",
"cldr-core": "^35.1.0",
@@ -145,10 +145,10 @@
"helmet": "^3.23.3",
"mkdirp": "^0.5.1",
"mozlog": "^2.2.0",
"node-fetch": "^2.6.0",
"node-fetch": "^2.6.1",
"redis": "^3.0.2",
"selenium-standalone": "^6.15.6",
"ua-parser-js": "^0.7.21"
"selenium-standalone": "^6.20.1",
"ua-parser-js": "^0.7.22"
},
"availableLanguages": [
"en-US",

View File

@@ -24,7 +24,7 @@ module.exports = function(app, devServer) {
.toString()
.replace(
'<base href="file:///android_asset/" />',
'<base href="http://localhost:8080/" />'
'<base href="http://localhost:1337/" />'
);
res.set('Content-Type', 'text/html');
res.send(index);

View File

@@ -6,7 +6,7 @@ To run all the tests use `npm test`. This will run the tests and produce a code
Unit tests reside in `test/frontend/tests`.
Frontend tests can be ran in the browser by running `npm start` and then browsing to http://localhost:8080/test. Doing it this way will watch for changes and rerun the suite automatically.
Frontend tests can be ran in the browser by running `npm start` and then browsing to http://localhost:1337/test. Doing it this way will watch for changes and rerun the suite automatically.
You can also run them in headless Chrome by using `npm run test:frontend`. The results will be printed to the console.