angular-adaptive-backgrounds icon indicating copy to clipboard operation
angular-adaptive-backgrounds copied to clipboard

Add a main property to package.json

Open sjkillen opened this issue 10 years ago • 3 comments

Useful for browserify requires.

sjkillen avatar Dec 28 '15 00:12 sjkillen

over on this repo, we ended up adding an index.js for this purpose

should we follow that same approach here?

brandly avatar Dec 28 '15 00:12 brandly

What does exporting a string do? Nevermind I understand now, that's probably more useful

sjkillen avatar Dec 28 '15 01:12 sjkillen

the string would be the name of the module, so that you can do something like

var app = angular.module('myApp', [
  require('angular-adaptive-backgrounds')
])

brandly avatar Dec 28 '15 07:12 brandly