generator-ajslib

1.5.4 • Public • Published

generator-ajslib

Yeoman Gulp Generator for AngularJS Library

TravisCI Status Coverage Status dependencies dev-dependencies Known Vulnerabilities npm version

Installation

First, install Yeoman and generator-ajslib 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-ajslib

List generators

yo --generators

Make project

Help

yo ajslib --help

Then generate your new project:

yo ajslib

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 ajslib, optionally passing an app name:

yo ajslib [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

Test

Console

gulp test

Coverage

Check coverage directory

Clean

gulp clean

Docs

gulp docs

Generators

Available generators:

App

Sets up a new AngularJS library

Example:

yo ajslib --help
yo ajslib project

Directive

Generates a directive in src/directives.

Example:

yo ajslib:directive --help
yo ajslib:directive directive-name

Filter

Generates a filter in src/filters.

Example:

yo ajslib:filter --help
yo ajslib:filter filter-name

Service

Generates an AngularJS service in src/services.

Example:

yo ajslib:service --help
yo ajslib:service service-name

Provider

Generates an AngularJS provider in src/services.

Example:

yo ajslib:provider --help
yo ajslib:provider provider-name

Factory

Generates an AngularJS factory in src/services.

Example:

yo ajslib:factory --help
yo ajslib:factory factory-name

Value

Generates an AngularJS value in src/services.

Example:

yo ajslib:value --help
yo ajslib:value value-name

Constant

Generates an AngularJS constant in src/services.

Example:

yo ajslib:constant --help
yo ajslib:constant constant-name

Decorator

Generates an AngularJS service decorator in src/decorators.

Example:

yo ajslib:decorator --help
yo ajslib:decorator service-name

Component

Generates an AngularJS component in src/components.

Example:

yo ajslib:component --help
yo ajslib:component component-name

License

GPL-3.0 © Yadickson Soto

Package Sidebar

Install

npm i generator-ajslib

Weekly Downloads

1

Version

1.5.4

License

GPL-3.0

Unpacked Size

60.2 kB

Total Files

34

Last publish

Collaborators

  • yadickson