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

ember-frost-demo-components

v7.0.1

Published

A collection of components and blueprints for showcasing frost components

Downloads

23

Readme

Travis Coveralls NPM

ember-frost-demo-components

A collection of components and blueprints for showcasing frost components

Installation

ember install ember-frost-demo-components

Getting Started

  1. This addon installs CodeMirror and Prism for source editing and syntax highlighting. You must update ember-cli-build.js to include options for those addons to bring in necessary themes.
var app = EmberApp(defaults, {
  codemirror: {
    modes: ['javascript', 'handlebars', 'markdown'],
    // frost-demo-editor defaults to 'mdn-like'
    themes: ['mdn-like']
  },
  'ember-prism': {
    // we use coy for frost demos
    theme: 'coy',
    components: ['javascript']
  }
  ...
})
  1. Update your application template to include frost-demo-navbar
{{frost-demo-navbar links=links}}
{{outlet}}
  1. Update your application controller with navigation links
export default Ember.Controller.extend({
  links: [
    {
      title: 'Demo Title',
      route: 'demo-route'
    }
  ]
})
  1. Generate a demo
ember generate frost-demo my-demo --dummy --pod

This generates the following files

tests/dummy
  └── app/pods
    └── my-demo
      └── controller.js
      └── route.js
      └── template.hbs
      └── README.md
  1. Update router.js with the new routes.
router.map('my-demo')
  1. Continue steps 3-5 for each demo you want to generate.

Components

The following components are available when you install ember-frost-demo-components

Blueprints

This addon makes the frost-demo blueprint available to use to streamline creating demo pages.

ember generate frost-demo demo-1 --dummy --pod

# with fullscreen
ember generate frost-demo demo-2 --fullscreen --dummy --pod

Development

Setup

git clone [email protected]:ciena-frost/ember-frost-demo-components.git
cd ember-frost-demo-components
npm install && bower install

Development Server

A dummy application for development is available under ember-frost-demo-components/tests/dummy. To run the server run ember server (or npm start) from the root of the repository and visit the app at http://localhost:4200.

Testing

Run npm test from the root of the project to run linting checks as well as execute the test suite and output code coverage.