Skip to content

Commit

Permalink
Update to Angular6 and use CLI to build the library
Browse files Browse the repository at this point in the history
  • Loading branch information
chrste90 committed Apr 8, 2018
1 parent 84b58a8 commit 71ff3c4
Show file tree
Hide file tree
Showing 27 changed files with 8,629 additions and 7,498 deletions.
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
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
language: node_js
sudo: false
node_js:
- 7
- 6
- 8
script:
npm test
branches:
Expand All @@ -13,4 +12,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

0 comments on commit 71ff3c4

Please sign in to comment.