1.0.1 • Published 8 years ago
ng-codepen v1.0.1
ng-codepen
AOT/JIT compatible Angular component to embed Codepen
Quick Start
- Install this Library
- Declare NgCodepenModule in your root module
import { NgCodepenModule } from 'ng-codepen';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
NgCodepenModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }- Use ng-codepen template
<ng-codepen
height='400'
themeId='light'
url='https://codepen.io/gabrielferreira/pen/JrJmzL'
tabs='css,result'
title='Nubank Credit Card'></ng-codepen>Parameters
height: string
themeId: string
url: string
tabs: string
title: string
Modify this library
# Clone the repository
git clone https://github.com/iwannabebot/ng-codepen.git
# Go to repository folder
cd ng-codepen
# Install all dependencies
yarn install
# Build the library
yarn buildBuild the library
yarn buildfor building the library once (both ESM and AOT versions).yarn build:watchfor building the library (both ESM and AOT versions) and watch for file changes.
You may also build UMD bundle and ESM files separately:
yarn build:esm- for building AOT/JIT compatible versions of files.yarn build:esm:watch- the same as previous command but in watch-mode.yarn build:umd- for building UMD bundle only.yarn build:umd:watch- the same as previous command but in watch-mode.
Commands
yarn lintfor performing static code analysis.yarn testfor running all your*.spec.tstests once. Generated code coverage report may be found incoveragefolder.yarn test:watchfor running all you*.spec.tsand watch for file changes.yarn docsfor generating documentation locally.yarn gh-pagesfor generating documentation and uploading it to GitHub Pages.yarn explorerto find out where all your code in bundle is coming from.npm version patchto increase library version. More on bumping.npm publishto publish your library sources on npmjs.com.yarn clean:tmpcommand will clean up all temporary files likedocs,dist,coverageetc.yarn clean:allcommand will clean up all temporary files along withnode_modulesfolder.
Built upon Angular Library Seed by trekhleb
1.0.1
8 years ago
