babel-preset-evergreen 0.8.4 → 0.8.8
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.
- package/README.md +10 -4
- package/package.json +17 -22
package/README.md
CHANGED
|
@@ -15,8 +15,7 @@ A [babel] preset for modern javascript syntaxes.
|
|
|
15
15
|
|
|
16
16
|
This preset can transform:
|
|
17
17
|
|
|
18
|
-
- ECMAScript
|
|
19
|
-
- Class Fields (ECMAScript 2022)
|
|
18
|
+
- ECMAScript 2022 syntax
|
|
20
19
|
|
|
21
20
|
## Installation
|
|
22
21
|
|
|
@@ -26,11 +25,18 @@ npm install babel-preset-evergreen --save-dev
|
|
|
26
25
|
|
|
27
26
|
## Usage
|
|
28
27
|
|
|
29
|
-
```
|
|
28
|
+
```jsonc
|
|
30
29
|
// example: babel.config.json
|
|
31
30
|
{
|
|
32
31
|
"targets": "chrome >= 60",
|
|
33
|
-
"presets": [
|
|
32
|
+
"presets": [
|
|
33
|
+
[
|
|
34
|
+
"evergreen",
|
|
35
|
+
{
|
|
36
|
+
"polyfill": "global"
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
]
|
|
34
40
|
}
|
|
35
41
|
```
|
|
36
42
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "babel-preset-evergreen",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.8",
|
|
4
4
|
"description": "A `babel` preset for modern javascript syntaxes",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -31,40 +31,35 @@
|
|
|
31
31
|
"main": "index.cjs",
|
|
32
32
|
"files": [],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"lint": "nice-move lint",
|
|
35
|
-
"prepare": "git config core.hooksPath .
|
|
34
|
+
"lint-staged": "nice-move lint staged",
|
|
35
|
+
"prepare": "git config core.hooksPath .githooks"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@babel/helper-plugin-utils": "^7.
|
|
39
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
40
|
-
"@babel/preset-env": "^7.
|
|
41
|
-
"@babel/runtime-corejs3": "^7.
|
|
42
|
-
"core-js": "^3.
|
|
38
|
+
"@babel/helper-plugin-utils": "^7.16.7",
|
|
39
|
+
"@babel/plugin-transform-runtime": "^7.17.0",
|
|
40
|
+
"@babel/preset-env": "^7.16.11",
|
|
41
|
+
"@babel/runtime-corejs3": "^7.17.0",
|
|
42
|
+
"core-js": "^3.21.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@babel/core": "^7.
|
|
46
|
-
"@nice-move/cli": "^0.
|
|
47
|
-
"@nice-move/
|
|
48
|
-
"@nice-move/
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"garou": "^0.1.40",
|
|
53
|
-
"prettier": "^2.3.2"
|
|
45
|
+
"@babel/core": "^7.17.0",
|
|
46
|
+
"@nice-move/cli": "^0.7.0",
|
|
47
|
+
"@nice-move/eslint-config-base": "^0.6.1",
|
|
48
|
+
"@nice-move/prettier-config": "^0.5.2",
|
|
49
|
+
"eslint": "^8.8.0",
|
|
50
|
+
"garou": "^0.3.11",
|
|
51
|
+
"prettier": "^2.5.1"
|
|
54
52
|
},
|
|
55
53
|
"peerDependencies": {
|
|
56
|
-
"@babel/core": "^7.
|
|
54
|
+
"@babel/core": "^7.17.0"
|
|
57
55
|
},
|
|
58
56
|
"engines": {
|
|
59
|
-
"node": "^12.
|
|
57
|
+
"node": "^12.22.0 || ^14.17.0 || >=16.13.0"
|
|
60
58
|
},
|
|
61
59
|
"publishConfig": {
|
|
62
60
|
"access": "public",
|
|
63
61
|
"registry": "https://registry.npmjs.org/"
|
|
64
62
|
},
|
|
65
|
-
"commitlint": {
|
|
66
|
-
"extends": "@nice-move/commitlint-config"
|
|
67
|
-
},
|
|
68
63
|
"eslintConfig": {
|
|
69
64
|
"extends": "@nice-move/eslint-config-base"
|
|
70
65
|
},
|