-
Notifications
You must be signed in to change notification settings - Fork 14
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
1 parent
4b7bcd3
commit a2aa285
Showing
23 changed files
with
287 additions
and
2,481 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# EditorConfig is awesome: https://EditorConfig.org | ||
|
||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true |
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,4 @@ | ||
# babel-plugin-canyon | ||
|
||
To see how to use this plugin, please visit our [documentation](https://docs.canyoncov.com/zh/documentation/ecosystem/babel-plugin-canyon). | ||
# 核心功能 | ||
|
||
1. 读取istanbul产生的map数据 | ||
2. 侦测环境变量,打进istanbul数据里 |
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,12 +1,8 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
plugins: [ | ||
'@babel/plugin-transform-modules-commonjs' | ||
presets: [ | ||
"@babel/preset-typescript" | ||
], | ||
env: { | ||
test: { | ||
plugins: ['./lib'] | ||
} | ||
} | ||
plugins: [ | ||
'@babel/plugin-transform-modules-commonjs', | ||
] | ||
} |
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,3 @@ | ||
function add (a,b) { | ||
return a+b | ||
} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: [ | ||
'istanbul', | ||
'./lib' | ||
] | ||
} |
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,62 +1,37 @@ | ||
{ | ||
"name": "babel-plugin-canyon", | ||
"version": "1.8.78-beta.25", | ||
"description": "A Babel plugin cooperates with istanbul to report the coverage", | ||
"author": "Allen Zhang <[email protected]>", | ||
"license": "MIT", | ||
"homepage": "https://github.com/canyon-project/canyon#readme", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/canyon-project/canyon.git", | ||
"directory": "plugins/babel-plugin-canyon" | ||
"version": "1.8.78-beta.26", | ||
"description": "", | ||
"scripts": { | ||
"release": "babel src --extensions \".ts\" --out-dir lib", | ||
"pretest": "npm run release", | ||
"test": "babel features --config-file ./my-custom-babel-config.js --out-dir dist", | ||
"prepublishOnly": "npm run release", | ||
"format": "biome check --write --unsafe ./src", | ||
"preinstall": "npm run release" | ||
}, | ||
"bugs": "https://github.com/canyon-project/canyon/issues", | ||
"keywords": [ | ||
"babel-plugin" | ||
], | ||
"keywords": [], | ||
"main": "lib/index.js", | ||
"files": [ | ||
"lib" | ||
], | ||
"scripts": { | ||
"release": "node scripts/gen-template.js && babel src --out-dir lib", | ||
"pretest": "npm run release", | ||
"test": "cross-env NODE_ENV=test nyc --reporter=lcov --reporter=json mocha --timeout 5000 test/*.js", | ||
"prepublishOnly": "npm run release" | ||
}, | ||
"standard": { | ||
"ignore": [ | ||
"fixtures/*.js" | ||
] | ||
}, | ||
"nyc": { | ||
"include": [ | ||
"src/*.js", | ||
"fixtures" | ||
], | ||
"require": [ | ||
"@babel/register" | ||
], | ||
"sourceMap": false, | ||
"instrument": false | ||
}, | ||
"dependencies": { | ||
"@babel/helper-plugin-utils": "^7.0.0", | ||
"@babel/generator": "^7.25.6" | ||
}, | ||
"author": "", | ||
"license": "ISC", | ||
"devDependencies": { | ||
"@babel/cli": "^7.24.1", | ||
"@babel/core": "^7.24.1", | ||
"@babel/plugin-transform-modules-commonjs": "^7.24.1", | ||
"@babel/register": "^7.23.7", | ||
"babel-plugin-istanbul": "6.1.1", | ||
"chai": "^4.2.0", | ||
"@babel/cli": "^7.25.9", | ||
"@babel/core": "^7.26.0", | ||
"@babel/preset-typescript": "^7.26.0", | ||
"@biomejs/biome": "1.9.4", | ||
"@types/babel__core": "^7.20.5", | ||
"@types/babel__generator": "^7.6.8", | ||
"@types/babel__helper-plugin-utils": "^7.10.3", | ||
"babel-plugin-istanbul": "^7.0.0", | ||
"cross-env": "^7.0.3", | ||
"mocha": "^6.2.2", | ||
"nyc": "^15.0.0", | ||
"standard": "^14.3.1" | ||
"jest": "^29.7.0", | ||
"typescript": "^5.6.3" | ||
}, | ||
"peerDependencies": { | ||
"axios": "*" | ||
"dependencies": { | ||
"@babel/generator": "^7.26.2", | ||
"@babel/helper-plugin-utils": "^7.25.9" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
23 changes: 0 additions & 23 deletions
23
plugins/babel-plugin-canyon/src/helpers/extract-coverage-data.js
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
plugins/babel-plugin-canyon/src/helpers/generate-canyon.js
This file was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
plugins/babel-plugin-canyon/src/helpers/generate-initial-coverage.js
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.