-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Npm publish #49
Comments
+1 thank you! |
I went ahead and published this package to NPM. Have submitted pull request to update readme
|
@wilcraig thank you! FYI there's an addition you can make to align this module with common npm-publishing conventions (see packages such as At the module's root add a short require('./src/angular-embedplayer');
module.exports = 'videosharing-embed'; Then add a "main": "index.js", Doing so will allow ES6 imports of the form: import ngVideoSharingEmbed from 'ng-videosharing-embed/src/angular-embedplayer';
...
angular.module('myMapp', [ngVideoSharingEmbed, ... Which is convenient.. |
Ok great! I've added the index.js file and main key to package.json and pushed the changes as well as re-publishing to npm. Thanks @igalitarian |
@wilcraig Hey thanks for pushing the changes. After some tinkering I got it to work with the following require('./src/angular-embedplayer');
require('./src/directives/embedvideo');
require('./src/filters/videosettings');
require('./src/filters/whitelist');
module.exports = 'videosharing-embed'; |
OK that makes sense. I was busy putting a lot of things into my build today so I didn't have a chance to test it together, but I'll update the index.js file again and push the changes. Thanks a ton! |
@wilcraig thanks, I confirm that v0.3.6 can be imported and works! |
Could you also release the latest version on npm? |
Can you please publish this package on npm too?
The text was updated successfully, but these errors were encountered: