ng-modules-ify

1.0.0 • Public • Published

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.

Package Sidebar

Install

npm i ng-modules-ify

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • manitoulin-transport