@canyonjs/babel-plugin 1.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +0 -0
  2. package/lib/index.js +17 -0
  3. package/package.json +40 -0
package/README.md ADDED
File without changes
package/lib/index.js ADDED
@@ -0,0 +1,17 @@
1
+ const {
2
+ declare
3
+ } = require('@babel/helper-plugin-utils');
4
+ module.exports = declare((api, options) => {
5
+ api.assertVersion(7);
6
+ return {
7
+ name: '@canyonjs/babel-plugin',
8
+ visitor: {
9
+ Program: {
10
+ enter(path, state) {
11
+ console.log('123');
12
+ // Plugin logic will be implemented here
13
+ }
14
+ }
15
+ }
16
+ };
17
+ });
package/package.json ADDED
@@ -0,0 +1,40 @@
1
+ {
2
+ "name": "@canyonjs/babel-plugin",
3
+ "version": "1.0.0-alpha.1",
4
+ "description": "A Babel plugin for Canyon code coverage instrumentation",
5
+ "author": "CanyonJS Team",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/canyon-project/canyon"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/canyon-project/canyon/issues"
12
+ },
13
+ "homepage": "https://github.com/canyon-project/canyon#readme",
14
+ "main": "lib/index.js",
15
+ "files": [
16
+ "lib"
17
+ ],
18
+ "license": "MIT",
19
+ "devDependencies": {
20
+ "@types/babel__core": "^7.20.5",
21
+ "@types/babel__generator": "^7.6.8",
22
+ "@types/babel__helper-plugin-utils": "^7.10.3",
23
+ "@babel/cli": "^7.24.1",
24
+ "@babel/core": "^7.24.1",
25
+ "@babel/plugin-transform-modules-commonjs": "^7.24.1",
26
+ "@babel/register": "^7.23.7",
27
+ "babel-plugin-istanbul": "6.1.1",
28
+ "cross-env": "^7.0.3",
29
+ "@types/node": "^22.10.2"
30
+ },
31
+ "dependencies": {
32
+ "@babel/helper-plugin-utils": "^7.0.0",
33
+ "@babel/generator": "^7.25.6"
34
+ },
35
+ "scripts": {
36
+ "release": "babel src --extensions \".js\" --out-dir lib",
37
+ "pretest": "npm run release",
38
+ "test": "babel features --config-file ./test-babel-config.js --out-dir dist"
39
+ }
40
+ }