diff --git a/packages/canyon-report/lib/index.js b/packages/canyon-report/lib/index.js index b47a630c..85e257ea 100644 --- a/packages/canyon-report/lib/index.js +++ b/packages/canyon-report/lib/index.js @@ -39,11 +39,8 @@ class CoverageReport { return '{}'; } })() - // 5. 核心,动态生成dynamic-data数据 - generateDynamicData({coverage:cov}) - // 3. 复制dist目录到当前工作目录 copyDirectory(sourceDir, targetDir); // 4. 生成html文件,注入coverage-final.json的数据,需要一个summary列表 diff --git a/packages/canyon-report/lib/istanbul/istanbul-summary.js b/packages/canyon-report/lib/istanbul/istanbul-summary.js deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/canyon-report/lib/istanbul/istanbul.js b/packages/canyon-report/lib/istanbul/istanbul.js deleted file mode 100644 index e69de29b..00000000 diff --git a/packages/canyon-report/lib/reports/dynamic-data.js b/packages/canyon-report/lib/reports/dynamic-data.js index 130fcc03..1f1b5768 100644 --- a/packages/canyon-report/lib/reports/dynamic-data.js +++ b/packages/canyon-report/lib/reports/dynamic-data.js @@ -5,8 +5,6 @@ function getDirectoryFromPath(filePath) { return filePath.substring(0, filePath.lastIndexOf("/")); } -// path.join(process.cwd(), "coverage") - const generateDynamicData = ({coverage}) => { for (const key in JSON.parse(coverage)) {; // 示例 diff --git a/packages/canyon-report/lib/reports/template.js b/packages/canyon-report/lib/reports/template.js index 5aa02de4..7b73adaf 100644 --- a/packages/canyon-report/lib/reports/template.js +++ b/packages/canyon-report/lib/reports/template.js @@ -1,8 +1,6 @@ const libCoverage = require('istanbul-lib-coverage'); - const generateHtml = ({coverage}) => { - var map = libCoverage.createCoverageMap(JSON.parse(coverage)); const obj = {} map.files().forEach(function(f) { diff --git a/packages/canyon-report/package.json b/packages/canyon-report/package.json index 18247866..7466b573 100755 --- a/packages/canyon-report/package.json +++ b/packages/canyon-report/package.json @@ -1,6 +1,6 @@ { - "name": "canyon-report7", - "version": "0.0.8-beta-20", + "name": "canyon-report", + "version": "0.0.8-beta-21", "description": "My webpack project", "main": "./lib/index.js", "bin": "./lib/cli.js",