2.1.0 • Published 7 years ago

gulp-require-classify v2.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
7 years ago

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

Authors

License

This is an unlicensed project - see the LICENSE file for details

Acknowledgments

  • Solving ng-classify problem using requireJS
2.1.0

7 years ago

2.0.2

7 years ago

2.0.1

7 years ago

2.0.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago