chayns-toolkit 2.1.0-9 → 3.0.0-alpha.5
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 +119 -150
- package/babel.js +0 -73
package/package.json
CHANGED
|
@@ -1,150 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "chayns-toolkit",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "A zero-config toolchain for developing chayns® apps.",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"chayns",
|
|
7
|
-
"react",
|
|
8
|
-
"chayns-components",
|
|
9
|
-
"webpack"
|
|
10
|
-
],
|
|
11
|
-
"homepage": "https://github.com/TobitSoftware/chayns-toolkit#readme",
|
|
12
|
-
"bugs": {
|
|
13
|
-
"url": "https://github.com/TobitSoftware/chayns-toolkit/issues",
|
|
14
|
-
"email": "leonhard.driesch@tobit.com"
|
|
15
|
-
},
|
|
16
|
-
"repository": {
|
|
17
|
-
"type": "git",
|
|
18
|
-
"url": "https://github.com/TobitSoftware/chayns-toolkit.git",
|
|
19
|
-
"directory": "packages/chayns-toolkit"
|
|
20
|
-
},
|
|
21
|
-
"license": "MIT",
|
|
22
|
-
"author": {
|
|
23
|
-
"name": "Leonhard Driesch",
|
|
24
|
-
"email": "leonhard.driesch@tobit.com"
|
|
25
|
-
},
|
|
26
|
-
"bin": {
|
|
27
|
-
"chayns-toolkit": "./cli.js"
|
|
28
|
-
},
|
|
29
|
-
"files": [
|
|
30
|
-
"lib/*",
|
|
31
|
-
"eslint/*",
|
|
32
|
-
"cli.js",
|
|
33
|
-
"babel.js"
|
|
34
|
-
],
|
|
35
|
-
"scripts": {
|
|
36
|
-
"build": "node ./scripts/build",
|
|
37
|
-
"build-docs": "npm --prefix website i && npm --prefix website run build",
|
|
38
|
-
"check-types": "tsc --noEmit",
|
|
39
|
-
"dev": "node ./scripts/watch",
|
|
40
|
-
"format": "prettier . --write",
|
|
41
|
-
"lint": "eslint src/ --ext js,jsx,ts,tsx",
|
|
42
|
-
"prepare": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
|
|
43
|
-
"prepublishOnly": "npm run build",
|
|
44
|
-
"test": "jest"
|
|
45
|
-
},
|
|
46
|
-
"dependencies": {
|
|
47
|
-
"@babel/
|
|
48
|
-
"@babel/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@
|
|
52
|
-
"@
|
|
53
|
-
"@
|
|
54
|
-
"@
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@
|
|
58
|
-
"@
|
|
59
|
-
"@
|
|
60
|
-
"@
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
"
|
|
95
|
-
"
|
|
96
|
-
"
|
|
97
|
-
"
|
|
98
|
-
"
|
|
99
|
-
"
|
|
100
|
-
"
|
|
101
|
-
"
|
|
102
|
-
"
|
|
103
|
-
"
|
|
104
|
-
"
|
|
105
|
-
"
|
|
106
|
-
"
|
|
107
|
-
"
|
|
108
|
-
"
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
"
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
"
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
"
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
"@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
|
-
"chalk": "^4.1.2",
|
|
126
|
-
"cli-table": "^0.3.9",
|
|
127
|
-
"commander": "^8.3.0",
|
|
128
|
-
"cross-env": "^7.0.3",
|
|
129
|
-
"esbuild": "^0.14.0",
|
|
130
|
-
"fast-glob": "^3.2.7",
|
|
131
|
-
"fs-extra": "^10.0.0",
|
|
132
|
-
"husky": "^7.0.4",
|
|
133
|
-
"mock-fs": "^5.1.2",
|
|
134
|
-
"param-case": "^3.0.4",
|
|
135
|
-
"prettier": "^2.5.0",
|
|
136
|
-
"prettier-plugin-packagejson": "^2.2.15",
|
|
137
|
-
"pretty-quick": "^3.1.2",
|
|
138
|
-
"semver": "^7.3.5",
|
|
139
|
-
"shx": "^0.3.3",
|
|
140
|
-
"type-fest": "^2.6.0",
|
|
141
|
-
"typescript": "^4.5.2",
|
|
142
|
-
"yup": "^0.32.11"
|
|
143
|
-
},
|
|
144
|
-
"engines": {
|
|
145
|
-
"node": ">=12.10.0"
|
|
146
|
-
},
|
|
147
|
-
"publishConfig": {
|
|
148
|
-
"access": "public"
|
|
149
|
-
}
|
|
150
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "chayns-toolkit",
|
|
3
|
+
"version": "3.0.0-alpha.5",
|
|
4
|
+
"description": "A zero-config toolchain for developing chayns® apps.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"chayns",
|
|
7
|
+
"react",
|
|
8
|
+
"chayns-components",
|
|
9
|
+
"webpack"
|
|
10
|
+
],
|
|
11
|
+
"homepage": "https://github.com/TobitSoftware/chayns-toolkit#readme",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/TobitSoftware/chayns-toolkit/issues",
|
|
14
|
+
"email": "leonhard.driesch@tobit.com"
|
|
15
|
+
},
|
|
16
|
+
"repository": {
|
|
17
|
+
"type": "git",
|
|
18
|
+
"url": "https://github.com/TobitSoftware/chayns-toolkit.git",
|
|
19
|
+
"directory": "packages/chayns-toolkit"
|
|
20
|
+
},
|
|
21
|
+
"license": "MIT",
|
|
22
|
+
"author": {
|
|
23
|
+
"name": "Leonhard Driesch",
|
|
24
|
+
"email": "leonhard.driesch@tobit.com"
|
|
25
|
+
},
|
|
26
|
+
"bin": {
|
|
27
|
+
"chayns-toolkit": "./cli.js"
|
|
28
|
+
},
|
|
29
|
+
"files": [
|
|
30
|
+
"lib/*",
|
|
31
|
+
"eslint/*",
|
|
32
|
+
"cli.js",
|
|
33
|
+
"babel.js"
|
|
34
|
+
],
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "node ./scripts/build",
|
|
37
|
+
"build-docs": "npm --prefix website i && npm --prefix website run build",
|
|
38
|
+
"check-types": "tsc --noEmit",
|
|
39
|
+
"dev": "node ./scripts/watch",
|
|
40
|
+
"format": "prettier . --write",
|
|
41
|
+
"lint": "eslint src/ --ext js,jsx,ts,tsx",
|
|
42
|
+
"prepare": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks",
|
|
43
|
+
"prepublishOnly": "npm run build",
|
|
44
|
+
"test": "jest"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"@babel/preset-env": "^7.25.8",
|
|
48
|
+
"@babel/preset-react": "^7.25.7",
|
|
49
|
+
"@chayns-toolkit/eslint-config": "^2.0.2",
|
|
50
|
+
"@module-federation/enhanced": "^0.6.10",
|
|
51
|
+
"@module-federation/node": "^2.5.20",
|
|
52
|
+
"@rsbuild/core": "^1.0.11",
|
|
53
|
+
"@rsbuild/plugin-assets-retry": "^1.0.1",
|
|
54
|
+
"@rsbuild/plugin-css-minimizer": "^1.0.2",
|
|
55
|
+
"@rsbuild/plugin-node-polyfill": "^1.0.4",
|
|
56
|
+
"@rsbuild/plugin-react": "^1.0.3",
|
|
57
|
+
"@rsbuild/plugin-sass": "^1.0.2",
|
|
58
|
+
"@rsbuild/plugin-svgr": "^1.0.3",
|
|
59
|
+
"@rspack/core": "^1.0.8",
|
|
60
|
+
"@testing-library/jest-dom": "^5.15.1",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^5.4.0",
|
|
62
|
+
"@typescript-eslint/parser": "^5.4.0",
|
|
63
|
+
"dotenv": "^16.4.5",
|
|
64
|
+
"eslint": "^8.3.0",
|
|
65
|
+
"eslint-config-airbnb": "^19.0.1",
|
|
66
|
+
"eslint-config-airbnb-typescript": "^16.0.0",
|
|
67
|
+
"eslint-config-prettier": "^8.3.0",
|
|
68
|
+
"eslint-formatter-pretty": "^4.1.0",
|
|
69
|
+
"eslint-import-resolver-typescript": "^2.5.0",
|
|
70
|
+
"eslint-plugin-import": "^2.25.3",
|
|
71
|
+
"eslint-plugin-jest": "^25.3.0",
|
|
72
|
+
"eslint-plugin-jsx-a11y": "^6.5.1",
|
|
73
|
+
"eslint-plugin-react": "^7.27.1",
|
|
74
|
+
"eslint-plugin-react-hooks": "^4.3.0",
|
|
75
|
+
"html-webpack-plugin": "^5.5.0 <5.5.4",
|
|
76
|
+
"jest": "^29.7.0",
|
|
77
|
+
"mini-css-extract-plugin": "^2.4.5",
|
|
78
|
+
"pnpapi": "^0.0.0",
|
|
79
|
+
"postcss": "^8.4.4",
|
|
80
|
+
"postcss-flexbugs-fixes": "^5.0.2",
|
|
81
|
+
"postcss-loader": "^6.2.1",
|
|
82
|
+
"postcss-prefix-selector": "^1.14.0",
|
|
83
|
+
"postcss-preset-env": "^7.0.1",
|
|
84
|
+
"react-refresh": "^0.11.0",
|
|
85
|
+
"sass": "^1.43.5",
|
|
86
|
+
"sass-loader": "^12.3.0",
|
|
87
|
+
"serve-handler": "^6.1.5",
|
|
88
|
+
"source-map-loader": "^3.0.0",
|
|
89
|
+
"style-loader": "^3.3.1",
|
|
90
|
+
"tsconfig-paths-webpack-plugin": "^3.5.2",
|
|
91
|
+
"webpack": "^5.95.0"
|
|
92
|
+
},
|
|
93
|
+
"devDependencies": {
|
|
94
|
+
"@types/eslint": "^8.2.0",
|
|
95
|
+
"@types/node": "^16.11.10",
|
|
96
|
+
"@types/semver": "^7.3.9",
|
|
97
|
+
"chalk": "^4.1.2",
|
|
98
|
+
"commander": "^8.3.0",
|
|
99
|
+
"esbuild": "^0.24.0",
|
|
100
|
+
"fast-glob": "^3.2.7",
|
|
101
|
+
"fs-extra": "^10.0.0",
|
|
102
|
+
"husky": "^7.0.4",
|
|
103
|
+
"mock-fs": "^5.1.2",
|
|
104
|
+
"prettier": "^2.5.0",
|
|
105
|
+
"prettier-plugin-packagejson": "^2.2.15",
|
|
106
|
+
"pretty-quick": "^3.1.2",
|
|
107
|
+
"semver": "^7.3.5",
|
|
108
|
+
"shx": "^0.3.3",
|
|
109
|
+
"type-fest": "^2.6.0",
|
|
110
|
+
"typescript": "^4.5.2",
|
|
111
|
+
"yup": "0.32.11"
|
|
112
|
+
},
|
|
113
|
+
"engines": {
|
|
114
|
+
"node": ">=20.10.0"
|
|
115
|
+
},
|
|
116
|
+
"publishConfig": {
|
|
117
|
+
"access": "public"
|
|
118
|
+
}
|
|
119
|
+
}
|
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
|
-
})
|