add exports and fix the entry point of the module

This commit is contained in:
DIYgod 2016-01-16 14:48:02 +08:00
parent 891bc412ff
commit 86b0dc3d05
4 changed files with 498 additions and 482 deletions

View File

@ -79,6 +79,13 @@ ap.init();
+ `ap.play()`
+ `ap.pause()`
#### Work with module bundler
```js
var APlayer = require('APlayer');
var ap = new APlayer({...});
```
### With lrc
#### LRC format:

2
dist/APlayer.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -1,8 +1,8 @@
{
"name": "aplayer",
"version": "1.3.2",
"version": "1.3.3",
"description": "Wow, such a beautiful html5 music player",
"main": "APlayer.js",
"main": "dist/APlayer.min.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},

File diff suppressed because it is too large Load Diff