generator-ngtasty

0.4.2 • Public • Published

generator-ngtasty NPM version NPM Downloads

This generator is the scaffolding tool for generate by Yeoman your collection of reusable UI components for AngularJS.

Dependencies

  • Package manager for javascript: npm
  • Package management: Bower
  • The streaming build system: Gulp

Usage

Installing Yeoman

npm install -g yo

Install generator-ngtasty:

npm install -g generator-ngtasty

Make a new directory, and cd into it:

mkdir new-collection && cd $_

Run yo ngtasty passing a collection name:

yo ngtasty [collection-name]

Generators

Available generators:

component

Generates a component

Example:

yo ngtasty:component myComponent

Produces src/component/my-component.js:

angular.module('collectionName.component.myComponent', [])
.directive('myComponent', function () {
  // ...
});

and src/component/test/my-component.spec.js

describe('Directive: myComponent', function () {
  // ...
});

and template/my-component/my-component.html

<div></div>

filter

Generates a filter

Example:

yo ngtasty:filter myFilter

Produces src/filter/my-filter.js:

angular.module('collectionName.filter.myFilter', [])
.filter('myFilter', function () {
  // ...
});

and src/filter/test/my-filter.spec.js

describe('Filter: myFilter', function () {
  // ...
});

service

Generates a service

Example:

yo ngtasty:service myService

Produces src/filter/my-service.js:

angular.module('collectionName.service.myService', [])
.factory('myService', function () {
  // ...
});

and src/filter/test/my-service.spec.js

describe('Service: myService', function () {
  // ...
});

benchpress

Generates a benchmark of your dist

yo ngtasty:benchpress dist

generate a benchmark of an old version

yo ngtasty:benchpress ng-tasty

Creator

Designed and built by Leonardo Zizzamia, like grandma used to make.

Package Sidebar

Install

npm i generator-ngtasty

Weekly Downloads

13

Version

0.4.2

License

MIT

Last publish

Collaborators

  • zizzamia