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

v1.7.5

Published

Yeoman Gulp generator for AngularJS Web Application

Downloads

13

Readme

generator-ajsweb

Yeoman Gulp generator for AngularJS Web Application

TravisCI Status Coverage Status npm version

Installation

First, install Yeoman and generator-ajsweb using npm (we assume you have pre-installed node.js).

Simply run a global install using your terminal and you're good to go!

npm install -g yo generator-ajsweb

List generators

yo --generators

Make project

Help

yo ajsweb --help

Then generate your new project:

yo ajsweb

Getting To Know Yeoman

  • Yeoman has a heart of gold.
  • Yeoman is a person with feelings and opinions, but is very easy to work with.
  • Yeoman can be too opinionated at times but is easily convinced not to be.
  • Feel free to learn more about Yeoman.

Usage

Make a new directory, and cd into it:

mkdir project && cd project

Run yo ajsweb, optionally passing an app name:

yo ajsweb [project-name]

Build develop mode

Make build directory with full application

gulp build

Dist production mode

Make dist directory with minimal application for production

gulp dist

Preview

Build preview (only for develop)

gulp serve

Dist preview (only for production)

gulp serve:dist

Test

Console

gulp test

Coverage

Check coverage directory

Preview

gulp serve:test

Clean

gulp clean

Docs

gulp docs

Generators

Available generators:

App

Sets up a new AngularJS app, generating all the boilerplate you need to get started. The app generator also optionally installs Bootstrap and additional AngularJS modules, such as angular-ui-router (installed by default).

Example:

yo ajsweb --help
yo ajsweb project

Route

Generates a controller and view, and configures a route in app/scripts/main_cfg.js connecting them.

Example:

yo ajsweb:route --help
yo ajsweb:route route-name

Controller

Generates a controller in app/scripts/controllers.

Example:

yo ajsweb:controller --help
yo ajsweb:controller controller-name

View

Generates an HTML view file in app/views.

Example:

yo ajsweb:view --help
yo ajsweb:view view-name

Directive

Generates a directive in app/scripts/directives.

Example:

yo ajsweb:directive --help
yo ajsweb:directive directive-name

Filter

Generates a filter in app/scripts/filters.

Example:

yo ajsweb:filter --help
yo ajsweb:filter filter-name

Service

Generates an AngularJS service in app/scripts/services.

Example:

yo ajsweb:service --help
yo ajsweb:service service-name

Provider

Generates an AngularJS provider in app/scripts/services.

Example:

yo ajsweb:provider --help
yo ajsweb:provider provider-name

Factory

Generates an AngularJS factory in app/scripts/services.

Example:

yo ajsweb:factory --help
yo ajsweb:factory factory-name

Value

Generates an AngularJS value in app/scripts/services.

Example:

yo ajsweb:value --help
yo ajsweb:value value-name

Constant

Generates an AngularJS constant in app/scripts/services.

Example:

yo ajsweb:constant --help
yo ajsweb:constant constant-name

Decorator

Generates an AngularJS service decorator in app/scripts/decorators.

Example:

yo ajsweb:decorator --help
yo ajsweb:decorator service-name

Component

Generates an AngularJS component in app/scripts/components.

Example:

yo ajsweb:component --help
yo ajsweb:component component-name

License

GPL-3.0 © Yadickson Soto