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

generator-polymer-init-appsngen-web-component

v0.0.29

Published

AppsNgen web-component generator

Downloads

8

Readme

generator-polymer-init-appsngen-web-component Build Status

AppsNgen web-component generator

Getting Started

Prerequisites

Before generator installation you need to install all the dependencies:

  • (Skip this step for windows) Install python(https://www.python.org/downloads/) only 2.x.x version. After install you should add path to installed Python in system variable PATH;
  • Install build tools:
    • For Windows: windows-build-tools (npm install -g windows-build-tools)
    • For Linux: [email protected] or higher;
  • Install Gemini(npm install -g gemini);
  • Install gemini-browserstack(npm install -g gemini-browserstack);
  • Install browserstack-runner(npm install -g browserstack-runner);
  • Install PhantomJS(npm install -g phantomjs);
  • Install The Artifactory Bower Resolver (npm install -g bower-art-resolver)

Run this command with admin rights

$ npm install -g windows-build-tools gemini gemini-browserstack browserstack-runner phantomjs bower-art-resolver

AppsNgen-Web-Component Generator

To install generator, run:

$ npm install -g generator-polymer-init-appsngen-web-component

This generator extends Polymer CLI. After you run

$ polymer init

You'll see suggested templates

? Which starter template would you like to use?
  element - A blank element template
  application - A blank application template
  shop - The "Shop" Progressive Web App demo
  starter-kit - A starter application template, with navigation and "PRPL pattern" loading
> appsngen-web-component - AppsNgen web-component generator

Here additional appsngen-web-component - AppsNgen web-component generator line appears.

Select this line to run the process of generation of the AppsNgen Web Component. You will be guided through this process. Attribuetes to be entered are:

  • Name (required). Name of the component. We suggest to start with ngn- prefix. Where ngn is shorten for the AppNgen.
  • BROWSERSTACK_USER_NAME (optional). Generated component will include some tests (both unit and UI) what can be run using BrowserStack automation. Here is name of user to be used to connect to BrowserStack cloud.
  • BROWSERSTACK_API_KEY (optional). Here is API Key used to run your tests in BrowserStack cloud.
  • Use private Artifactory Bower registry. (Default value is No). Generated code assumes posibility of storing resulting Web Component in private Bower registry
    • JFROG_REPOSITORY_PATH. Path toh the Artifactory repo
    • JFROG_REGISTRY_URL.
    • JFROG_API_KEY.

Features

Before use features you need set some values.

For Browserstack you need set USER_NAME and API_KEY in config.json file and run Grunt task update-keys or set USER_NAME and API_KEY in files:

  • .gemini.yml
  • browserstack.json

And for JFROG you need set API_KEY in Gruntfile.js and REGISTRY_URL in .bowerrc.

All features you can use via Grunt task:

  • wct-test-local - run unit test via Web Component Tester(WCT) local;
  • wct-test-remote - run unit test via Web Component Tester(WCT) remote on Browserstack Cloud service;
  • gemini-local-update - updated reference screenshots via Gemini local(Use PhantomJS);
  • gemini-local-test - run UI test via Gemini local(Use PhantomJS);
  • gemini-remote-update - updated reference screenshots via Gemini remote on Browserstack Cloud service;
  • gemini-remote-test - run UI test via Gemini remote on Browserstack Cloud service;
  • performance-test - run performance test remote on Browserstack Cloud service;
  • update-keys - update Browserstack credential from config.json file;
  • private-deploy - deploy component to JFROG;
  • lint - JSHint code check;
  • jscs-check - JSCS code check.

License

MIT