pvcbuild / pvc

PVC -- Scaffold, Build, Publish -- Composable, extensible builds in .NET created by @stirno
http://pvcbuild.com
MIT License
117 stars 11 forks source link

Plugin: angular - injection annotations #34

Open stirno opened 10 years ago

stirno commented 10 years ago

Need something to wrap blocks in angular with the safe-to-minify array syntax for dependency injection.

Needs to go from:

controller: function ($scope) {
}

to:

controller: ['$scope', function ($scope) {
}]
fisshy commented 10 years ago

I've started on it.

https://github.com/fisshy/pvc-angularminify

Haven't really figured out how I test it yet.. Is there any way to debug the plugins?

stirno commented 10 years ago

if you throw the DLLs in pvc-packages/bin, pvc will pick up your plugin and load it so you can test through the CLI.

You can also debug using the CLI source.. I detailed this for another user here: https://gist.github.com/stirno/c3eddfb7300020e3f2fb

It may be a tiny bit out of date but generally correct.

fisshy commented 10 years ago

ah I see, thanks!