Skip to content

Commit

Permalink
chore: upgrade angular files, add semantic release (#535)
Browse files Browse the repository at this point in the history
* chore: upgrade angular files, add semantic release

* whoops

* docs: add github button instead of large github svg

* build: fix ts settings

* revert tslint changes

* revert change to karma styles
  • Loading branch information
scttcper authored Aug 14, 2018
1 parent b668d5b commit eee8b41
Show file tree
Hide file tree
Showing 27 changed files with 11,223 additions and 6,718 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ node_js: 10
addons:
chrome: stable
script:
- npm run build
- npm run lint
- npm run bundlesize
- npm run test:ci
- npm run build
- npm run bundlesize
after_success:
- bash <(curl -s https://codecov.io/bash)
- npm run travis-deploy-once "npm run semantic-release"
- npm run ghpages
deploy:
provider: pages
Expand All @@ -19,6 +20,5 @@ deploy:
on:
branch: master
notifications:
email:
on_success: never
on_failure: change
email: false

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Scott Cooper
Copyright (c) 2018 Scott Cooper

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
58 changes: 28 additions & 30 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,20 @@
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "app",
"schematics": {},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist",
"index": "src/index.html",
"main": "src/main.ts",
"tsConfig": "src/tsconfig.app.json",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/assets",
"src/favicon.ico"
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
Expand All @@ -27,6 +29,12 @@
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
Expand All @@ -35,13 +43,7 @@
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": true,
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
]
"buildOptimizer": true
}
}
},
Expand All @@ -66,22 +68,25 @@
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "src/test.ts",
"karmaConfig": "./karma.conf.js",
"browsers": "ChromeCI",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.spec.json",
"scripts": [],
"karmaConfig": "src/karma.conf.js",
"styles": [
"src/styles.scss"
],
"scripts": [],
"assets": [
"src/assets",
"src/favicon.ico"
"src/favicon.ico",
"src/assets"
]
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"format": "stylish",
"typeCheck": true,
"tsConfig": [
"src/tsconfig.app.json",
"src/tsconfig.spec.json"
Expand All @@ -94,23 +99,25 @@
}
},
"ngx-toastr-e2e": {
"root": "",
"sourceRoot": "",
"root": "e2e/",
"projectType": "application",
"architect": {
"e2e": {
"builder": "@angular-devkit/build-angular:protractor",
"options": {
"protractorConfig": "./protractor.conf.js",
"protractorConfig": "e2e/protractor.conf.js",
"devServerTarget": "ngx-toastr:serve"
},
"configurations": {
"production": {
"devServerTarget": "ngx-toastr:serve:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"e2e/tsconfig.e2e.json"
],
"tsConfig": "e2e/tsconfig.e2e.json",
"exclude": [
"**/node_modules/**"
]
Expand All @@ -119,14 +126,5 @@
}
}
},
"defaultProject": "ngx-toastr",
"schematics": {
"@schematics/angular:component": {
"prefix": "app",
"styleext": "scss"
},
"@schematics/angular:directive": {
"prefix": "app"
}
}
"defaultProject": "ngx-toastr"
}
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions e2e/tsconfig.e2e.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"outDir": "../out-tsc/e2e",
"baseUrl": "./",
"outDir": "../out-tsc/app",
"module": "commonjs",
"target": "es5",
"types": [
Expand Down
Loading

0 comments on commit eee8b41

Please sign in to comment.