Skip to content

Commit

Permalink
added babel prepublish for publishing to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
wesleytodd authored and mangui committed Feb 5, 2016
1 parent 2975ce5 commit c253443
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
node_modules/*
bower_components/*
/streams.js

lib
npm-debug.log
8 changes: 8 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
demo
dist
misc
test
API.md
bower.json
design.md
hls.js.sublime-project
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// This is mostly for support of the es6 module export
// syntax with the babel compiler, it looks like it doesnt support
// function exports like we are used to in node/commonjs
module.exports = require('./lib/hls.js').default
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"bugs": {
"url": "https://github.com/dailymotion/hls.js/issues"
},
"main": "src/hls.js",
"main": "index.js",
"private": false,
"scripts": {
"clean": "find dist -mindepth 1 -delete",
Expand All @@ -27,7 +27,9 @@
"serve": "http-server -p 8000 .",
"open": "opener http://localhost:8000/demo/",
"live-reload": "live-reload --port 8001 dist/",
"dev": "npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'"
"dev": "npm run open -s & parallelshell 'npm run live-reload -s' 'npm run serve -s' 'npm run watch -s'",
"babel": "babel src --out-dir lib",
"prepublish": "npm run babel"
},
"babel": {
"presets": [
Expand All @@ -47,8 +49,9 @@
},
"devDependencies": {
"arraybuffer-equal": "^1.0.4",
"browserify": "^8.1.1",
"babel": "^6.3.26",
"babel-cli": "^6.3.17",
"browserify": "^8.1.1",
"deep-strict-equal": "^0.1.0",
"exorcist": "^0.4.0",
"http-server": "^0.7.4",
Expand Down

0 comments on commit c253443

Please sign in to comment.