Wrapper
PackagesTwitterGitHub
Draft
Draft
  • Introduction
  • ❤ Benefits
    • Explanation
    • Designing
  • General concepts
  • Getting started
    • Skeleton
    • Installation
      • npm
    • Public API
    • Basic concepts
  • Wrap {}
    • Overview
    • Generic type variables
    • ★ Constructor
    • Accessors
      • get closing()
      • get opening()
      • get text()
      • get [Symbol.toStringTag]()
    • Properties
      • #closing
      • #opening
      • #text
    • Methods
      • ↓ Static
      • static hasClosing()
      • static hasOpening()
      • static isWrap()
      • ↓ Instance
      • getClosing()
      • getOpening()
      • getText()
      • hasClosing()
      • hasOpening()
      • hasText()
      • isWrapped()
      • ★ replaceClosing()
      • ★ replaceOpening()
      • ★ replaceText()
      • toString()
      • valueOf()
    • Example usage
  • Wrapper {}
    • Overview
    • Generic type variables
    • Constructor
    • Accessors
      • get [Symbol.toStringTag]()
    • Methods
      • ↓ Static
      • static define()
      • static isWrapper()
      • static replaceClosing()
      • static replaceOpening()
      • static unwrap()
      • ↓ Instance
      • isClosingIn()
      • isOpeningIn()
      • replaceClosingIn()
      • replaceOpeningIn()
      • removeWrapIn()
      • textReplaceClosing()
      • textReplaceOpening()
      • ⚠ textHasClosing()
      • ⚠ textHasOpening()
      • textUnwrap()
      • textWrap()
      • toArray()
      • toWrap()
      • unwrap()
      • unwrapText()
      • ★ wrap()
      • ★ wrapOn()
      • ★ wrapText()
    • Example usage
  • Type
    • Wrapped
  • Change log
    • Keep a changelog
    • CHANGELOG.md
    • v1.0.0
  • GIT
    • Commit
    • Semantic Versioning
  • License
    • MIT
  • Social
    • Gettr
    • Twitter
    • YouTube
  • Contact
    • ⋯ Chat
    • @ Email
    • ✆ Phone
  • Donate
    • ฿ Cryptocurrency
    • $ Fiat
Powered by GitBook
On this page
  • Code scaffolding
  • Build
  • Publishing
  • Running unit tests
  • Further help

Was this helpful?

Edit on GitHub
  1. Getting started

Skeleton

PreviousGeneral conceptsNextInstallation

Last updated 3 years ago

Was this helpful?

The package was generated by the which was generated with version 13.0.0.

Copy package to the packages/wrapper folder of the then run the commands below.

Code scaffolding

Run ng generate component component-name --project wrapper to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module --project wrapper.

Note: Don't forget to add --project wrapper or else it will be added to the default project in your angular.json file.

Build

Run ng build wrapper to build the project. The build artifacts will be stored in the dist/ directory.

Publishing

After building your library with ng build wrapper, go to the dist folder cd dist/wrapper and run npm publish.

Running unit tests

Before the test can be performed install @angular-package/testing with command:

npm i @angular-package/testing --no-save

Run ng test wrapper to execute the unit tests via .

Further help

To get more help on the Angular CLI use ng help or go check out the page.

library skeleton
Angular CLI
library skeleton
Karma
Angular CLI Overview and Command Reference