generator-ngtasty
v0.4.2
Published
ngTasty component generator
Downloads
38
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 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.