Skip to content

Commit

Permalink
Use .npmignore to package a smaller subset of videojs for distributio…
Browse files Browse the repository at this point in the history
…n. Make sure to include the video-js.less file for the designer to use.
  • Loading branch information
bclwhitaker committed Mar 4, 2014
1 parent 2e26703 commit cc5e515
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# .npmignore needed so dist dir won't be ignored
# https://npmjs.org/doc/developers.html#Keeping-files-out-of-your-package
# Exclude everything but the contents of the dist directory.
**/*
!dist/**
2 changes: 2 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,8 @@ module.exports = function(grunt) {
grunt.file.copy('node_modules/videojs-swf/dist/video-js.swf', 'dist/video-js/video-js.swf');
grunt.file.copy('build/demo-files/demo.html', 'dist/video-js/demo.html');
grunt.file.copy('build/demo-files/demo.captions.vtt', 'dist/video-js/demo.captions.vtt');
grunt.file.copy('src/css/video-js.less', 'dist/video-js/video-js.less');


// Copy over font files
grunt.file.recurse('build/files/font', function(absdir, rootdir, subdir, filename) {
Expand Down

0 comments on commit cc5e515

Please sign in to comment.