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-anode

v1.0.11

Published

This generator uses a component based design to structure Angular applications. This scaffolding also uses a generator to create any of the files necessary for angular app.

Downloads

14

Readme

Yeoman generator-anode

This generator uses a component based design to structure Angular applications. This scaffolding also uses a generator to create any of the files necessary for angular app.

run

$ npm install -g generator-anode
$ yo anode

And follow the prompts

Setup

Just running gulp or anything else may not work as additional setup would most likely be required. This project package requires bower in order to run so to install you and complete the rest of the setup run:

 $ npm run init  

This command will run

npm install
sudo npm install -g bower
bower init
mkdir bower_components

Feel free to run these manually if you have any of the following already.

Gulp Tasks

Gulp will be very helpful in this project. It will handle all the file creations, place them in the proper folder and inject them into the index.html file.

generate

'gulp generate' will create all basic files that would need to be added to the project. It takes the signature

gulp generate --[filetype] [filename]

The following examples shows how the generator task works.

Example The following will create a component (directive) called timeLord. Components contain an associated HTML, SCSS, and JS file which are all copied to views/components/timeLord

 $ gulp generate --component timeLord  

Example 1 The following will create a page (controller) called dashboard. Pages contain an associated HTML, SCSS, and JS file which are all copied to views/pages/dashboard. Only for generating Pages is there an optional parameter 'route' that can be used. In this particular example the dashboard page will be accessible through the url route 'home' (localhost:3000/#/home) Otherwise the route will default to the name of the page (localhost:3000/#/dashboard)

$ gulp generate --page dashboard --route home

Example 2
Other filestypes that can be generated are 'service | factory | filter' and created using the parameters respectively

    // create errorManagement.js file in services
 $ gulp generate --service errorManagement
    // create compilations.js file in factories
 $ gulp generate --factory compilations

build

run "gulp build" to create a production ready version of your project

serve

Run "gulp serve" or "gulp" to compile sass, inject dependencies and run the watch task