Commit 1d4e6db2 authored by Konstantin Schulz's avatar Konstantin Schulz
Browse files

application can now be built using the production flag

parent 1d8df3d1
......@@ -7,6 +7,8 @@
5. Run `npm i -g ionic`. On UNIX system, you may need to prepend "sudo".
6. 1. Run `ionic serve --no-livereload --no-interactive --no-open` and enjoy!
2. To run it in the background, use: `ionic serve --no-livereload --no-interactive --no-open &`
##Building
To build the application for production use, run: `ionic cordova build browser --prod --release`
## Configuration
### Backend URL
To change the URL for the backend, use the `ionic.config.json` file (proxies > proxyUrl). By default, the system assumes that backend and frontend are installed on the same machine.
......
This diff is collapsed.
{
"name": "mcclient",
"version": "0.6.3",
"version": "0.6.4",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
......@@ -12,42 +12,44 @@
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/animations": "^5.2.11",
"@angular/common": "^5.2.11",
"@angular/compiler": "^5.2.11",
"@angular/compiler-cli": "^5.2.11",
"@angular/core": "^5.2.11",
"@angular/forms": "^5.2.11",
"@angular/http": "^5.2.11",
"@angular/platform-browser": "^5.2.11",
"@angular/platform-browser-dynamic": "^5.2.11",
"@angular/animations": "^7.2.4",
"@angular/common": "^7.2.4",
"@angular/compiler": "^7.2.4",
"@angular/compiler-cli": "^7.2.4",
"@angular/core": "^7.2.4",
"@angular/forms": "^7.2.4",
"@angular/http": "^7.2.4",
"@angular/platform-browser": "^7.2.4",
"@angular/platform-browser-dynamic": "^7.2.4",
"@ionic-native/core": "^5.0.0-beta.21",
"@ionic-native/ionic-webview": "^5.0.0-beta.21",
"@ionic-native/status-bar": "^5.0.0-beta.21",
"@ionic/storage": "^2.2.0",
"@ngx-translate/core": "^9.1.1",
"@ngx-translate/core": "^10.0.2",
"@ngx-translate/http-loader": "^2.0.1",
"@types/d3": "^5.7.0",
"@types/xml2js": "^0.4.3",
"ajv": "^5.0.0",
"ajv": "^6.8.1",
"cordova-android": "^7.1.4",
"cordova-browser": "5.0.4",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^2.2.5",
"cordova-plugin-whitelist": "^1.3.3",
"ionic": "^4.5.0",
"ionic-angular": "3.9.2",
"fsevents": "^1.2.7",
"ionic": "^4.10.2",
"ionic-angular": "^3.9.3",
"ionicons": "^4.4.7",
"node-sass": "^4.11.0",
"rxjs": "^5.5.11",
"rxjs": "^6.4.0",
"rxjs-compat": "^6.4.0",
"socks": "^2.2.2",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "^3.2.1",
"typescript": "^2.6.2"
"@ionic/app-scripts": "^3.2.2",
"typescript": "^3.2.4"
},
"description": "An Ionic project",
"cordova": {
......
......@@ -22,6 +22,12 @@ import {VocabularyProvider} from '../providers/vocabulary/vocabulary';
import {ExerciseParametersPageModule} from "../pages/exercise-parameters/exercise-parameters.module";
import {RankingPageModule} from "../pages/ranking/ranking.module";
import {KwicPageModule} from "../pages/kwic/kwic.module";
// tslint:disable:no-unused-variable
// fake imports so the Angular AOT compiler won't fail
import {OverlayPortal} from "ionic-angular/es2015/components/app/overlay-portal";
import {ClickBlock} from "ionic-angular/es2015/components/app/click-block";
import {Button, Content, Icon, Item, ItemReorder} from "ionic-angular/es2015";
// tslint:enable:no-unused-variable
// The translate loader needs to know where to load i18n files
// in Ionic's static asset pipeline.
......@@ -29,7 +35,7 @@ export function createTranslateLoader(http: HttpClient) {
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
}
class CustomErrorHandler extends IonicErrorHandler {
export class CustomErrorHandler extends IonicErrorHandler {
handleError(err: any): void {
// TODO: send error messages to the backend so we can log them in a file
......@@ -39,7 +45,7 @@ class CustomErrorHandler extends IonicErrorHandler {
@NgModule({
declarations: [
MCclient
MCclient,
],
imports: [
BrowserModule,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment