0.4.2 • Published 10 years ago

generator-ngtasty v0.4.2

Weekly downloads
32
License
MIT
Repository
github
Last release
10 years ago

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.

0.4.2

10 years ago

0.4.1

10 years ago

0.4.0

10 years ago

0.3.8

10 years ago

0.3.6

10 years ago

0.3.5

10 years ago

0.3.4

10 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.7

10 years ago

0.2.6

10 years ago

0.2.5

10 years ago

0.2.4

10 years ago

0.2.3

10 years ago

0.2.2

10 years ago

0.2.0

10 years ago

0.1.5

11 years ago

0.1.4

11 years ago

0.1.3

11 years ago

0.1.2

11 years ago

0.1.1

11 years ago

0.1.0

11 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago