kern-lang 1.0.0 → 2.0.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 (66) hide show
  1. package/dist/index.d.ts +14 -25
  2. package/dist/index.js +15 -28
  3. package/dist/index.js.map +1 -1
  4. package/package.json +17 -36
  5. package/README.md +0 -304
  6. package/dist/cli.d.ts +0 -2
  7. package/dist/cli.js +0 -244
  8. package/dist/cli.js.map +0 -1
  9. package/dist/config.d.ts +0 -46
  10. package/dist/config.js +0 -54
  11. package/dist/config.js.map +0 -1
  12. package/dist/context-export.d.ts +0 -11
  13. package/dist/context-export.js +0 -121
  14. package/dist/context-export.js.map +0 -1
  15. package/dist/decompiler.d.ts +0 -2
  16. package/dist/decompiler.js +0 -44
  17. package/dist/decompiler.js.map +0 -1
  18. package/dist/draft-protocol.d.ts +0 -27
  19. package/dist/draft-protocol.js +0 -135
  20. package/dist/draft-protocol.js.map +0 -1
  21. package/dist/errors.d.ts +0 -12
  22. package/dist/errors.js +0 -40
  23. package/dist/errors.js.map +0 -1
  24. package/dist/metrics.d.ts +0 -30
  25. package/dist/metrics.js +0 -182
  26. package/dist/metrics.js.map +0 -1
  27. package/dist/parser.d.ts +0 -4
  28. package/dist/parser.js +0 -361
  29. package/dist/parser.js.map +0 -1
  30. package/dist/spec.d.ts +0 -17
  31. package/dist/spec.js +0 -86
  32. package/dist/spec.js.map +0 -1
  33. package/dist/styles-react.d.ts +0 -3
  34. package/dist/styles-react.js +0 -20
  35. package/dist/styles-react.js.map +0 -1
  36. package/dist/styles-tailwind.d.ts +0 -8
  37. package/dist/styles-tailwind.js +0 -197
  38. package/dist/styles-tailwind.js.map +0 -1
  39. package/dist/transpiler-cli.d.ts +0 -3
  40. package/dist/transpiler-cli.js +0 -279
  41. package/dist/transpiler-cli.js.map +0 -1
  42. package/dist/transpiler-express.d.ts +0 -3
  43. package/dist/transpiler-express.js +0 -612
  44. package/dist/transpiler-express.js.map +0 -1
  45. package/dist/transpiler-nextjs.d.ts +0 -21
  46. package/dist/transpiler-nextjs.js +0 -400
  47. package/dist/transpiler-nextjs.js.map +0 -1
  48. package/dist/transpiler-tailwind.d.ts +0 -3
  49. package/dist/transpiler-tailwind.js +0 -594
  50. package/dist/transpiler-tailwind.js.map +0 -1
  51. package/dist/transpiler-terminal.d.ts +0 -3
  52. package/dist/transpiler-terminal.js +0 -522
  53. package/dist/transpiler-terminal.js.map +0 -1
  54. package/dist/transpiler-web.d.ts +0 -3
  55. package/dist/transpiler-web.js +0 -218
  56. package/dist/transpiler-web.js.map +0 -1
  57. package/dist/transpiler.d.ts +0 -3
  58. package/dist/transpiler.js +0 -218
  59. package/dist/transpiler.js.map +0 -1
  60. package/dist/types.d.ts +0 -76
  61. package/dist/types.js +0 -11
  62. package/dist/types.js.map +0 -1
  63. package/dist/utils.d.ts +0 -5
  64. package/dist/utils.js +0 -36
  65. package/dist/utils.js.map +0 -1
  66. package/kern.config.ts +0 -61
package/kern.config.ts DELETED
@@ -1,61 +0,0 @@
1
- /**
2
- * Kern Configuration
3
- *
4
- * Customize how Kern transpiles for your project.
5
- * This file is auto-loaded by the CLI from the project root.
6
- */
7
-
8
- import type { KernConfig } from 'kern-lang';
9
-
10
- const config: KernConfig = {
11
- // Target framework (default: nextjs)
12
- target: 'nextjs',
13
-
14
- // i18n configuration
15
- i18n: {
16
- enabled: true,
17
- hookName: 'useTranslation',
18
- importPath: 'react-i18next',
19
- // Set to false to output raw strings without t() wrapping
20
- },
21
-
22
- // Component import mappings
23
- components: {
24
- // UI library imports (Icon, Button, etc.)
25
- uiLibrary: '@components/ui',
26
- // Where to find project components
27
- componentRoot: '@/components',
28
- // Custom component mappings (optional)
29
- // mappings: { SettingsSection: '@features/settings/components/layout/SettingsSection' }
30
- },
31
-
32
- // Color palette — maps hex values to Tailwind classes
33
- // Extend this with your project's design system colors
34
- colors: {
35
- // Zinc scale (dark theme)
36
- '#09090b': 'zinc-950',
37
- '#18181b': 'zinc-900',
38
- '#27272a': 'zinc-800',
39
- '#3f3f46': 'zinc-700',
40
- '#52525b': 'zinc-600',
41
- '#71717a': 'zinc-500',
42
- '#a1a1aa': 'zinc-400',
43
- '#d4d4d8': 'zinc-300',
44
- '#e4e4e7': 'zinc-200',
45
- '#f4f4f5': 'zinc-100',
46
- // Brand colors
47
- '#f97316': 'orange-500',
48
- '#ea580c': 'orange-600',
49
- // Add your project colors here
50
- },
51
-
52
- // Output configuration
53
- output: {
54
- // Directory for generated .tsx files (relative to project root)
55
- outDir: 'src/generated',
56
- // Generate source map .map files
57
- sourceMaps: true,
58
- },
59
- };
60
-
61
- export default config;