Travis linting and some minor changes

* properly ignore multiple virtual environments and vscode folders

* use scss instead of css in app.component

* remove yarn from client

* remove deprication error

* auditing packages

* updating travis to work with the new client
This commit is contained in:
Jochen Saalfeld 2018-08-28 09:33:50 +02:00
parent 3fced15d7f
commit f8d29d083a
No known key found for this signature in database
GPG Key ID: 8ACD4E8264B67DF4
10 changed files with 2433 additions and 10698 deletions

7
.gitignore vendored
View File

@ -6,7 +6,7 @@
*~ *~
# Virtual Environment # Virtual Environment
.virtualenv/* .virtualenv*/*
.venv/* .venv/*
# Javascript tools and libraries # Javascript tools and libraries
@ -60,10 +60,6 @@ client/node_modules
# IDE - VSCode # IDE - VSCode
.vscode/* .vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
# misc # misc
Compodoc Compodoc
@ -75,6 +71,7 @@ client/npm-debug.log
client/yarn-error.log client/yarn-error.log
client/testem.log client/testem.log
client/typings client/typings
client/yarn.lock
# System Files # System Files
client/.DS_Store client/.DS_Store

View File

@ -17,13 +17,10 @@ install:
- pip install --upgrade setuptools pip - pip install --upgrade setuptools pip
- pip install --upgrade --requirement requirements.txt - pip install --upgrade --requirement requirements.txt
- pip freeze - pip freeze
- yarn - cd client && npm install && cd ..
- node_modules/.bin/gulp --production
script: script:
- flake8 openslides tests - flake8 openslides tests
- isort --check-only --diff --recursive openslides tests - isort --check-only --diff --recursive openslides tests
- python -m mypy openslides/ - python -m mypy openslides/
- node_modules/.bin/gulp jshint
- node_modules/.bin/karma start --browsers PhantomJS tests/karma/karma.conf.js
- pytest --cov --cov-fail-under=70 - pytest --cov --cov-fail-under=70
- cd client && npm run-script lint && cd ..

5678
client/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -50,7 +50,7 @@
"husky": "^0.14.3", "husky": "^0.14.3",
"jasmine-core": "~2.99.1", "jasmine-core": "~2.99.1",
"jasmine-spec-reporter": "~4.2.1", "jasmine-spec-reporter": "~4.2.1",
"karma": "^2.0.4", "karma": "^3.0.0",
"karma-chrome-launcher": "~2.2.0", "karma-chrome-launcher": "~2.2.0",
"karma-coverage-istanbul-reporter": "~2.0.0", "karma-coverage-istanbul-reporter": "~2.0.0",
"karma-jasmine": "~1.1.1", "karma-jasmine": "~1.1.1",
@ -58,7 +58,7 @@
"npm-run-all": "^4.1.3", "npm-run-all": "^4.1.3",
"prettier": "^1.13.6", "prettier": "^1.13.6",
"pretty-quick": "^1.6.0", "pretty-quick": "^1.6.0",
"protractor": "~5.3.0", "protractor": "^5.4.0",
"ts-node": "~5.0.1", "ts-node": "~5.0.1",
"tslint": "~5.9.1", "tslint": "~5.9.1",
"typescript": "~2.7.2" "typescript": "~2.7.2"

View File

@ -1 +1,3 @@
<router-outlet></router-outlet> <div class="content">
<router-outlet></router-outlet>
</div>

View File

@ -0,0 +1,3 @@
.content {
flex: 1;
}

View File

@ -9,7 +9,7 @@ import { NotifyService } from './core/services/notify.service';
@Component({ @Component({
selector: 'app-root', selector: 'app-root',
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrls: ['./app.component.css'] styleUrls: ['./app.component.scss']
}) })
export class AppComponent { export class AppComponent {
/** /**

View File

@ -30,17 +30,16 @@ export abstract class OpenSlidesComponent {
*/ */
get DS(): DataStoreService { get DS(): DataStoreService {
if (OpenSlidesComponent._DS == null) { if (OpenSlidesComponent._DS == null) {
// tslint:disable-next-line const injector = Injector.create({
const injector = Injector.create( providers: [
[
{ {
provide: DataStoreService, provide: DataStoreService,
useClass: DataStoreService, useClass: DataStoreService,
deps: [CacheService] deps: [CacheService]
} }
], ],
RootInjector.injector parent: RootInjector.injector
); });
OpenSlidesComponent._DS = injector.get(DataStoreService); OpenSlidesComponent._DS = injector.get(DataStoreService);
} }
return OpenSlidesComponent._DS; return OpenSlidesComponent._DS;

File diff suppressed because it is too large Load Diff