@regardio/dev 0.9.0

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 (75) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +416 -0
  3. package/dist/bin/exec-clean.d.ts +3 -0
  4. package/dist/bin/exec-clean.d.ts.map +1 -0
  5. package/dist/bin/exec-clean.js +18 -0
  6. package/dist/bin/exec-husky.d.ts +3 -0
  7. package/dist/bin/exec-husky.d.ts.map +1 -0
  8. package/dist/bin/exec-husky.js +8 -0
  9. package/dist/bin/exec-p.d.ts +3 -0
  10. package/dist/bin/exec-p.d.ts.map +1 -0
  11. package/dist/bin/exec-p.js +8 -0
  12. package/dist/bin/exec-s.d.ts +3 -0
  13. package/dist/bin/exec-s.d.ts.map +1 -0
  14. package/dist/bin/exec-s.js +8 -0
  15. package/dist/bin/exec-ts.d.ts +3 -0
  16. package/dist/bin/exec-ts.d.ts.map +1 -0
  17. package/dist/bin/exec-ts.js +28 -0
  18. package/dist/bin/exec-tsc.d.ts +3 -0
  19. package/dist/bin/exec-tsc.d.ts.map +1 -0
  20. package/dist/bin/exec-tsc.js +8 -0
  21. package/dist/bin/flow-branch.d.ts +3 -0
  22. package/dist/bin/flow-branch.d.ts.map +1 -0
  23. package/dist/bin/flow-branch.js +27 -0
  24. package/dist/bin/flow-version.d.ts +3 -0
  25. package/dist/bin/flow-version.d.ts.map +1 -0
  26. package/dist/bin/flow-version.js +83 -0
  27. package/dist/bin/lint-biome.d.ts +3 -0
  28. package/dist/bin/lint-biome.d.ts.map +1 -0
  29. package/dist/bin/lint-biome.js +8 -0
  30. package/dist/bin/lint-commit.d.ts +3 -0
  31. package/dist/bin/lint-commit.d.ts.map +1 -0
  32. package/dist/bin/lint-commit.js +8 -0
  33. package/dist/bin/lint-md.d.ts +3 -0
  34. package/dist/bin/lint-md.d.ts.map +1 -0
  35. package/dist/bin/lint-md.js +10 -0
  36. package/dist/config.test.d.ts +2 -0
  37. package/dist/config.test.d.ts.map +1 -0
  38. package/dist/config.test.js +101 -0
  39. package/dist/playwright/index.d.ts +10 -0
  40. package/dist/playwright/index.d.ts.map +1 -0
  41. package/dist/playwright/index.js +42 -0
  42. package/dist/playwright/index.test.d.ts +2 -0
  43. package/dist/playwright/index.test.d.ts.map +1 -0
  44. package/dist/playwright/index.test.js +55 -0
  45. package/dist/testing/setup-react.d.ts +2 -0
  46. package/dist/testing/setup-react.d.ts.map +1 -0
  47. package/dist/testing/setup-react.js +1 -0
  48. package/dist/vitest/node.d.ts +3 -0
  49. package/dist/vitest/node.d.ts.map +1 -0
  50. package/dist/vitest/node.js +6 -0
  51. package/dist/vitest/react.d.ts +3 -0
  52. package/dist/vitest/react.d.ts.map +1 -0
  53. package/dist/vitest/react.js +7 -0
  54. package/package.json +104 -0
  55. package/src/bin/exec-clean.ts +24 -0
  56. package/src/bin/exec-husky.ts +13 -0
  57. package/src/bin/exec-p.ts +13 -0
  58. package/src/bin/exec-s.ts +13 -0
  59. package/src/bin/exec-ts.ts +39 -0
  60. package/src/bin/exec-tsc.ts +13 -0
  61. package/src/bin/lint-biome.ts +13 -0
  62. package/src/bin/lint-commit.ts +13 -0
  63. package/src/bin/lint-md.ts +16 -0
  64. package/src/biome/preset.json +297 -0
  65. package/src/commitlint/commitlint.cjs +26 -0
  66. package/src/config.test.ts +129 -0
  67. package/src/markdownlint/markdownlint.json +9 -0
  68. package/src/playwright/index.test.ts +73 -0
  69. package/src/playwright/index.ts +63 -0
  70. package/src/testing/setup-react.ts +8 -0
  71. package/src/typescript/base.json +50 -0
  72. package/src/typescript/build.json +19 -0
  73. package/src/typescript/react.json +8 -0
  74. package/src/vitest/node.ts +12 -0
  75. package/src/vitest/react.ts +15 -0
@@ -0,0 +1,50 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig.json",
3
+ "compilerOptions": {
4
+ "allowJs": false,
5
+ "allowSyntheticDefaultImports": true,
6
+ "allowUnreachableCode": false,
7
+ "allowUnusedLabels": false,
8
+ "alwaysStrict": true,
9
+ "checkJs": false,
10
+ "esModuleInterop": true,
11
+ "exactOptionalPropertyTypes": false,
12
+ "forceConsistentCasingInFileNames": true,
13
+ "incremental": false,
14
+ "inlineSources": false,
15
+ "isolatedDeclarations": false,
16
+ "isolatedModules": true,
17
+ "module": "ESNext",
18
+ "moduleDetection": "force",
19
+ "moduleResolution": "Bundler",
20
+ "noEmit": true,
21
+ "noErrorTruncation": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+ "noImplicitAny": true,
24
+ "noImplicitOverride": true,
25
+ "noImplicitReturns": true,
26
+ "noImplicitThis": true,
27
+ "noPropertyAccessFromIndexSignature": false,
28
+ "noUncheckedIndexedAccess": true,
29
+ "noUncheckedSideEffectImports": true,
30
+ "noUnusedLocals": true,
31
+ "noUnusedParameters": true,
32
+ "resolveJsonModule": true,
33
+ "resolvePackageJsonExports": true,
34
+ "resolvePackageJsonImports": true,
35
+ "skipLibCheck": true,
36
+ "sourceMap": true,
37
+ "strict": true,
38
+ "strictBindCallApply": true,
39
+ "strictBuiltinIteratorReturn": true,
40
+ "strictFunctionTypes": true,
41
+ "strictNullChecks": true,
42
+ "strictPropertyInitialization": true,
43
+ "target": "ES2022",
44
+ "types": ["@total-typescript/ts-reset", "@types/node"],
45
+ "useDefineForClassFields": true,
46
+ "useUnknownInCatchVariables": true,
47
+ "verbatimModuleSyntax": true
48
+ },
49
+ "exclude": [".turbo", "build", "coverage", "dist", "node_modules"]
50
+ }
@@ -0,0 +1,19 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "noEmit": false,
7
+ "preserveWatchOutput": true,
8
+ "removeComments": true,
9
+ "sourceMap": false
10
+ },
11
+ "exclude": [
12
+ "dist/**/*",
13
+ "src/**/*.spec.ts",
14
+ "src/**/*.spec.tsx",
15
+ "src/**/*.test.ts",
16
+ "src/**/*.test.tsx",
17
+ "tests/**/*"
18
+ ]
19
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "$schema": "https://www.schemastore.org/tsconfig.json",
3
+ "compilerOptions": {
4
+ "jsx": "react-jsx",
5
+ "lib": ["ES2022", "DOM", "DOM.Iterable"]
6
+ },
7
+ "extends": "./base.json"
8
+ }
@@ -0,0 +1,12 @@
1
+ import type { TestUserConfig } from 'vitest/node';
2
+
3
+ /**
4
+ * Base Vitest configuration for Node.js packages.
5
+ * Use with defineConfig() in your vitest.config.ts
6
+ */
7
+ export const vitestNodeConfig: TestUserConfig = {
8
+ environment: 'node',
9
+ exclude: ['node_modules', 'dist', 'build', '.turbo', '.react-router'],
10
+ globals: true,
11
+ include: ['**/*.test.ts', '**/*.test.tsx'],
12
+ };
@@ -0,0 +1,15 @@
1
+ import type { TestUserConfig } from 'vitest/node';
2
+
3
+ /**
4
+ * Vitest configuration for React packages with jsdom environment.
5
+ * Use with defineConfig() in your vitest.config.ts
6
+ *
7
+ * Requires a setup file that imports '@testing-library/jest-dom/vitest'
8
+ */
9
+ export const vitestReactConfig: TestUserConfig = {
10
+ environment: 'jsdom',
11
+ exclude: ['node_modules', 'dist', 'build', '.turbo', '.react-router'],
12
+ globals: true,
13
+ include: ['**/*.test.ts', '**/*.test.tsx'],
14
+ setupFiles: ['./src/test-setup.ts'],
15
+ };