chayns-toolkit 2.1.0-9 → 3.0.0-alpha2
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/lib/cli.js +72 -87
- package/package.json +17 -52
- package/babel.js +0 -73
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chayns-toolkit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-alpha2",
|
|
4
4
|
"description": "A zero-config toolchain for developing chayns® apps.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chayns",
|
|
@@ -44,38 +44,20 @@
|
|
|
44
44
|
"test": "jest"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@babel/
|
|
48
|
-
"@babel/
|
|
49
|
-
"@babel/helper-plugin-utils": "^7.14.5",
|
|
50
|
-
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
51
|
-
"@babel/plugin-proposal-decorators": "^7.16.4",
|
|
52
|
-
"@babel/plugin-proposal-private-property-in-object": "^7.18.6",
|
|
53
|
-
"@babel/plugin-transform-classes": "^7.19.0",
|
|
54
|
-
"@babel/plugin-transform-runtime": "^7.16.4",
|
|
55
|
-
"@babel/preset-env": "^7.16.4",
|
|
56
|
-
"@babel/preset-flow": "^7.16.0",
|
|
57
|
-
"@babel/preset-react": "^7.16.0",
|
|
58
|
-
"@babel/preset-typescript": "^7.16.0",
|
|
59
|
-
"@babel/runtime": "^7.16.3",
|
|
47
|
+
"@babel/preset-env": "^7.25.8",
|
|
48
|
+
"@babel/preset-react": "^7.25.7",
|
|
60
49
|
"@chayns-toolkit/eslint-config": "^2.0.2",
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"@
|
|
64
|
-
"@
|
|
50
|
+
"@rsbuild/core": "^1.0.11",
|
|
51
|
+
"@rsbuild/plugin-assets-retry": "^1.0.1",
|
|
52
|
+
"@rsbuild/plugin-css-minimizer": "^1.0.2",
|
|
53
|
+
"@rsbuild/plugin-react": "^1.0.3",
|
|
54
|
+
"@rsbuild/plugin-sass": "^1.0.2",
|
|
55
|
+
"@rsbuild/plugin-svgr": "^1.0.3",
|
|
56
|
+
"@rspack/core": "^1.0.8",
|
|
65
57
|
"@testing-library/jest-dom": "^5.15.1",
|
|
66
58
|
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
67
59
|
"@typescript-eslint/parser": "^5.4.0",
|
|
68
|
-
"
|
|
69
|
-
"babel-loader": "^8.2.3",
|
|
70
|
-
"babel-plugin-macros": "^3.1.0",
|
|
71
|
-
"babel-plugin-optimize-clsx": "^2.6.2",
|
|
72
|
-
"babel-plugin-transform-imports": "^2.0.0",
|
|
73
|
-
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
74
|
-
"clean-webpack-plugin": "^4.0.0",
|
|
75
|
-
"core-js": "^3.19.1",
|
|
76
|
-
"css-loader": "^6.5.1",
|
|
77
|
-
"cssnano": "^5.0.12",
|
|
78
|
-
"dotenv-webpack": "^7.0.3",
|
|
60
|
+
"dotenv": "^16.4.5",
|
|
79
61
|
"eslint": "^8.3.0",
|
|
80
62
|
"eslint-config-airbnb": "^19.0.1",
|
|
81
63
|
"eslint-config-airbnb-typescript": "^16.0.0",
|
|
@@ -88,8 +70,9 @@
|
|
|
88
70
|
"eslint-plugin-react": "^7.27.1",
|
|
89
71
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
90
72
|
"html-webpack-plugin": "^5.5.0 <5.5.4",
|
|
91
|
-
"jest": "^
|
|
73
|
+
"jest": "^29.7.0",
|
|
92
74
|
"mini-css-extract-plugin": "^2.4.5",
|
|
75
|
+
"pnpapi": "^0.0.0",
|
|
93
76
|
"postcss": "^8.4.4",
|
|
94
77
|
"postcss-flexbugs-fixes": "^5.0.2",
|
|
95
78
|
"postcss-loader": "^6.2.1",
|
|
@@ -98,40 +81,22 @@
|
|
|
98
81
|
"react-refresh": "^0.11.0",
|
|
99
82
|
"sass": "^1.43.5",
|
|
100
83
|
"sass-loader": "^12.3.0",
|
|
101
|
-
"serve-handler": "^6.1.5",
|
|
102
84
|
"source-map-loader": "^3.0.0",
|
|
103
85
|
"style-loader": "^3.3.1",
|
|
104
|
-
"tcp-port-used": "^1.0.2",
|
|
105
86
|
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
106
|
-
"webpack": "^5.
|
|
107
|
-
"webpack-bundle-analyzer": "^4.5.0",
|
|
108
|
-
"webpack-dev-server": "^4.6.0"
|
|
87
|
+
"webpack": "^5.95.0"
|
|
109
88
|
},
|
|
110
89
|
"devDependencies": {
|
|
111
|
-
"@types/cli-table": "^0.3.0",
|
|
112
|
-
"@types/cssnano": "^4.0.1",
|
|
113
|
-
"@types/dotenv-webpack": "^7.0.3",
|
|
114
90
|
"@types/eslint": "^8.2.0",
|
|
115
|
-
"@types/mini-css-extract-plugin": "^2.4.0",
|
|
116
|
-
"@types/mock-fs": "^4.13.1",
|
|
117
91
|
"@types/node": "^16.11.10",
|
|
118
|
-
"@types/postcss-flexbugs-fixes": "^4.2.1",
|
|
119
|
-
"@types/postcss-preset-env": "^6.7.3",
|
|
120
92
|
"@types/semver": "^7.3.9",
|
|
121
|
-
"@types/serve-handler": "^6.1.4",
|
|
122
|
-
"@types/tcp-port-used": "^1.0.0",
|
|
123
|
-
"@types/webpack-bundle-analyzer": "^4.4.1",
|
|
124
|
-
"@types/webpack-dev-server": "^4.5.0",
|
|
125
93
|
"chalk": "^4.1.2",
|
|
126
|
-
"cli-table": "^0.3.9",
|
|
127
94
|
"commander": "^8.3.0",
|
|
128
|
-
"
|
|
129
|
-
"esbuild": "^0.14.0",
|
|
95
|
+
"esbuild": "^0.24.0",
|
|
130
96
|
"fast-glob": "^3.2.7",
|
|
131
97
|
"fs-extra": "^10.0.0",
|
|
132
98
|
"husky": "^7.0.4",
|
|
133
99
|
"mock-fs": "^5.1.2",
|
|
134
|
-
"param-case": "^3.0.4",
|
|
135
100
|
"prettier": "^2.5.0",
|
|
136
101
|
"prettier-plugin-packagejson": "^2.2.15",
|
|
137
102
|
"pretty-quick": "^3.1.2",
|
|
@@ -139,10 +104,10 @@
|
|
|
139
104
|
"shx": "^0.3.3",
|
|
140
105
|
"type-fest": "^2.6.0",
|
|
141
106
|
"typescript": "^4.5.2",
|
|
142
|
-
"yup": "
|
|
107
|
+
"yup": "0.32.11"
|
|
143
108
|
},
|
|
144
109
|
"engines": {
|
|
145
|
-
"node": ">=
|
|
110
|
+
"node": ">=20.10.0"
|
|
146
111
|
},
|
|
147
112
|
"publishConfig": {
|
|
148
113
|
"access": "public"
|
package/babel.js
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
const { declare } = require("@babel/helper-plugin-utils")
|
|
2
|
-
|
|
3
|
-
module.exports = declare((api, options) => {
|
|
4
|
-
api.assertVersion(7)
|
|
5
|
-
|
|
6
|
-
const env = process.env.BABEL_ENV || process.env.NODE_ENV
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
typescriptSupport = false,
|
|
10
|
-
flowSupport = false,
|
|
11
|
-
transpileModules = false,
|
|
12
|
-
reactRefreshSupport = true,
|
|
13
|
-
} = options
|
|
14
|
-
|
|
15
|
-
if (env === "test") {
|
|
16
|
-
return { presets: [["@babel/env", { targets: { node: "current" } }]] }
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
return {
|
|
20
|
-
presets: [
|
|
21
|
-
[
|
|
22
|
-
"@babel/env",
|
|
23
|
-
{
|
|
24
|
-
loose: true,
|
|
25
|
-
bugfixes: true,
|
|
26
|
-
modules: transpileModules,
|
|
27
|
-
exclude: ["transform-typeof-symbol"],
|
|
28
|
-
useBuiltIns: "usage",
|
|
29
|
-
corejs: 3,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"@babel/react",
|
|
34
|
-
{
|
|
35
|
-
runtime: "automatic",
|
|
36
|
-
development: env !== "production",
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
flowSupport && "@babel/flow",
|
|
40
|
-
typescriptSupport && "@babel/typescript",
|
|
41
|
-
].filter(Boolean),
|
|
42
|
-
plugins: [
|
|
43
|
-
"macros",
|
|
44
|
-
"optimize-clsx",
|
|
45
|
-
[
|
|
46
|
-
"@babel/transform-runtime",
|
|
47
|
-
{
|
|
48
|
-
// eslint-disable-next-line global-require
|
|
49
|
-
version: require("@babel/runtime/package.json").version,
|
|
50
|
-
corejs: false,
|
|
51
|
-
regenerator: true,
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
["@babel/plugin-proposal-class-properties", { loose: true }],
|
|
55
|
-
[
|
|
56
|
-
"@babel/plugin-transform-classes",
|
|
57
|
-
{
|
|
58
|
-
loose: true,
|
|
59
|
-
},
|
|
60
|
-
],
|
|
61
|
-
["@babel/plugin-proposal-private-property-in-object", { loose: true }],
|
|
62
|
-
typescriptSupport && ["@babel/proposal-decorators", { legacy: true }],
|
|
63
|
-
env === "production" && "transform-react-remove-prop-types",
|
|
64
|
-
reactRefreshSupport && env !== "production" && "react-refresh/babel",
|
|
65
|
-
[
|
|
66
|
-
"@babel/plugin-transform-spread",
|
|
67
|
-
{
|
|
68
|
-
loose: false, // fix map and set spreading
|
|
69
|
-
},
|
|
70
|
-
],
|
|
71
|
-
].filter(Boolean),
|
|
72
|
-
}
|
|
73
|
-
})
|