diff --git a/.eslintrc.js b/.eslintrc.js old mode 100644 new mode 100755 index 8509a40..13834c3 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,20 +1,20 @@ module.exports = { - "env": { - "browser": true, - "node": true, - "commonjs": true, - "es6": true + "env": {}, + "extends": [ + "eslint-config-alloy" + ], + "plugins": [], + "rules": { + "one-var": "off", + "strict": "off", + complexity: ["error", 20] }, - "extends": "eslint:recommended", - rules: { - "indent": 0, - "no-console": 0, - "no-redeclare": 1, - "no-unused-vars": 1, - "one-var-declaration-per-line": [2, "always"], - "no-mixed-spaces-and-tabs": 0, - "semi": 2, - "no-inner-declarations": 1, - "no-extra-boolean-cast": 0, + "globals": { + "describe": true, + "it": true, + "before": true, + "after": true, + "beforeEach": true, + "afterEach": true } }; \ No newline at end of file diff --git a/.gitignore b/.gitignore index 28f1ba7..f2a529e 100755 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules -.DS_Store \ No newline at end of file +.DS_Store +coverage \ No newline at end of file diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 index 74d8584..5f5264a --- a/.travis.yml +++ b/.travis.yml @@ -4,7 +4,6 @@ node_js: - node - 7 - 6 - - 5 script: npm run travis diff --git a/CHANGELOG.md b/CHANGELOG.md old mode 100644 new mode 100755 index e690609..b9b15b7 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## 2.0.0 + - 更新内核 steamer-plugin + ## 1.1.0 - 更新 steamer-pluginutils @@ -10,6 +13,5 @@ ## 1.0.1 - 更新config.json模板 - ## 1.0.0 - 基本功能 \ No newline at end of file diff --git a/README.md b/README.md old mode 100644 new mode 100755 diff --git a/coverage/coverage.json b/coverage/coverage.json deleted file mode 100644 index 6d7c014..0000000 --- a/coverage/coverage.json +++ /dev/null @@ -1 +0,0 @@ -{"/Users/lcxfs1991/web/steamer-plugin-jb/index.js":{"path":"/Users/lcxfs1991/web/steamer-plugin-jb/index.js","s":{"1":1,"2":1,"3":3,"4":3,"5":1,"6":2,"7":1,"8":2,"9":2,"10":2,"11":2,"12":2,"13":0,"14":2,"15":1,"16":2,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1},"b":{"1":[2,0],"2":[2,0],"3":[1,1],"4":[1,0],"5":[1,0],"6":[1,0],"7":[1,0]},"f":{"1":3,"2":2,"3":2,"4":2,"5":1,"6":1,"7":1},"fnMap":{"1":{"name":"JBPlugin","line":8,"loc":{"start":{"line":8,"column":0},"end":{"line":8,"column":24}}},"2":{"name":"(anonymous_2)","line":13,"loc":{"start":{"line":13,"column":26},"end":{"line":13,"column":37}}},"3":{"name":"(anonymous_3)","line":17,"loc":{"start":{"line":17,"column":29},"end":{"line":17,"column":40}}},"4":{"name":"(anonymous_4)","line":41,"loc":{"start":{"line":41,"column":33},"end":{"line":41,"column":48}}},"5":{"name":"(anonymous_5)","line":50,"loc":{"start":{"line":50,"column":34},"end":{"line":50,"column":45}}},"6":{"name":"(anonymous_6)","line":56,"loc":{"start":{"line":56,"column":33},"end":{"line":56,"column":44}}},"7":{"name":"(anonymous_7)","line":76,"loc":{"start":{"line":76,"column":26},"end":{"line":76,"column":37}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":34}},"2":{"start":{"line":8,"column":0},"end":{"line":11,"column":1}},"3":{"start":{"line":9,"column":1},"end":{"line":9,"column":18}},"4":{"start":{"line":10,"column":1},"end":{"line":10,"column":56}},"5":{"start":{"line":13,"column":0},"end":{"line":15,"column":2}},"6":{"start":{"line":14,"column":1},"end":{"line":14,"column":16}},"7":{"start":{"line":17,"column":0},"end":{"line":39,"column":2}},"8":{"start":{"line":18,"column":1},"end":{"line":38,"column":4}},"9":{"start":{"line":27,"column":5},"end":{"line":27,"column":42}},"10":{"start":{"line":29,"column":5},"end":{"line":37,"column":6}},"11":{"start":{"line":30,"column":6},"end":{"line":35,"column":7}},"12":{"start":{"line":31,"column":7},"end":{"line":31,"column":101}},"13":{"start":{"line":34,"column":7},"end":{"line":34,"column":25}},"14":{"start":{"line":36,"column":6},"end":{"line":36,"column":29}},"15":{"start":{"line":41,"column":0},"end":{"line":48,"column":2}},"16":{"start":{"line":42,"column":1},"end":{"line":47,"column":2}},"17":{"start":{"line":43,"column":2},"end":{"line":43,"column":22}},"18":{"start":{"line":45,"column":6},"end":{"line":47,"column":2}},"19":{"start":{"line":46,"column":2},"end":{"line":46,"column":21}},"20":{"start":{"line":50,"column":0},"end":{"line":54,"column":2}},"21":{"start":{"line":51,"column":1},"end":{"line":51,"column":52}},"22":{"start":{"line":53,"column":1},"end":{"line":53,"column":105}},"23":{"start":{"line":56,"column":0},"end":{"line":74,"column":2}},"24":{"start":{"line":58,"column":1},"end":{"line":58,"column":50}},"25":{"start":{"line":59,"column":1},"end":{"line":59,"column":54}},"26":{"start":{"line":61,"column":1},"end":{"line":72,"column":4}},"27":{"start":{"line":66,"column":5},"end":{"line":66,"column":35}},"28":{"start":{"line":68,"column":5},"end":{"line":71,"column":6}},"29":{"start":{"line":69,"column":6},"end":{"line":69,"column":34}},"30":{"start":{"line":70,"column":6},"end":{"line":70,"column":130}},"31":{"start":{"line":76,"column":0},"end":{"line":78,"column":2}},"32":{"start":{"line":77,"column":1},"end":{"line":77,"column":50}},"33":{"start":{"line":80,"column":0},"end":{"line":80,"column":26}}},"branchMap":{"1":{"line":27,"type":"binary-expr","locations":[{"start":{"line":27,"column":16},"end":{"line":27,"column":28}},{"start":{"line":27,"column":32},"end":{"line":27,"column":41}}]},"2":{"line":29,"type":"if","locations":[{"start":{"line":29,"column":5},"end":{"line":29,"column":5}},{"start":{"line":29,"column":5},"end":{"line":29,"column":5}}]},"3":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":1},"end":{"line":42,"column":1}},{"start":{"line":42,"column":1},"end":{"line":42,"column":1}}]},"4":{"line":45,"type":"if","locations":[{"start":{"line":45,"column":6},"end":{"line":45,"column":6}},{"start":{"line":45,"column":6},"end":{"line":45,"column":6}}]},"5":{"line":59,"type":"binary-expr","locations":[{"start":{"line":59,"column":18},"end":{"line":59,"column":35}},{"start":{"line":59,"column":39},"end":{"line":59,"column":53}}]},"6":{"line":66,"type":"binary-expr","locations":[{"start":{"line":66,"column":15},"end":{"line":66,"column":26}},{"start":{"line":66,"column":30},"end":{"line":66,"column":34}}]},"7":{"line":68,"type":"if","locations":[{"start":{"line":68,"column":5},"end":{"line":68,"column":5}},{"start":{"line":68,"column":5},"end":{"line":68,"column":5}}]}}},"/Users/lcxfs1991/web/steamer-plugin-jb/template/project.js":{"path":"/Users/lcxfs1991/web/steamer-plugin-jb/template/project.js","s":{"1":1},"b":{},"f":{},"fnMap":{},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":28,"column":2}}},"branchMap":{}}} \ No newline at end of file diff --git a/coverage/lcov-report/base.css b/coverage/lcov-report/base.css deleted file mode 100644 index 29737bc..0000000 --- a/coverage/lcov-report/base.css +++ /dev/null @@ -1,213 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.medium .chart { border:1px solid #f9cd0b; } -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } -/* light gray */ -span.cline-neutral { background: #eaeaea; } - -.cbranch-no { background: yellow !important; color: #111; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/coverage/lcov-report/index.html b/coverage/lcov-report/index.html deleted file mode 100644 index e35c4e4..0000000 --- a/coverage/lcov-report/index.html +++ /dev/null @@ -1,106 +0,0 @@ - - -
-File | -- | Statements | -- | Branches | -- | Functions | -- | Lines | -- |
---|---|---|---|---|---|---|---|---|---|
steamer-plugin-jb/ | -96.97% | -32/33 | -57.14% | -8/14 | -100% | -7/7 | -96.97% | -32/33 | -|
steamer-plugin-jb/template/ | -100% | -1/1 | -100% | -0/0 | -100% | -0/0 | -100% | -1/1 | -