iwannabebot / ng-gist

AOT/JIT compatible Angular component to embed Gist
MIT License
4 stars 3 forks source link
angular angular4 gists ng-gist

ng-gist

AOT/JIT compatible Angular component to embed Gist

Build Status codecov Known Vulnerabilities

Quick Start

NPM

import { NgGistModule } from 'ng-gist'
@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    NgGistModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }
<ng-gist userName="iwannabebot"  gistId="134aee6d3a07430e9a1079697e4fc03d" fileName="TestGist2.js"></ng-gist>

Modify this library

# Clone the repository
git clone https://github.com/iwannabebot/ng-gist.git

# Go to repository folder
cd ng-gist

# Install all dependencies
yarn install

# Build the library
yarn build

Build the library

You may also build UMD bundle and ESM files separately:

Commands

Built upon Angular Library Seed by trekhleb