1.0.0 • Published 9 years ago
ng-modules-ify v1.0.0
ng-modules-ify
Browserify transform to eliminate boilerplate angularjs-module-registration code
Rather than manually registering all your objects (components, directives, config blocks, etc) onto modules, simply import 'ng-modules!./path/to/your/object/tree'. Each object is registered according to it's file name, on a module named according to the file's path. For example: root/foo/bar/myWidget.component.js is registered as a component named myWidget on a module named root.foo.bar.
Reduced our front-end code-base by ~15%
See test/main.js and test/fixtures/**/* for example output.
1.0.0
9 years ago