grunt-ng-classify
Convert CoffeeScript classes to AngularJS modules with ng-classify
Write less JavaScript. Write less CoffeeScript. Write less Angular.Watch the screencast
Install
Install with npm
$ npm install grunt-ng-classify
Usage
CoffeeScript
= gruntloadNpmTasks 'grunt-ng-classify' gruntinitConfig ngClassify: app: files: cwd: 'src' src: '**/*.coffee' dest: 'dest' expand: true options: appName: 'app'
JavaScript
module { grunt; grunt;};
Table of Contents
API
See the ng-classify docs
options
Optional
Type: Object
Default: undefined
see ng-classify API
options.callback
Type: Function
Default: undefined
Dynamically creates options via the function callback. The function takes in the filePath and returns the options. Note: overrides other options
= gruntloadNpmTasks 'grunt-ng-classify' gruntinitConfig ngClassify: app: files: cwd: 'src' src: '**/*.coffee' dest: 'dest' expand: true options: : return if filePathindexOf'administrator' isnt -1 appName: 'admin' appName: 'app'
module { grunt; grunt;};
Contributing
See CONTRIBUTING.md
Changelog
See CHANGELOG.md
License
See LICENSE