New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ng2-librarization

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-librarization

A seed for an Angular 2 library

  • 1.3.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
decreased by-40%
Maintainers
1
Weekly downloads
 
Created
Source

A simple seed for ng2 libraries

This is a simple starter-kit to create your own external 3rd party library. It's useful to separte code you will need across multiple apps.

How to get started?

  • Clone or download this repo
  • Modify the file package.json according to your needs
  • Under src create all the modules/components/... you need
  • Re-export them in index.ts for easier access

Installation with Angular CLI

If you're trying this out locally the easiest way is to link your library locally. To do so, inside a terminal/cmd, go to the root folder of your library and type npm link. Now over at your apps root folder just install it with npm link name-of-your-library.

If you've published your library already to npm's registry, you should be fine with simply running: npm install --save name-of-your-library.

Unit Testing

In order to run unit-tests create those in feature-oriented style next to the to be tested items inside the src folder. Make sure the files end with *.spec.ts.

To run the unit tests run: npm test

Keywords

FAQs

Package last updated on 31 Dec 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc