chayns-toolkit 2.0.0-beta.0 → 2.0.0-beta.12

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/package.json CHANGED
@@ -1,140 +1,143 @@
1
- {
2
- "name": "chayns-toolkit",
3
- "version": "2.0.0-beta.0",
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
- "eslint.js"
35
- ],
36
- "scripts": {
37
- "build": "node ./scripts/build",
38
- "check-types": "tsc --noEmit",
39
- "dev": "node ./scripts/watch",
40
- "lint": "eslint src/ --ext js,jsx,ts,tsx",
41
- "prepublishOnly": "npm run build",
42
- "test": "jest",
43
- "format": "prettier . --write",
44
- "prepare": "husky install && shx rm -rf .git/hooks && shx ln -s ../.husky .git/hooks"
45
- },
46
- "dependencies": {
47
- "@babel/core": "^7.14.8",
48
- "@babel/helper-plugin-utils": "^7.14.5",
49
- "@babel/plugin-proposal-decorators": "^7.14.5",
50
- "@babel/plugin-transform-runtime": "^7.14.5",
51
- "@babel/preset-env": "^7.14.8",
52
- "@babel/preset-flow": "^7.14.5",
53
- "@babel/preset-react": "^7.14.5",
54
- "@babel/preset-typescript": "^7.14.5",
55
- "@babel/runtime": "^7.14.8",
56
- "@pmmmwh/react-refresh-webpack-plugin": "^0.4.3",
57
- "@svgr/webpack": "^5.5.0",
58
- "@testing-library/jest-dom": "^5.14.1",
59
- "@typescript-eslint/eslint-plugin": "^4.28.4",
60
- "babel-eslint": "^10.1.0",
61
- "babel-jest": "^27.0.6",
62
- "babel-loader": "^8.2.2",
63
- "babel-plugin-macros": "^3.1.0",
64
- "babel-plugin-optimize-clsx": "^2.6.2",
65
- "babel-plugin-transform-imports": "^2.0.0",
66
- "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
67
- "clean-webpack-plugin": "^3.0.0",
68
- "core-js": "^3.15.2",
69
- "css-loader": "^6.2.0",
70
- "cssnano": "^4.1.11",
71
- "dotenv-webpack": "^7.0.3",
72
- "eslint": "^7.31.0",
73
- "eslint-config-airbnb": "^18.2.1",
74
- "eslint-config-airbnb-typescript": "^12.3.1",
75
- "eslint-config-prettier": "^8.3.0",
76
- "eslint-formatter-pretty": "^4.1.0",
77
- "eslint-import-resolver-typescript": "^2.4.0",
78
- "eslint-plugin-import": "^2.23.4",
79
- "eslint-plugin-jest": "^24.4.0",
80
- "eslint-plugin-jsx-a11y": "^6.4.1",
81
- "eslint-plugin-react": "^7.24.0",
82
- "eslint-plugin-react-hooks": "^4.2.0",
83
- "html-webpack-plugin": "^5.3.2",
84
- "jest": "^27.0.6",
85
- "mini-css-extract-plugin": "^2.1.0",
86
- "postcss": "^7.0.36",
87
- "postcss-flexbugs-fixes": "^4.2.1",
88
- "postcss-loader": "^4.3.0",
89
- "postcss-preset-env": "^6.7.0",
90
- "react-refresh": "^0.10.0",
91
- "sass": "^1.35.2",
92
- "sass-loader": "^12.1.0",
93
- "source-map-loader": "^3.0.0",
94
- "style-loader": "^3.2.1",
95
- "tcp-port-used": "^1.0.2",
96
- "tsconfig-paths-webpack-plugin": "^3.5.1",
97
- "webpack": "^5.46.0",
98
- "webpack-bundle-analyzer": "^4.4.2",
99
- "webpack-dev-server": "^3.11.2"
100
- },
101
- "devDependencies": {
102
- "@types/cli-table": "^0.3.0",
103
- "@types/cssnano": "^4.0.1",
104
- "@types/dotenv-webpack": "^7.0.3",
105
- "@types/eslint": "^7.28.0",
106
- "@types/mini-css-extract-plugin": "^2.0.1",
107
- "@types/mock-fs": "^4.13.1",
108
- "@types/node": "^16.4.1",
109
- "@types/postcss-flexbugs-fixes": "^4.2.1",
110
- "@types/postcss-preset-env": "^6.7.3",
111
- "@types/semver": "^7.3.7",
112
- "@types/tcp-port-used": "^1.0.0",
113
- "@types/webpack-bundle-analyzer": "^4.4.1",
114
- "@types/webpack-dev-server": "^3.11.5",
115
- "chalk": "^4.1.1",
116
- "cli-table": "^0.3.6",
117
- "commander": "^8.0.0",
118
- "cross-env": "^7.0.3",
119
- "esbuild": "^0.12.15",
120
- "fast-glob": "^3.2.7",
121
- "fs-extra": "^10.0.0",
122
- "husky": "^7.0.1",
123
- "mock-fs": "^5.0.0",
124
- "param-case": "^3.0.4",
125
- "prettier": "^2.3.2",
126
- "prettier-plugin-packagejson": "^2.2.11",
127
- "pretty-quick": "^3.1.1",
128
- "semver": "^7.3.5",
129
- "shx": "^0.3.3",
130
- "type-fest": "^1.2.2",
131
- "typescript": "^4.3.5",
132
- "yup": "^0.32.9"
133
- },
134
- "engines": {
135
- "node": ">=12.10.0"
136
- },
137
- "publishConfig": {
138
- "access": "public"
139
- }
140
- }
1
+ {
2
+ "name": "chayns-toolkit",
3
+ "version": "2.0.0-beta.12",
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/core": "^7.16.0",
48
+ "@babel/eslint-parser": "^7.16.3",
49
+ "@babel/helper-plugin-utils": "^7.14.5",
50
+ "@babel/plugin-proposal-decorators": "^7.16.4",
51
+ "@babel/plugin-transform-runtime": "^7.16.4",
52
+ "@babel/preset-env": "^7.16.4",
53
+ "@babel/preset-flow": "^7.16.0",
54
+ "@babel/preset-react": "^7.16.0",
55
+ "@babel/preset-typescript": "^7.16.0",
56
+ "@babel/runtime": "^7.16.3",
57
+ "@chayns-toolkit/eslint-config": "^2.0.0",
58
+ "@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
59
+ "@svgr/webpack": "^6.0.0",
60
+ "@testing-library/jest-dom": "^5.15.1",
61
+ "@typescript-eslint/eslint-plugin": "^5.4.0",
62
+ "@typescript-eslint/parser": "^5.4.0",
63
+ "babel-jest": "^27.3.1",
64
+ "babel-loader": "^8.2.3",
65
+ "babel-plugin-macros": "^3.1.0",
66
+ "babel-plugin-optimize-clsx": "^2.6.2",
67
+ "babel-plugin-transform-imports": "^2.0.0",
68
+ "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
69
+ "clean-webpack-plugin": "^4.0.0",
70
+ "core-js": "^3.19.1",
71
+ "css-loader": "^6.5.1",
72
+ "cssnano": "^5.0.12",
73
+ "dotenv-webpack": "^7.0.3",
74
+ "eslint": "^8.3.0",
75
+ "eslint-config-airbnb": "^19.0.1",
76
+ "eslint-config-airbnb-typescript": "^16.0.0",
77
+ "eslint-config-prettier": "^8.3.0",
78
+ "eslint-formatter-pretty": "^4.1.0",
79
+ "eslint-import-resolver-typescript": "^2.5.0",
80
+ "eslint-plugin-import": "^2.25.3",
81
+ "eslint-plugin-jest": "^25.3.0",
82
+ "eslint-plugin-jsx-a11y": "^6.5.1",
83
+ "eslint-plugin-react": "^7.27.1",
84
+ "eslint-plugin-react-hooks": "^4.3.0",
85
+ "html-webpack-plugin": "^5.5.0",
86
+ "jest": "^27.3.1",
87
+ "mini-css-extract-plugin": "^2.4.5",
88
+ "postcss": "^8.4.4",
89
+ "postcss-flexbugs-fixes": "^5.0.2",
90
+ "postcss-loader": "^6.2.1",
91
+ "postcss-prefix-selector": "^1.14.0",
92
+ "postcss-preset-env": "^7.0.1",
93
+ "react-refresh": "^0.11.0",
94
+ "sass": "^1.43.5",
95
+ "sass-loader": "^12.3.0",
96
+ "source-map-loader": "^3.0.0",
97
+ "style-loader": "^3.3.1",
98
+ "tcp-port-used": "^1.0.2",
99
+ "tsconfig-paths-webpack-plugin": "^3.5.2",
100
+ "webpack": "^5.64.4",
101
+ "webpack-bundle-analyzer": "^4.5.0",
102
+ "webpack-dev-server": "^4.6.0"
103
+ },
104
+ "devDependencies": {
105
+ "@types/cli-table": "^0.3.0",
106
+ "@types/cssnano": "^4.0.1",
107
+ "@types/dotenv-webpack": "^7.0.3",
108
+ "@types/eslint": "^8.2.0",
109
+ "@types/mini-css-extract-plugin": "^2.4.0",
110
+ "@types/mock-fs": "^4.13.1",
111
+ "@types/node": "^16.11.10",
112
+ "@types/postcss-flexbugs-fixes": "^4.2.1",
113
+ "@types/postcss-preset-env": "^6.7.3",
114
+ "@types/semver": "^7.3.9",
115
+ "@types/tcp-port-used": "^1.0.0",
116
+ "@types/webpack-bundle-analyzer": "^4.4.1",
117
+ "@types/webpack-dev-server": "^4.5.0",
118
+ "chalk": "^4.1.2",
119
+ "cli-table": "^0.3.9",
120
+ "commander": "^8.3.0",
121
+ "cross-env": "^7.0.3",
122
+ "esbuild": "^0.14.0",
123
+ "fast-glob": "^3.2.7",
124
+ "fs-extra": "^10.0.0",
125
+ "husky": "^7.0.4",
126
+ "mock-fs": "^5.1.2",
127
+ "param-case": "^3.0.4",
128
+ "prettier": "^2.5.0",
129
+ "prettier-plugin-packagejson": "^2.2.15",
130
+ "pretty-quick": "^3.1.2",
131
+ "semver": "^7.3.5",
132
+ "shx": "^0.3.3",
133
+ "type-fest": "^2.6.0",
134
+ "typescript": "^4.5.2",
135
+ "yup": "^0.32.11"
136
+ },
137
+ "engines": {
138
+ "node": ">=12.10.0"
139
+ },
140
+ "publishConfig": {
141
+ "access": "public"
142
+ }
143
+ }
package/eslint.js DELETED
@@ -1 +0,0 @@
1
- module.exports = require("./eslint/index")
package/lib/eslint.js DELETED
@@ -1,166 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
- var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
- var __getProtoOf = Object.getPrototypeOf;
9
- var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b || (b = {}))
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __markAsModule = (target) => __defProp(target, "__esModule", { value: true });
25
- var __commonJS = (cb, mod) => function __require() {
26
- return mod || (0, cb[Object.keys(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
27
- };
28
- var __reExport = (target, module2, desc) => {
29
- if (module2 && typeof module2 === "object" || typeof module2 === "function") {
30
- for (let key of __getOwnPropNames(module2))
31
- if (!__hasOwnProp.call(target, key) && key !== "default")
32
- __defProp(target, key, { get: () => module2[key], enumerable: !(desc = __getOwnPropDesc(module2, key)) || desc.enumerable });
33
- }
34
- return target;
35
- };
36
- var __toModule = (module2) => {
37
- return __reExport(__markAsModule(__defProp(module2 != null ? __create(__getProtoOf(module2)) : {}, "default", module2 && module2.__esModule && "default" in module2 ? { get: () => module2.default, enumerable: true } : { value: module2, enumerable: true })), module2);
38
- };
39
-
40
- // eslint/javascriptRules.ts
41
- var require_javascriptRules = __commonJS({
42
- "eslint/javascriptRules.ts"(exports2, module2) {
43
- var javascriptRules2 = {
44
- "no-use-before-define": [
45
- "error",
46
- { functions: false, classes: false, variables: false }
47
- ]
48
- };
49
- module2.exports = javascriptRules2;
50
- }
51
- });
52
-
53
- // eslint/sharedRules.ts
54
- var require_sharedRules = __commonJS({
55
- "eslint/sharedRules.ts"(exports2, module2) {
56
- var sharedRules2 = {
57
- "import/extensions": [
58
- "error",
59
- "always",
60
- { js: "never", jsx: "never", ts: "never", tsx: "never" }
61
- ],
62
- "import/no-unresolved": ["error", { ignore: ["chayns-components"] }],
63
- "import/prefer-default-export": "off",
64
- "jsx-a11y/anchor-has-content": "off",
65
- "jsx-a11y/anchor-is-valid": "off",
66
- "jsx-a11y/click-events-have-key-events": "off",
67
- "jsx-a11y/heading-has-content": "off",
68
- "jsx-a11y/href-no-hash": "off",
69
- "jsx-a11y/no-noninteractive-element-interactions": "off",
70
- "jsx-a11y/no-static-element-interactions": "off",
71
- "no-console": ["warn", { allow: ["warn", "error"] }],
72
- "no-param-reassign": [
73
- "error",
74
- { ignorePropertyModificationsFor: ["draft"], props: true }
75
- ],
76
- "no-plusplus": "off",
77
- "no-restricted-imports": [
78
- "error",
79
- {
80
- message: "Use 'chayns-components' instead to enable tree-shaking.",
81
- name: "chayns-components/lib"
82
- }
83
- ],
84
- "react/no-danger": "off"
85
- };
86
- module2.exports = sharedRules2;
87
- }
88
- });
89
-
90
- // eslint/typescriptRules.ts
91
- var require_typescriptRules = __commonJS({
92
- "eslint/typescriptRules.ts"(exports2, module2) {
93
- var typescriptRules2 = {
94
- "react/prop-types": "off",
95
- "react/require-default-props": "off",
96
- "@typescript-eslint/no-use-before-define": [
97
- "error",
98
- { functions: false, classes: false, variables: false, enums: false }
99
- ],
100
- "@typescript-eslint/ban-ts-comment": [
101
- "error",
102
- {
103
- "ts-expect-error": "allow-with-description",
104
- "ts-ignore": true,
105
- "ts-nocheck": true,
106
- "ts-check": true,
107
- minimumDescriptionLength: 4
108
- }
109
- ]
110
- };
111
- module2.exports = typescriptRules2;
112
- }
113
- });
114
-
115
- // eslint/index.ts
116
- var path = __toModule(require("path"));
117
- var import_javascriptRules = __toModule(require_javascriptRules());
118
- var import_sharedRules = __toModule(require_sharedRules());
119
- var import_typescriptRules = __toModule(require_typescriptRules());
120
- var packageJson = require(path.resolve("package.json"));
121
- var usesTypeScript = Object.keys(__spreadValues(__spreadValues({}, packageJson.dependencies), packageJson.devDependencies)).includes("typescript");
122
- module.exports = {
123
- env: {
124
- browser: true,
125
- es6: true
126
- },
127
- extends: ["airbnb", "airbnb/hooks", "prettier"],
128
- globals: { chayns: true },
129
- rules: __spreadValues(__spreadValues({}, import_sharedRules.default), import_javascriptRules.default),
130
- parser: "babel-eslint",
131
- settings: {
132
- "import/resolver": {
133
- typescript: { project: "@(jsconfig|tsconfig).json" }
134
- },
135
- "import/extensions": [".js", ".jsx", ".ts", ".tsx"]
136
- },
137
- overrides: [
138
- usesTypeScript && {
139
- files: ["**/*.ts?(x)"],
140
- extends: [
141
- "airbnb-typescript",
142
- "airbnb/hooks",
143
- "plugin:@typescript-eslint/recommended",
144
- "plugin:@typescript-eslint/recommended-requiring-type-checking",
145
- "prettier",
146
- "plugin:import/typescript"
147
- ],
148
- rules: __spreadValues(__spreadValues({}, import_sharedRules.default), import_typescriptRules.default),
149
- parserOptions: {
150
- project: "./tsconfig.json"
151
- }
152
- },
153
- {
154
- files: ["**/*.@(test|spec).@(js|jsx|ts|tsx)"],
155
- env: { "jest/globals": true },
156
- plugins: ["jest"],
157
- rules: __spreadProps(__spreadValues({}, import_sharedRules.default), {
158
- "jest/no-disabled-tests": "warn",
159
- "jest/no-focused-tests": "error",
160
- "jest/no-identical-title": "error",
161
- "jest/prefer-to-have-length": "warn",
162
- "jest/valid-expect": "error"
163
- })
164
- }
165
- ].filter(Boolean)
166
- };