generator-ngtasty
v0.4.2
Published
ngTasty component generator
Downloads
21
Maintainers
Readme
generator-ngtasty

This generator is the scaffolding tool for generate by Yeoman your collection of reusable UI components for AngularJS.
Dependencies
Usage
Installing Yeoman
npm install -g yoInstall generator-ngtasty:
npm install -g generator-ngtastyMake 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 myComponentProduces 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 myFilterProduces 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 myServiceProduces 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 distgenerate a benchmark of an old version
yo ngtasty:benchpress ng-tastyCreator
Designed and built by Leonardo Zizzamia, like grandma used to make.
