Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable TS Strict mode and fix linting errors #63

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 39 additions & 22 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,23 +1,40 @@
tests/**/*.js
tests/**/*.d.ts
tests/**/*.metadata.json
src/**/*.js
src/**/*.d.ts
src/**/*.metadata.json
*.map
*.js
*.d.ts
*.metadata.json
.vscode
coverage
documentation
bundles
node_modules
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc
/documentation

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
!src/mqttjs.d.ts
!typings.d.ts
!config/*
!karma.conf.js
!webpack.config.js
!make.js
!clean.js
yarn-error.log
testem.log
/typings

# System Files
.DS_Store
Thumbs.db
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
language: node_js
sudo: false
node_js:
- 7
- 6
- 8
script:
npm test
- npm run lint
- npm test
branches:
only:
- master
Expand All @@ -13,4 +13,4 @@ before_install:

before_script:
- export DISPLAY=:99.0
- sh -e /etc/init.d/xvfb start
- sh -e /etc/init.d/xvfb start
44 changes: 44 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
{
"$schema": "./node_modules/@angular-devkit/core/src/workspace/workspace-schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"ngx-mqtt": {
"root": "projects/ngx-mqtt",
"projectType": "library",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"project": "projects/ngx-mqtt/ng-package.json"
},
"configurations": {
"production": {
"project": "projects/ngx-mqtt/ng-package.prod.json"
}
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/ngx-mqtt/src/test.ts",
"tsConfig": "projects/ngx-mqtt/tsconfig.spec.json",
"karmaConfig": "projects/ngx-mqtt/karma.conf.js"
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/ngx-mqtt/tsconfig.lint.json",
"projects/ngx-mqtt/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
}
}
12 changes: 0 additions & 12 deletions clean.js

This file was deleted.

32 changes: 0 additions & 32 deletions config/helpers.js

This file was deleted.

83 changes: 0 additions & 83 deletions config/karma.conf.js

This file was deleted.

29 changes: 0 additions & 29 deletions config/spec-bundle.js

This file was deleted.

41 changes: 0 additions & 41 deletions config/testing-utils.ts

This file was deleted.

Loading