Skip to content

Commit 11e8e34

Browse files
committed
Merge branch 'master' of https://github.com/olov/ng-annotate
* 'master' of https://github.com/olov/ng-annotate: support for angular-dashboard-framework apply method Add ng-annotate-loader mention as webpack integration tool
2 parents e0d6875 + 87acab7 commit 11e8e34

4 files changed

+9
-2
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ AngularJS 1.3 or later.
9898
* [Broccoli](https://github.com/broccolijs/broccoli): [broccoli-ng-annotate](https://www.npmjs.org/package/broccoli-ng-annotate) by [Gilad Peleg](https://github.com/pgilad)
9999
* [Rails asset pipeline](http://guides.rubyonrails.org/asset_pipeline.html): [ngannotate-rails](https://rubygems.org/gems/ngannotate-rails) by [Kari Ikonen](https://github.com/kikonen)
100100
* [Grails asset pipeline](https://github.com/bertramdev/asset-pipeline): [angular-annotate-asset-pipeline](https://github.com/craigburke/angular-annotate-asset-pipeline) by [Craig Burke](https://github.com/craigburke)
101-
* [Webpack](http://webpack.github.io/): [ng-annotate-webpack-plugin](https://www.npmjs.org/package/ng-annotate-webpack-plugin) by [Chris Liechty](https://github.com/cliechty)
101+
* [Webpack](http://webpack.github.io/): [ng-annotate-webpack-plugin](https://www.npmjs.org/package/ng-annotate-webpack-plugin) by [Chris Liechty](https://github.com/cliechty), [ng-annotate-loader](https://www.npmjs.org/package/ng-annotate-loader) by [Andrey Skladchikov](https://github.com/huston007)
102102
* [Middleman](http://middlemanapp.com/): [middleman-ngannotate](http://rubygems.org/gems/middleman-ngannotate) by [Michael Siebert](https://github.com/siebertm)
103103
* [ENB](http://enb-make.info/) (Russian): [enb-ng-techs](https://www.npmjs.org/package/enb-ng-techs#ng-annotate) by [Alexey Gurianov](https://github.com/guria)
104104

optionals/angular-dashboard-framework.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,12 @@ module.exports = {
5252
// {resolve: ..}
5353
res.push.apply(res, ctx.matchResolve(props));
5454

55-
// edit: {controller: function(), resolve: {}}
55+
// edit: {controller: function(), resolve: {}, apply: function()}
5656
const edit = ctx.matchProp('edit', props);
5757
if (edit && edit.type === "ObjectExpression") {
5858
const editProps = edit.properties;
5959
res.push(ctx.matchProp('controller', editProps));
60+
res.push(ctx.matchProp('apply', editProps));
6061
res.push.apply(res, ctx.matchResolve(editProps));
6162
}
6263

tests/optionals/angular-dashboard-framework.annotated.js

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ angular.module('myMod', ['adf.provider'])
8383
controller: ["$http", function($http){
8484
// control something
8585
}],
86+
apply: ["$http", "config", function($http, config){
87+
// apply configuration
88+
}],
8689
resolve: {
8790
editone: ["$http", "config", function($http, config){
8891
// resolve something

tests/optionals/angular-dashboard-framework.js

+3
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,9 @@ angular.module('myMod', ['adf.provider'])
8383
controller: function($http){
8484
// control something
8585
},
86+
apply: function($http, config){
87+
// apply configuration
88+
},
8689
resolve: {
8790
editone: function($http, config){
8891
// resolve something

0 commit comments

Comments
 (0)