npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

angular2-library-starter

v0.0.6

Published

A skeleton library built with Angular 2 with a demo

Downloads

5

Readme

Dependency Status

Angular2 Library Starter

A basic starter library that features Angular 2 with ES6 and a Demo with Express/Node. Has fully integrated unit and e2e tests.

Huge Kudos goes to the Angular2 Webpack Starter for being a great example!

Quick Start

# Clone the repo
git clone https://github.com/jgodi/angular2-library-starter.git

# CD into the project
cd angular2-library-starter

# Install all required dependencies
npm install

# Start the server
npm start

Now, navigate to http://localhost:3000 in your browser and code!

Testing

Unit Testing w/ Karma

# Run unit tests
npm test

Will run all karma unit tests. Coverage will be reported in /coverage.

E2E Testing w/ Protractor

Make sure to install the webdriver before hand using npm run webdriver-update.

# Start the application in one command prompt
npm start

# Finally, run the e2e test in a third command prompt
npm run protractor

Building / Developing

Building this application is easy, there are a few commands to make it very easy. It uses the index.html file that is located in public as a base template and outputs a build version of it into server/views/index.html to be served up via node.

Running Demo / See Changes

To run the demo and see the changes as you update the lib/, you will need to run the following:

# Run the compile watch to compile code as it changes (terminal 1)
npm run compile:watch

# Run the demo (terminal 2)
npm start

Developing Locally

NPM Link the project via:

npm link

# CD into project to consume
cd ../project

# Link
npm link angular2-library-starter

NOTE You will need to compile the code as things change

# Watch/compile as file change
npm run compile:watch