Skip to content
This repository has been archived by the owner on Oct 2, 2019. It is now read-only.

build (travis): add prod build #254

Merged
merged 8 commits into from May 28, 2018
Merged
8 changes: 6 additions & 2 deletions .travis.yml
Expand Up @@ -14,9 +14,13 @@ addons:
chrome: stable

before_script:
- yarn global add @angular/cli
- yarn global add @angular/cli

script: ng test --reporters=spec --browser=ChromeHeadless --single-run=true
script:
- ng test --reporters=spec --browser=ChromeHeadless --single-run=true
# this should really be fixed in the package itself
- cp fixes/jdnconvertiblecalendardateadapter/index.d.ts node_modules/jdnconvertiblecalendardateadapter/dist/index.d.ts
- ng build --prod --build-optimizer

notifications:
slack:
Expand Down
36 changes: 36 additions & 0 deletions fixes/jdnconvertiblecalendardateadapter/index.d.ts
@@ -0,0 +1,36 @@
/*
* Copyright © 2016 Lukas Rosenthaler, André Kilchenmann, Andreas Aeschlimann,
* Sofia Georgakopoulou, Ivan Subotic, Benjamin Geer, Tobias Schweizer.
* This file is part of SALSAH.
* SALSAH is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published
* by the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
* SALSAH is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* You should have received a copy of the GNU Affero General Public
* License along with SALSAH. If not, see <http://www.gnu.org/licenses/>.
*/

import {NgModule} from '@angular/core';
import {DateAdapter, MAT_DATE_FORMATS, MAT_DATE_LOCALE, MAT_DATE_LOCALE_PROVIDER} from '@angular/material';
import {MAT_JDN_DATE_FORMATS} from 'jdnconvertiblecalendardateadapter/dist/JDNConvertibleCalendar-date-formats';
import {JDNConvertibleCalendarDateAdapter} from 'jdnconvertiblecalendardateadapter';

@NgModule({
providers: [
MAT_DATE_LOCALE_PROVIDER,
{provide: DateAdapter, useClass: JDNConvertibleCalendarDateAdapter, deps: [MAT_DATE_LOCALE]}
]
})
export declare class JDNConvertibleCalendarDateAdapterModule {
}

@NgModule({
imports: [JDNConvertibleCalendarDateAdapterModule],
providers: [{provide: MAT_DATE_FORMATS, useValue: MAT_JDN_DATE_FORMATS}],
})
export declare class MatJDNConvertibleCalendarDateAdapterModule {
}
export { JDNConvertibleCalendarDateAdapter } from './JDNConvertibleCalendarDateAdapter';
15 changes: 0 additions & 15 deletions src/app/app-routing.module.ts
Expand Up @@ -38,7 +38,6 @@ import {SystemUsersComponent} from './view/dashboard/system/system-users/system-
import {SystemProjectsComponent} from './view/dashboard/system/system-projects/system-projects.component';
import {SystemOntologiesComponent} from './view/dashboard/system/system-ontologies/system-ontologies.component';
import {SearchResultsComponent} from './view/search/search-results/search-results.component';
import {FileUploaderComponent} from './view/modules/form/file-uploader/file-uploader.component';
import {UserFormComponent} from './view/modules/form/user-form/user-form.component';
import {FormCreateComponent} from './view/test/development/form-create/form-create.component';
import {ResourceObjectComponent} from './view/modules/object/resource-object/resource-object.component';
Expand Down Expand Up @@ -181,16 +180,6 @@ const appRoutes: Routes = [
path: 'progress-indicator',
component: ProgressIndicatorComponent
},
{
path: 'upload',
component: FileUploaderComponent,
data: {
maxFiles: 5,
formType: 'admin',
viewType: 'url'

}
},
{
path: 'form/:name', component: FormCreateComponent,
children: [
Expand Down Expand Up @@ -218,10 +207,6 @@ const appRoutes: Routes = [
path: 'dialog',
component: DialogTestComponent
},
{
path: 'uploader',
component: FileUploaderComponent
},
{
path: 'new-user',
component: UserFormComponent
Expand Down
2 changes: 0 additions & 2 deletions src/app/app.module.ts
Expand Up @@ -98,7 +98,6 @@ import {ResourceTypesListComponent} from './view/modules/listing/resource-types-
import {CollectionsListComponent} from './view/modules/listing/collections-list/collections-list.component';
import {SearchResultsComponent} from './view/search/search-results/search-results.component';
import {ResourceObjectComponent} from './view/modules/object/resource-object/resource-object.component';
import {FileUploaderComponent} from './view/modules/form/file-uploader/file-uploader.component';
import {DndDirective} from './view/modules/other/dnd.directive';
import {ResizeGridDirective} from './view/modules/other/resize-grid.directive';
import {FormCreateComponent} from './view/test/development/form-create/form-create.component';
Expand Down Expand Up @@ -253,7 +252,6 @@ export function HttpLoaderFactory(httpClient: HttpClient) {
CollectionsListComponent,
SearchResultsComponent,
ResourceObjectComponent,
FileUploaderComponent,
DndDirective,
ResizeGridDirective,
FormCreateComponent,
Expand Down
131 changes: 0 additions & 131 deletions src/app/view/modules/form/file-uploader/file-uploader.component.html

This file was deleted.