gulp-require-classify
v2.1.0
Published
A gulp plug-in to make requireJS and ng-classify compatible with a simple syntax
Downloads
2
Maintainers
Readme
gulp-require-classify
Mix ng-classify with require js and using a simple syntax
Getting Started
These is a project created to solve a problem I have when I was trying to use ng-classify plug-in and requireJS
Prerequisites
Nothing
Installing
Run this command
npm install gulp-require-classify --save-dev
Use
Using tags "@classify" and "@!classify" code inside of them are going to be compiled using ng-classify plug in, no matter indentation.
Input Code
# Main Application
define [
], () ->
'use strict'
@classify
# Main Application Class
class App extends App then constructor: -> return [
'ngRoute'
]
# Main Controller Class
class Main extends Controller
constructor: ($scope) ->
$scope.msg = "Running"
@!classify
Output Code
# Main Application
define [
], () ->
'use strict'
# Main Application Class
class App then constructor: -> return [
'ngRoute'
]
# Main Controller Class
class Main
constructor: ($scope) ->
$scope.msg = "Running"
angular.module('app', new App())
.controller('mainController', ['$scope', Main])
Built With
- ng-classify - Amazing Plug-in
- unindent - Unindenting tool
- indent-string - Indenting tool
- gulp-util - Gulp general use tool
Authors
- Moisés Berenguer - Initial work - CaryLandholt
License
This is an unlicensed project - see the LICENSE file for details
Acknowledgments
- Solving ng-classify problem using requireJS