ng2-awesome-disqus
Advanced tools
Comparing version 0.2.0 to 1.0.0
@@ -7,2 +7,5 @@ /** | ||
/** To log like console.log().. */ | ||
var gutil = require('gulp-util'); | ||
/** del to remove dist directory */ | ||
@@ -65,4 +68,11 @@ const del = require('del'); | ||
]; | ||
var defaults = { | ||
base: '/src', | ||
target: 'es5', | ||
useRelativePaths: true | ||
}; | ||
var tsResult = gulp.src(sourceTsFile) | ||
.pipe(embedTemplates({base: './src/share'})) | ||
.pipe(embedTemplates(defaults)) | ||
.pipe(sourcemaps.init()) | ||
@@ -79,3 +89,3 @@ .pipe(typescript(tsProject)); | ||
.pipe(gulp.dest(config.OutputDir)) | ||
]); | ||
]); | ||
@@ -98,3 +108,3 @@ }); | ||
var processors = [ | ||
stripInlineComments, | ||
stripInlineComments, | ||
autoprefixer, | ||
@@ -114,2 +124,3 @@ cssnano | ||
gulp.task('default', ['ts-lint', 'compile-ts']); | ||
gulp.task('default', ['ts-lint', 'compile-ts']); | ||
gulp.task('default', ['compile-ts']); |
{ | ||
"name": "ng2-awesome-disqus", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"description": "Angular 2 Disqus component", | ||
@@ -16,3 +16,4 @@ "repository": { | ||
"angular2", | ||
"angular" | ||
"angular", | ||
"comments" | ||
], | ||
@@ -28,16 +29,24 @@ "author": "Murhaf Sousli <murhafsousi@gmail.com>", | ||
"dependencies": { | ||
"@angular/common": "2.0.0-rc.6", | ||
"@angular/core": "2.0.0-rc.6", | ||
"@angular/platform-browser": "2.0.0-rc.6", | ||
"@angular/router": "3.0.0-rc.2", | ||
"@angular/http": "2.0.0-rc.6", | ||
"@angular/common": "2.0.0", | ||
"@angular/compiler": "2.0.0", | ||
"@angular/core": "2.0.0", | ||
"@angular/http": "2.0.0", | ||
"@angular/platform-browser": "2.0.0", | ||
"@angular/router": "3.0.0", | ||
"core-js": "^2.4.1", | ||
"rxjs": "5.0.0-beta.11", | ||
"rxjs": "^5.0.0-beta.12", | ||
"zone.js": "^0.6.17" | ||
}, | ||
"peerDependencies": { | ||
"@angular/core": "2.0.0-rc.6" | ||
"@angular/common": "2.0.0", | ||
"@angular/compiler": "2.0.0", | ||
"@angular/core": "2.0.0", | ||
"@angular/http": "2.0.0", | ||
"@angular/platform-browser": "2.0.0", | ||
"@angular/router": "3.0.0", | ||
"core-js": "^2.4.1", | ||
"rxjs": "^5.0.0-beta.12", | ||
"zone.js": "^0.6.17" | ||
}, | ||
"devDependencies": { | ||
"@types/core-js": "^0.9.32", | ||
"angular2-template-loader": "^0.5.0", | ||
@@ -55,4 +64,5 @@ "autoprefixer": "^6.4.0", | ||
"gulp-uglify": "^2.0.0", | ||
"gulp-util": "^3.0.7", | ||
"merge2": "^1.0.2", | ||
"postcss-scss": "^0.2.1", | ||
"postcss-scss": "^0.3.0", | ||
"postcss-strip-inline-comments": "^0.1.5", | ||
@@ -59,0 +69,0 @@ "tslint": "^3.15.1", |
@@ -6,3 +6,3 @@ # Angular 2 Disqus [![npm](https://img.shields.io/npm/v/ng2-awesome-disqus.svg?maxAge=2592000?style=plastic)](https://github.com/MurhafSousli/ng2-awesome-disqus) [![Build Status](https://travis-ci.org/MurhafSousli/ng2-disqus.svg?branch=master)](https://travis-ci.org/MurhafSousli/ng2-disqus) [![npm](https://img.shields.io/npm/dt/ng2-awesome-disqus.svg?maxAge=2592000)](https://www.npmjs.com/package/ng2-awesome-disqus) | ||
Angular 2 Disqus comment system | ||
Angular 2 Disqus comment system | [live demo](https://murhafsousli.github.io/ng2-disqus/) | ||
@@ -17,3 +17,15 @@ ## Installation | ||
Add `DisqusModule` to **NgModule** `imports` array. | ||
``` | ||
import {DisqusModule} from "ng2-awesome-disqus"; | ||
@NgModule({ | ||
imports: [ | ||
DisqusModule | ||
] | ||
}) | ||
``` | ||
In your template | ||
``` | ||
<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" ></disqus> | ||
@@ -24,8 +36,7 @@ ``` | ||
It's highly recommended to read the official Disqus docs [JavaScript configuration variables](https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables) before setting these inputs. | ||
It's highly recommended to read Disqus official documentation ([JavaScript configuration variables](https://help.disqus.com/customer/portal/articles/472098-javascript-configuration-variables)) before setting these inputs. | ||
``` | ||
<disqus [shortname]="disqusShortname" [identifier]="pageIdentifier" | ||
[url]="customUrl" [categoryId]="catId" | ||
[lang]="'en'" | ||
[url]="customUrl" [categoryId]="catId" [lang]="'en'" | ||
@@ -35,7 +46,5 @@ [removeOnDestroy]="true" | ||
``` | ||
by default the component will reset *Disqus* configurations after its view initializes again, to remove *Disqus* script completely on component destroy, | ||
set `[removeOnDestroy]="true"` (you won't need this option unless you change the site theme as in the preview). | ||
**ng2-awesome-disqus** uses `ChangeDetectionStrategy.OnPush`, so the inputs won't detect changes if bound to variables (why would you need change detection here anyway!). | ||
The input `[removeOnDestroy]` explains it self, you should ONLY set it to true if your app has dynamic theme, this will load *Disqus* script every time the component initializes and it will let *Disqus* to decide the appropriate colors for you, just like in this [Demo](https://murhafsousli.github.io/ng2-awesome-disqus/) | ||
## Issues | ||
@@ -42,0 +51,0 @@ |
@@ -18,2 +18,2 @@ { | ||
] | ||
} | ||
} |
@@ -0,0 +0,0 @@ { |
@@ -5,4 +5,4 @@ { | ||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255", | ||
"node": "registry:dt/node#6.0.0+20160831021119" | ||
"node": "registry:dt/node#6.0.0+20160909174046" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
81283
22
175
2
60
18
+ Added@angular/compiler@2.0.0
+ Added@angular/common@2.0.0(transitive)
+ Added@angular/compiler@2.0.0(transitive)
+ Added@angular/core@2.0.0(transitive)
+ Added@angular/http@2.0.0(transitive)
+ Added@angular/platform-browser@2.0.0(transitive)
+ Added@angular/router@3.0.0(transitive)
+ Addedrxjs@5.0.0-beta.125.5.12(transitive)
+ Addedsymbol-observable@1.0.1(transitive)
- Removed@angular/common@2.0.0-rc.6(transitive)
- Removed@angular/core@2.0.0-rc.6(transitive)
- Removed@angular/http@2.0.0-rc.6(transitive)
- Removed@angular/platform-browser@2.0.0-rc.6(transitive)
- Removed@angular/router@3.0.0-rc.2(transitive)
- Removedrxjs@5.0.0-beta.11(transitive)
Updated@angular/common@2.0.0
Updated@angular/core@2.0.0
Updated@angular/http@2.0.0
Updated@angular/router@3.0.0
Updatedrxjs@^5.0.0-beta.12