Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
295 additions
and
192 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
{ | ||
"presets": ["env"], | ||
"env": { | ||
"production": { | ||
"presets": ["minify"] | ||
} | ||
} | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", | ||
{ | ||
"targets": { | ||
"edge": "14", | ||
"firefox": "60", | ||
"chrome": "49", | ||
"safari": "10.3" | ||
}, | ||
"useBuiltIns": "entry" | ||
} | ||
], | ||
"minify" | ||
], | ||
"plugins": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
module.exports = { | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true | ||
}, | ||
"extends": "eslint:recommended", | ||
"parserOptions": { | ||
"ecmaVersion": 2018 | ||
}, | ||
"rules": { | ||
"indent": [ | ||
"error", | ||
2 | ||
], | ||
"linebreak-style": [ | ||
"error", | ||
"unix" | ||
], | ||
"quotes": [ | ||
"error", | ||
"single" | ||
], | ||
"semi": [ | ||
"error", | ||
"never" | ||
], | ||
"no-console": "off", | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,2 @@ | ||
.idea | ||
node_modules | ||
package-lock.json | ||
test | ||
yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,41 @@ | ||
{ | ||
"name": "meting", | ||
"version": "1.2.0", | ||
"description": "Wow, such a beautiful html5 music player (with Meting API)", | ||
"main": "dist/Meting.min.js", | ||
"scripts": { | ||
"dev": "npm run development", | ||
"development": "babel src/Meting.js -o dist/Meting.min.js", | ||
"prod": "npm run production", | ||
"production": "BABEL_ENV=production babel src/Meting.js -o dist/Meting.min.js", | ||
"test": "npm run production" | ||
}, | ||
"repository": { | ||
"url": "git+https://github.com/metowolf/MetingJS.git", | ||
"type": "git" | ||
}, | ||
"keywords": [ | ||
"player", | ||
"music", | ||
"api", | ||
"meting", | ||
"html5" | ||
], | ||
"author": "metowolf", | ||
"license": "MIT", | ||
"homepage": "https://github.com/metowolf/MetingJS", | ||
"devDependencies": { | ||
"babel-cli": "^6.26.0", | ||
"babel-minify": "^0.4.3", | ||
"babel-preset-env": "^1.7.0", | ||
"babel-preset-minify": "^0.4.3" | ||
} | ||
"name": "meting", | ||
"version": "2.0.0", | ||
"description": "Wow, such a beautiful html5 music player (with Meting API)", | ||
"license": "MIT", | ||
"homepage": "https://github.com/metowolf/MetingJS", | ||
"repository": { | ||
"url": "git+https://github.com/metowolf/MetingJS.git", | ||
"type": "git" | ||
}, | ||
"author": { | ||
"name": "metowolf", | ||
"email": "i@i-meto.com", | ||
"url": "https://i-meto.com/" | ||
}, | ||
"main": "dist", | ||
"scripts": { | ||
"lint": "eslint source", | ||
"build": "del dist && mkdir dist && babel source/Meting.js -o dist/Meting.min.js", | ||
"test": "npm run build", | ||
"prepublishOnly": "npm run build" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
"player", | ||
"music", | ||
"api", | ||
"meting", | ||
"html5" | ||
], | ||
"devDependencies": { | ||
"@babel/cli": "^7.2.3", | ||
"@babel/core": "^7.3.3", | ||
"@babel/preset-env": "^7.3.1", | ||
"babel-preset-minify": "^0.5.0", | ||
"del-cli": "^1.1.0", | ||
"eslint": "^5.14.0" | ||
} | ||
} |
Oops, something went wrong.