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
+7
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:
+1 -1
View File
File diff suppressed because one or more lines are too long
+2 -2
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"
},
+488 -479
View File
File diff suppressed because it is too large Load Diff