Skip to content

Commit

Permalink
chore(package): update Angular from 7.2.15 to 8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yisraelx committed Jun 16, 2019
1 parent f2c5a6f commit 8daa73a
Show file tree
Hide file tree
Showing 8 changed files with 1,262 additions and 1,435 deletions.
4 changes: 2 additions & 2 deletions .compodocrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"$schema": "./node_modules/@compodoc/compodoc/src/config/schema.json",
"tsconfig": "src/tsconfig.json",
"theme": "material",
"output": "dist/docs",
"unitTestCoverage": "coverage/coverage-summary.json",
"output": "dist/page/docs",
"customFavicon": "demo/src/favicon.ico",
"disableLifeCycleHooks": true,
"disableRoutesGraph": true,
"disablePrivate": true,
"disableInternal": true
}
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ dist: trusty
sudo: false
language: node_js
node_js:
- '8.9.4'
- '10'
cache:
yarn: true
directories:
Expand Down
3 changes: 3 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"typeCheck": true,
"tsConfig": [
"src/tsconfig.json",
"src/__tests__/tsconfig.json"
Expand Down Expand Up @@ -76,6 +77,7 @@
"configurations": {
"production": {
"outputPath": "dist/page",
"baseHref": "/ngx-showdown/",
"fileReplacements": [
{
"replace": "demo/src/environments/environment.ts",
Expand Down Expand Up @@ -121,6 +123,7 @@
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"typeCheck": true,
"tsConfig": [
"demo/tsconfig.json"
],
Expand Down
2 changes: 1 addition & 1 deletion demo/browserslist
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@
last 2 versions
Firefox ESR
not dead
not IE 9-11
IE 9-11
64 changes: 63 additions & 1 deletion demo/src/polyfills.ts
Original file line number Diff line number Diff line change
@@ -1 +1,63 @@
import 'zone.js/dist/zone';
/**
* This file includes polyfills needed by Angular and is loaded before the app.
* You can add your own extra polyfills to this file.
*
* This file is divided into 2 sections:
* 1. Browser polyfills. These are applied before loading ZoneJS and are sorted by browsers.
* 2. Application imports. Files imported after ZoneJS that should be loaded before your main
* file.
*
* The current setup is for so-called "evergreen" browsers; the last versions of browsers that
* automatically update themselves. This includes Safari >= 10, Chrome >= 55 (including Opera),
* Edge >= 13 on the desktop, and iOS 10 and Chrome on mobile.
*
* Learn more in https://angular.io/guide/browser-support
*/

/***************************************************************************************************
* BROWSER POLYFILLS
*/

/** IE10 and IE11 requires the following for NgClass support on SVG elements */
import 'classlist.js'; // Run `npm install --save classlist.js`

/**
* Web Animations `@angular/platform-browser/animations`
* Only required if AnimationBuilder is used within the application and using IE/Edge or Safari.
* Standard animation support in Angular DOES NOT require any polyfills (as of Angular 6.0).
*/
import 'web-animations-js'; // Run `npm install --save web-animations-js`.

/**
* By default, zone.js will patch all possible macroTask and DomEvents
* user can disable parts of macroTask/DomEvents patch by setting following flags
* because those flags need to be set before `zone.js` being loaded, and webpack
* will put import in the top of bundle, so user need to create a separate file
* in this directory (for example: zone-flags.ts), and put the following flags
* into that file, and then add the following code before importing zone.js.
* import './zone-flags.ts';
*
* The flags allowed in zone-flags.ts are listed here.
*
* The following flags will work for all browsers.
*
* (window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
* (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
* (window as any).__zone_symbol__UNPATCHED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
*
* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
* with the following flag, it will bypass `zone.js` patch for IE/Edge
*
* (window as any).__Zone_enable_cross_context_check = true;
*
*/

/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
import 'zone.js/dist/zone'; // Included with Angular CLI.


/***************************************************************************************************
* APPLICATION IMPORTS
*/
92 changes: 46 additions & 46 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
{
"name": "ngx-showdown",
"description": "A Angular (>=2) integration for Showdown",
"version": "0.0.0-semantically-released",
"license": "MIT",
"author": {
"name": "Yisrael Eliav",
"email": "yisraelx@gmail.com",
"url": "https://github.com/yisraelx/"
},
"description": "A Angular (>=2) integration for Showdown",
"keywords": [
"ng",
"ng2",
Expand All @@ -22,31 +16,37 @@
"parse",
"parser"
],
"license": "MIT",
"author": {
"name": "Yisrael Eliav",
"email": "yisraelx@gmail.com",
"url": "https://github.com/yisraelx/"
},
"homepage": "http://yisraelx.github.io/ngx-showdown",
"repository": {
"type": "git",
"url": "https://github.com/yisraelx/ngx-showdown.git"
},
"bugs": {
"url": "https://github.com/yisraelx/ngx-showdown/issues"
},
"homepage": "http://yisraelx.github.io/ngx-showdown",
"scripts": {
"build": "run-s build:*",
"build:lib": "ng build lib",
"build:demo": "ng build demo",
"build:docs": "compodoc",
"ci:script": "yarn verify",
"ci:after": "run-s coverage release deploy",
"coverage": "codecov -f coverage/coverage-final.json",
"coverage": "codecov --file coverage/coverage-final.json",
"clean": "rimraf dist coverage",
"commit": "git-cz",
"demo": "ng serve demo --open",
"deploy": "gh-pages -d dist/page -r https://$GH_TOKEN@github.com/yisraelx/ngx-showdown.git -m \"chore: update\" -x",
"demo": "ng serve demo --watch --open",
"deploy": "gh-pages --dist dist/page --repo https://$GH_TOKEN@github.com/yisraelx/ngx-showdown.git --message \"chore: update\" --silent",
"docs": "compodoc --serve --watch --open",
"lint": "run-s lint:*",
"lint:demo": "ng lint demo --type-check",
"lint:lib": "ng lint lib --type-check",
"predeploy": "yarn build:demo --prod --base-href /ngx-showdown/ && yarn build:docs --output dist/page/docs",
"lint:demo": "ng lint demo",
"lint:lib": "ng lint lib",
"predeploy": "yarn build:demo --prod && yarn build:docs",
"prerelease": "yarn build:lib",
"verify": "run-s clean lint test:shell",
"release": "semantic-release",
Expand All @@ -66,72 +66,72 @@
]
},
"release": {
"pkgRoot": "dist/src"
"pkgRoot": "dist/lib"
},
"config": {
"commitizen": {
"path": "@commitlint/prompt"
}
},
"peerDependencies": {
"@angular/common": "^7.2.15",
"@angular/core": "^7.2.15",
"@angular/platform-browser": "^7.2.15",
"@angular/common": "^8.0.0",
"@angular/core": "^8.0.0",
"@angular/platform-browser": "^8.0.0",
"@types/showdown": "^1.9.3",
"showdown": "^1.9.0"
},
"devDependencies": {
"@angular-devkit/build-angular": "^0.13.9",
"@angular-devkit/build-ng-packagr": "^0.13.9",
"@angular/animations": "^7.2.15",
"@angular/cdk": "^7.3.7",
"@angular/cli": "^7.3.9",
"@angular/common": "^7.2.15",
"@angular/compiler": "^7.2.15",
"@angular/compiler-cli": "^7.2.15",
"@angular/core": "^7.2.15",
"@angular/forms": "^7.2.15",
"@angular/language-service": "^7.2.15",
"@angular/material": "^7.3.7",
"@angular/platform-browser": "^7.2.15",
"@angular/platform-browser-dynamic": "^7.2.15",
"@angular/router": "^7.2.15",
"@angular-devkit/build-angular": "^0.800.3",
"@angular-devkit/build-ng-packagr": "^0.800.3",
"@angular/animations": "^8.0.1",
"@angular/cdk": "^8.0.1",
"@angular/cli": "^8.0.3",
"@angular/common": "^8.0.1",
"@angular/compiler": "^8.0.1",
"@angular/compiler-cli": "^8.0.1",
"@angular/core": "^8.0.1",
"@angular/forms": "^8.0.1",
"@angular/language-service": "^8.0.1",
"@angular/material": "^8.0.1",
"@angular/platform-browser": "^8.0.1",
"@angular/platform-browser-dynamic": "^8.0.1",
"@angular/router": "^8.0.1",
"@commitlint/cli": "^8.0.0",
"@commitlint/config-conventional": "^8.0.0",
"@commitlint/prompt": "^8.0.0",
"@compodoc/compodoc": "^1.1.8",
"@compodoc/compodoc": "1.1.8",
"@types/jasmine": "^3.3.12",
"@types/jasminewd2": "^2.0.6",
"@types/node": "^8.9.4",
"@types/node": "^12.0.8",
"@types/showdown": "^1.9.3",
"classlist.js": "^1.1.20150312",
"codecov": "^3.5.0",
"codelyzer": "^5.1.0",
"commitizen": "^3.1.1",
"core-js": "^2.6.5",
"gh-pages": "^2.0.1",
"hammerjs": "^2.0.8",
"husky": "^2.3.0",
"husky": "^2.4.1",
"jasmine-core": "^3.4.0",
"jasmine-spec-reporter": "^4.2.1",
"karma": "^4.1.0",
"karma-chrome-launcher": "^2.2.0",
"karma-coverage-istanbul-reporter": "^2.0.5",
"karma-jasmine": "^2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"ng-packagr": "^4.7.1",
"ng-packagr": "^5.3.0",
"npm-run-all": "^4.1.5",
"protractor": "^5.4.2",
"rimraf": "^2.6.3",
"rxjs": "^6.5.1",
"semantic-release": "^15.13.12",
"rxjs": "^6.5.2",
"semantic-release": "^15.13.16",
"showdown": "^1.9.0",
"showdown-highlight": "^2.1.3",
"ts-node": "^8.1.0",
"tsickle": ">=0.34.0",
"tslib": "^1.9.3",
"ts-node": "^8.3.0",
"tsickle": "^0.35.0",
"tslib": "^1.10.0",
"tslint": "^5.17.0",
"typescript": "~3.2.4",
"typescript": "~3.4.5",
"web-animations-js": "^2.3.1",
"yarn": "^1.16.0",
"zone.js": "~0.8.26"
"zone.js": "~0.9.1"
}
}
2 changes: 1 addition & 1 deletion src/__tests__/showdown.module.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ describe('ShowdownModule', () => {
template: '<showdown>__Some__</showdown>'
})
class SomeComponent {
@ViewChild(ShowdownComponent) component: ShowdownComponent;
@ViewChild(ShowdownComponent, {static: true}) component: ShowdownComponent;
}

let moduleFixtureShowdownConfig: ShowdownConfig = {noHeaderId: true, color: 'red', flavor: 'ghost'};
Expand Down
Loading

0 comments on commit 8daa73a

Please sign in to comment.