You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 4, 2023. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+18-21
Original file line number
Diff line number
Diff line change
@@ -51,22 +51,23 @@ Dependency Tree Building:
51
51
Additional Files:
52
52
***requiredLibs** (Array<sup>1</sup> | String | RegExp): Files included but *not* parsed for dependencies. Use this in conjunction with *parseExclude*.
53
53
***optionalLibs** (Array<sup>1</sup> | String | RegExp): Optional library files that, if depended on, will also include all files matched by the *optionalLibsInclude*.
54
-
***optionalLibsInclude** (String): Glob of files relative to the optional library file to be included if the optional library file is depended on.
54
+
***optionalLibsInclude** (Array<sup>1</sup> | String | RegExp): Optional library files to include if matching optional library defined by *optionalLib* is included
55
55
56
56
Modules and Dependencies:
57
57
***appModule** (String): Name of main Angular module. This will be used to create an `init.js` file in the stream which will contain `angular.module(appModule, [all required modules]);`.
58
58
***globalModules** (Array | String): Modules to include in the `init.js` modules list that will not be found via the dependency tree building (e.g. modules in files from both *requiredLibs* and *parseExclude*).
59
59
***globalDependencies** (Array | String): Dependencies that will be defined globally but will not be found via the dependency tree building (e.g. dependencies from modules in *globalModules*). Unfound dependencies will throw a gulp error otherwise.
***filePriority** (Array | String): Files sorted to the top of the stream.
65
63
66
64
<sup>1</sup> Array of Strings or RegExps. Files are selected by partial matches.
67
65
68
66
---
69
67
## Notes
68
+
#### Watch mode
69
+
TODO
70
+
70
71
#### Automatically Required Files
71
72
TODO
72
73
@@ -77,17 +78,18 @@ TODO
77
78
* Directives need to return an object, not a reference to an object
78
79
*`return { templateUrl: "...", link: "..." };`
79
80
* Not `var d = { templateUrl: "...", link: "..." }; return d;`
81
+
* Resolved injections into controllers uses the "resolve" property for the object defining the resolve (see ui-router or ui-bootstrap modals)
80
82
81
83
#### Misc:
82
84
* All dependencies beginning with $ will be ignored.
83
85
* Inline controllers within directives will be parsed if the controller function block is defined in the return object (i.e. not a reference to the controller).
84
86
* Anything that matches the pattern `"controller": "SomeCtrl"` will consider `SomeCtrl` to be a dependency. (Quotes can be single or double; object key does not require quotes.)
85
87
* All strings found in the file ending in *.html* or *.json* will be considered a template of that file (unless ignored via the *ignoredTemplates* option).
88
+
* Supports $inject property
86
89
87
90
---
88
91
## Limitations
89
92
* Dynamically built template URLs will not be included (in both html partials and js files)
0 commit comments