@fluffjs/cli 0.0.8 → 0.1.1

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 (142) hide show
  1. package/BabelHelpers.d.ts +26 -0
  2. package/BabelHelpers.js +65 -0
  3. package/Cli.d.ts +7 -10
  4. package/Cli.js +139 -52
  5. package/CodeGenerator.d.ts +53 -39
  6. package/CodeGenerator.js +330 -725
  7. package/ComponentCompiler.d.ts +14 -16
  8. package/ComponentCompiler.js +193 -257
  9. package/DomPreProcessor.d.ts +36 -0
  10. package/DomPreProcessor.js +645 -0
  11. package/ErrorHelpers.d.ts +5 -0
  12. package/ErrorHelpers.js +8 -0
  13. package/ExpressionTransformer.d.ts +38 -28
  14. package/ExpressionTransformer.js +558 -230
  15. package/Generator.d.ts +1 -5
  16. package/Generator.js +128 -67
  17. package/GetterDependencyExtractor.d.ts +4 -0
  18. package/GetterDependencyExtractor.js +73 -0
  19. package/IndexHtmlTransformer.d.ts +6 -7
  20. package/IndexHtmlTransformer.js +82 -88
  21. package/Parse5Helpers.d.ts +17 -0
  22. package/Parse5Helpers.js +95 -0
  23. package/TemplateParser.d.ts +39 -21
  24. package/TemplateParser.js +462 -268
  25. package/Typeguards.d.ts +24 -0
  26. package/Typeguards.js +30 -0
  27. package/babel-plugin-class-transform.d.ts +3 -18
  28. package/babel-plugin-class-transform.js +3 -11
  29. package/babel-plugin-component.d.ts +4 -13
  30. package/babel-plugin-component.js +7 -0
  31. package/babel-plugin-imports.d.ts +3 -11
  32. package/babel-plugin-imports.js +5 -31
  33. package/babel-plugin-reactive.d.ts +2 -19
  34. package/babel-plugin-reactive.js +21 -76
  35. package/bin.js +2 -2
  36. package/fluff-esbuild-plugin.d.ts +2 -5
  37. package/fluff-esbuild-plugin.js +4 -1
  38. package/index.d.ts +6 -2
  39. package/index.js +1 -1
  40. package/interfaces/BabelPluginClassTransformState.d.ts +5 -0
  41. package/interfaces/BabelPluginComponentState.d.ts +4 -0
  42. package/interfaces/BabelPluginComponentState.js +1 -0
  43. package/interfaces/BabelPluginImportsState.d.ts +5 -0
  44. package/interfaces/BabelPluginImportsState.js +1 -0
  45. package/interfaces/BabelPluginReactiveState.d.ts +13 -0
  46. package/interfaces/BabelPluginReactiveState.js +1 -0
  47. package/interfaces/BabelPluginReactiveWatchCallInfo.d.ts +7 -0
  48. package/interfaces/BabelPluginReactiveWatchCallInfo.js +1 -0
  49. package/interfaces/BabelPluginReactiveWatchInfo.d.ts +5 -0
  50. package/interfaces/BabelPluginReactiveWatchInfo.js +1 -0
  51. package/interfaces/BabelToken.d.ts +8 -0
  52. package/interfaces/BabelToken.js +1 -0
  53. package/interfaces/BindingInfo.d.ts +12 -0
  54. package/interfaces/BindingInfo.js +1 -0
  55. package/interfaces/BreakMarkerConfig.d.ts +4 -0
  56. package/interfaces/BreakMarkerConfig.js +1 -0
  57. package/interfaces/BreakNode.d.ts +4 -0
  58. package/interfaces/BreakNode.js +1 -0
  59. package/interfaces/BundleOptions.d.ts +9 -0
  60. package/interfaces/BundleOptions.js +1 -0
  61. package/interfaces/ClassTransformOptions.d.ts +10 -0
  62. package/interfaces/ClassTransformOptions.js +1 -0
  63. package/interfaces/CliOptions.d.ts +8 -0
  64. package/interfaces/CliOptions.js +1 -0
  65. package/interfaces/CommentNode.d.ts +5 -0
  66. package/interfaces/CommentNode.js +1 -0
  67. package/interfaces/CompileResult.d.ts +6 -0
  68. package/interfaces/CompileResult.js +1 -0
  69. package/interfaces/CompilerOptions.d.ts +6 -0
  70. package/interfaces/CompilerOptions.js +1 -0
  71. package/interfaces/ComponentInfo.d.ts +8 -0
  72. package/interfaces/ComponentInfo.js +1 -0
  73. package/interfaces/ComponentMetadata.d.ts +9 -0
  74. package/interfaces/ComponentMetadata.js +1 -0
  75. package/interfaces/ControlFlow.d.ts +19 -0
  76. package/interfaces/ControlFlow.js +1 -0
  77. package/interfaces/ControlFlowNode.d.ts +6 -0
  78. package/interfaces/ControlFlowNode.js +1 -0
  79. package/interfaces/ControlFlowParseResult.d.ts +10 -0
  80. package/interfaces/ControlFlowParseResult.js +1 -0
  81. package/interfaces/ElementNode.d.ts +11 -0
  82. package/interfaces/ElementNode.js +1 -0
  83. package/interfaces/FluffConfigInterface.d.ts +7 -0
  84. package/interfaces/FluffConfigInterface.js +1 -0
  85. package/interfaces/FluffPluginOptions.d.ts +9 -0
  86. package/interfaces/FluffPluginOptions.js +1 -0
  87. package/interfaces/FluffTarget.d.ts +15 -0
  88. package/interfaces/FluffTarget.js +1 -0
  89. package/interfaces/ForMarkerConfig.d.ts +9 -0
  90. package/interfaces/ForMarkerConfig.js +1 -0
  91. package/interfaces/ForNode.d.ts +13 -0
  92. package/interfaces/ForNode.js +1 -0
  93. package/interfaces/GeneratorOptions.d.ts +5 -0
  94. package/interfaces/GeneratorOptions.js +1 -0
  95. package/interfaces/HtmlTransformOptions.d.ts +10 -0
  96. package/interfaces/HtmlTransformOptions.js +1 -0
  97. package/interfaces/IfBranch.d.ts +8 -0
  98. package/interfaces/IfBranch.js +1 -0
  99. package/interfaces/IfMarkerConfig.d.ts +8 -0
  100. package/interfaces/IfMarkerConfig.js +1 -0
  101. package/interfaces/IfNode.d.ts +7 -0
  102. package/interfaces/IfNode.js +1 -0
  103. package/interfaces/ImportTransformOptions.d.ts +7 -0
  104. package/interfaces/ImportTransformOptions.js +1 -0
  105. package/interfaces/InterpolationNode.d.ts +12 -0
  106. package/interfaces/InterpolationNode.js +1 -0
  107. package/interfaces/ParsedTemplate.d.ts +6 -0
  108. package/interfaces/ParsedTemplate.js +1 -0
  109. package/interfaces/ParsedTemplateOld.d.ts +9 -0
  110. package/interfaces/ParsedTemplateOld.js +1 -0
  111. package/interfaces/PropertyChain.d.ts +2 -0
  112. package/interfaces/PropertyChain.js +1 -0
  113. package/interfaces/Scope.d.ts +5 -0
  114. package/interfaces/Scope.js +1 -0
  115. package/interfaces/ServeOptions.d.ts +5 -0
  116. package/interfaces/ServeOptions.js +1 -0
  117. package/interfaces/SwitchCase.d.ts +8 -0
  118. package/interfaces/SwitchCase.js +1 -0
  119. package/interfaces/SwitchMarkerConfig.d.ts +11 -0
  120. package/interfaces/SwitchMarkerConfig.js +1 -0
  121. package/interfaces/SwitchNode.d.ts +10 -0
  122. package/interfaces/SwitchNode.js +1 -0
  123. package/interfaces/TemplateBinding.d.ts +10 -0
  124. package/interfaces/TemplateBinding.js +1 -0
  125. package/interfaces/TemplateNode.d.ts +7 -0
  126. package/interfaces/TemplateNode.js +1 -0
  127. package/interfaces/TextMarkerConfig.d.ts +10 -0
  128. package/interfaces/TextMarkerConfig.js +1 -0
  129. package/interfaces/TextNode.d.ts +5 -0
  130. package/interfaces/TextNode.js +1 -0
  131. package/interfaces/TokenizeResult.d.ts +6 -0
  132. package/interfaces/TokenizeResult.js +1 -0
  133. package/interfaces/TransformOptions.d.ts +11 -0
  134. package/interfaces/TransformOptions.js +1 -0
  135. package/interfaces/index.d.ts +34 -0
  136. package/interfaces/index.js +1 -0
  137. package/package.json +9 -1
  138. package/types/FluffConfig.d.ts +5 -27
  139. package/ControlFlowParser.d.ts +0 -55
  140. package/ControlFlowParser.js +0 -279
  141. package/types.d.ts +0 -46
  142. /package/{types.js → interfaces/BabelPluginClassTransformState.js} +0 -0
@@ -0,0 +1,10 @@
1
+ export interface ClassTransformOptions {
2
+ className: string;
3
+ originalSuperClass?: string;
4
+ newSuperClass?: string;
5
+ injectMethods?: {
6
+ name: string;
7
+ body: string;
8
+ }[];
9
+ }
10
+ //# sourceMappingURL=ClassTransformOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface CliOptions {
2
+ cwd?: string;
3
+ nxPackage?: string;
4
+ noGzip?: boolean;
5
+ noMinify?: boolean;
6
+ gzScriptTag?: boolean;
7
+ }
8
+ //# sourceMappingURL=CliOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface CommentNode {
2
+ type: 'comment';
3
+ content: string;
4
+ }
5
+ //# sourceMappingURL=CommentNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CompileResult {
2
+ code: string;
3
+ map?: string;
4
+ watchFiles?: string[];
5
+ }
6
+ //# sourceMappingURL=CompileResult.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface CompilerOptions {
2
+ srcDir: string;
3
+ distDir: string;
4
+ componentSelectors: Set<string>;
5
+ }
6
+ //# sourceMappingURL=CompilerOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface ComponentInfo {
2
+ className: string;
3
+ selector: string;
4
+ templatePath: string;
5
+ stylePath?: string;
6
+ filePath: string;
7
+ }
8
+ //# sourceMappingURL=ComponentInfo.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface ComponentMetadata {
2
+ selector: string;
3
+ templateUrl?: string;
4
+ template?: string;
5
+ styleUrl?: string;
6
+ styles?: string;
7
+ className: string;
8
+ }
9
+ //# sourceMappingURL=ComponentMetadata.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,19 @@
1
+ export interface SwitchCaseOld {
2
+ value: string | null;
3
+ content: string;
4
+ fallthrough: boolean;
5
+ }
6
+ export interface ControlFlow {
7
+ id: string;
8
+ type: 'if' | 'for' | 'switch';
9
+ condition?: string;
10
+ ifContent?: string;
11
+ elseContent?: string;
12
+ iterator?: string;
13
+ iterable?: string;
14
+ trackBy?: string;
15
+ content?: string;
16
+ expression?: string;
17
+ cases?: SwitchCaseOld[];
18
+ }
19
+ //# sourceMappingURL=ControlFlow.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { BreakNode } from './BreakNode.js';
2
+ import type { ForNode } from './ForNode.js';
3
+ import type { IfNode } from './IfNode.js';
4
+ import type { SwitchNode } from './SwitchNode.js';
5
+ export type ControlFlowNode = IfNode | ForNode | SwitchNode | BreakNode;
6
+ //# sourceMappingURL=ControlFlowNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface ControlFlowParseResult {
2
+ tagName: string;
3
+ attrs: {
4
+ name: string;
5
+ value: string;
6
+ }[];
7
+ endPos: number;
8
+ opensBlock: boolean;
9
+ }
10
+ //# sourceMappingURL=ControlFlowParseResult.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { BindingInfo } from './BindingInfo.js';
2
+ import type { TemplateNode } from './TemplateNode.js';
3
+ export interface ElementNode {
4
+ type: 'element';
5
+ tagName: string;
6
+ attributes: Record<string, string>;
7
+ bindings: BindingInfo[];
8
+ children: TemplateNode[];
9
+ id?: string;
10
+ }
11
+ //# sourceMappingURL=ElementNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { FluffTarget } from './FluffTarget.js';
2
+ export interface FluffConfig {
3
+ version: string;
4
+ targets: Record<string, FluffTarget>;
5
+ defaultTarget?: string;
6
+ }
7
+ //# sourceMappingURL=FluffConfigInterface.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface FluffPluginOptions {
2
+ srcDir: string;
3
+ outDir?: string;
4
+ minify?: boolean;
5
+ sourcemap?: boolean;
6
+ skipDefine?: boolean;
7
+ production?: boolean;
8
+ }
9
+ //# sourceMappingURL=FluffPluginOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,15 @@
1
+ import type { BundleOptions } from './BundleOptions.js';
2
+ import type { ServeOptions } from './ServeOptions.js';
3
+ export interface FluffTarget {
4
+ name: string;
5
+ srcDir: string;
6
+ outDir: string;
7
+ entryPoint?: string;
8
+ indexHtml?: string;
9
+ components: string[];
10
+ styles?: string[];
11
+ assets?: string[];
12
+ bundle?: BundleOptions;
13
+ serve?: ServeOptions;
14
+ }
15
+ //# sourceMappingURL=FluffTarget.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ export interface ForMarkerConfig {
2
+ type: 'for';
3
+ iterator: string;
4
+ iterableExprId: number;
5
+ deps?: (string | string[])[];
6
+ trackBy?: string;
7
+ hasEmpty: boolean;
8
+ }
9
+ //# sourceMappingURL=ForMarkerConfig.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,13 @@
1
+ import type { PropertyChain } from './PropertyChain.js';
2
+ import type { TemplateNode } from './TemplateNode.js';
3
+ export interface ForNode {
4
+ type: 'for';
5
+ iterator: string;
6
+ iterable: string;
7
+ iterableDeps?: PropertyChain[];
8
+ trackBy?: string;
9
+ emptyContent?: TemplateNode[];
10
+ children: TemplateNode[];
11
+ localVariables: string[];
12
+ }
13
+ //# sourceMappingURL=ForNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface GeneratorOptions {
2
+ appName: string;
3
+ outputDir: string;
4
+ }
5
+ //# sourceMappingURL=GeneratorOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface HtmlTransformOptions {
2
+ jsBundle: string;
3
+ cssBundle?: string;
4
+ inlineStyles?: string;
5
+ gzip?: boolean;
6
+ gzScriptTag?: boolean;
7
+ minify?: boolean;
8
+ liveReload?: boolean;
9
+ }
10
+ //# sourceMappingURL=HtmlTransformOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { PropertyChain } from './PropertyChain.js';
2
+ import type { TemplateNode } from './TemplateNode.js';
3
+ export interface IfBranch {
4
+ condition?: string;
5
+ conditionDeps?: PropertyChain[];
6
+ children: TemplateNode[];
7
+ }
8
+ //# sourceMappingURL=IfBranch.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface IfMarkerConfig {
2
+ type: 'if';
3
+ branches: {
4
+ exprId?: number;
5
+ deps?: (string | string[])[];
6
+ }[];
7
+ }
8
+ //# sourceMappingURL=IfMarkerConfig.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { IfBranch } from './IfBranch.js';
2
+ export interface IfNode {
3
+ type: 'if';
4
+ branches: IfBranch[];
5
+ localVariables: string[];
6
+ }
7
+ //# sourceMappingURL=IfNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ export interface ImportTransformOptions {
2
+ removeImportsFrom?: string[];
3
+ removeDecorators?: string[];
4
+ pathReplacements?: Record<string, string>;
5
+ addJsExtension?: boolean;
6
+ }
7
+ //# sourceMappingURL=ImportTransformOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,12 @@
1
+ import type { PropertyChain } from './PropertyChain.js';
2
+ export interface InterpolationNode {
3
+ type: 'interpolation';
4
+ expression: string;
5
+ deps?: PropertyChain[];
6
+ id?: string;
7
+ pipes?: {
8
+ name: string;
9
+ args: string[];
10
+ }[];
11
+ }
12
+ //# sourceMappingURL=InterpolationNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ import type { TemplateNode } from './TemplateNode.js';
2
+ export interface ParsedTemplate {
3
+ root: TemplateNode[];
4
+ templateRefs: string[];
5
+ }
6
+ //# sourceMappingURL=ParsedTemplate.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { ControlFlow } from './ControlFlow.js';
2
+ import type { TemplateBinding } from './TemplateBinding.js';
3
+ export interface ParsedTemplateOld {
4
+ html: string;
5
+ bindings: TemplateBinding[];
6
+ controlFlows: ControlFlow[];
7
+ templateRefs: string[];
8
+ }
9
+ //# sourceMappingURL=ParsedTemplateOld.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export type PropertyChain = string | string[];
2
+ //# sourceMappingURL=PropertyChain.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface Scope {
2
+ variables: Set<string>;
3
+ parent?: Scope;
4
+ }
5
+ //# sourceMappingURL=Scope.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface ServeOptions {
2
+ port?: number;
3
+ host?: string;
4
+ }
5
+ //# sourceMappingURL=ServeOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,8 @@
1
+ import type { TemplateNode } from './TemplateNode.js';
2
+ export interface SwitchCase {
3
+ valueExpression?: string;
4
+ isDefault: boolean;
5
+ fallthrough: boolean;
6
+ children: TemplateNode[];
7
+ }
8
+ //# sourceMappingURL=SwitchCase.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface SwitchMarkerConfig {
2
+ type: 'switch';
3
+ expressionExprId: number;
4
+ deps?: (string | string[])[];
5
+ cases: {
6
+ valueExprId?: number;
7
+ isDefault: boolean;
8
+ fallthrough: boolean;
9
+ }[];
10
+ }
11
+ //# sourceMappingURL=SwitchMarkerConfig.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ import type { PropertyChain } from './PropertyChain.js';
2
+ import type { SwitchCase } from './SwitchCase.js';
3
+ export interface SwitchNode {
4
+ type: 'switch';
5
+ expression: string;
6
+ expressionDeps?: PropertyChain[];
7
+ cases: SwitchCase[];
8
+ localVariables: string[];
9
+ }
10
+ //# sourceMappingURL=SwitchNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface TemplateBinding {
2
+ id: string;
3
+ type: 'text' | 'property' | 'event' | 'class' | 'style';
4
+ expression: string;
5
+ target?: string;
6
+ eventName?: string;
7
+ className?: string;
8
+ styleProp?: string;
9
+ }
10
+ //# sourceMappingURL=TemplateBinding.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { CommentNode } from './CommentNode.js';
2
+ import type { ControlFlowNode } from './ControlFlowNode.js';
3
+ import type { ElementNode } from './ElementNode.js';
4
+ import type { InterpolationNode } from './InterpolationNode.js';
5
+ import type { TextNode } from './TextNode.js';
6
+ export type TemplateNode = ControlFlowNode | ElementNode | TextNode | InterpolationNode | CommentNode;
7
+ //# sourceMappingURL=TemplateNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,10 @@
1
+ export interface TextMarkerConfig {
2
+ type: 'text';
3
+ exprId: number;
4
+ deps?: (string | string[])[];
5
+ pipes?: {
6
+ name: string;
7
+ argExprIds: number[];
8
+ }[];
9
+ }
10
+ //# sourceMappingURL=TextMarkerConfig.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ export interface TextNode {
2
+ type: 'text';
3
+ content: string;
4
+ }
5
+ //# sourceMappingURL=TextNode.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface TokenizeResult {
2
+ index: number;
3
+ tokenCount: number;
4
+ stopReason: 'end' | 'negative_depth' | 'delimiter';
5
+ }
6
+ //# sourceMappingURL=TokenizeResult.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,11 @@
1
+ export interface TransformOptions {
2
+ addThisPrefix?: boolean;
3
+ nullSafe?: boolean;
4
+ iteratorName?: string;
5
+ iteratorReplacement?: string;
6
+ localVars?: string[];
7
+ localsObjectName?: string;
8
+ eventReplacementName?: string;
9
+ templateRefs?: string[];
10
+ }
11
+ //# sourceMappingURL=TransformOptions.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,34 @@
1
+ export type { BindingInfo } from './BindingInfo.js';
2
+ export type { BreakNode } from './BreakNode.js';
3
+ export type { BundleOptions } from './BundleOptions.js';
4
+ export type { CliOptions } from './CliOptions.js';
5
+ export type { ClassTransformOptions } from './ClassTransformOptions.js';
6
+ export type { CommentNode } from './CommentNode.js';
7
+ export type { CompileResult } from './CompileResult.js';
8
+ export type { CompilerOptions } from './CompilerOptions.js';
9
+ export type { ComponentInfo } from './ComponentInfo.js';
10
+ export type { ComponentMetadata } from './ComponentMetadata.js';
11
+ export type { ControlFlow, SwitchCaseOld } from './ControlFlow.js';
12
+ export type { ControlFlowNode } from './ControlFlowNode.js';
13
+ export type { ElementNode } from './ElementNode.js';
14
+ export type { FluffConfig } from './FluffConfigInterface.js';
15
+ export type { FluffPluginOptions } from './FluffPluginOptions.js';
16
+ export type { FluffTarget } from './FluffTarget.js';
17
+ export type { ForNode } from './ForNode.js';
18
+ export type { HtmlTransformOptions } from './HtmlTransformOptions.js';
19
+ export type { IfBranch } from './IfBranch.js';
20
+ export type { IfNode } from './IfNode.js';
21
+ export type { ImportTransformOptions } from './ImportTransformOptions.js';
22
+ export type { InterpolationNode } from './InterpolationNode.js';
23
+ export type { ParsedTemplate } from './ParsedTemplate.js';
24
+ export type { ParsedTemplateOld } from './ParsedTemplateOld.js';
25
+ export type { PropertyChain } from './PropertyChain.js';
26
+ export type { Scope } from './Scope.js';
27
+ export type { ServeOptions } from './ServeOptions.js';
28
+ export type { SwitchCase } from './SwitchCase.js';
29
+ export type { SwitchNode } from './SwitchNode.js';
30
+ export type { TemplateBinding } from './TemplateBinding.js';
31
+ export type { TemplateNode } from './TemplateNode.js';
32
+ export type { TextNode } from './TextNode.js';
33
+ export type { TransformOptions } from './TransformOptions.js';
34
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluffjs/cli",
3
- "version": "0.0.8",
3
+ "version": "0.1.1",
4
4
  "type": "module",
5
5
  "main": "./index.js",
6
6
  "module": "./index.js",
@@ -30,11 +30,19 @@
30
30
  "@babel/traverse": "^7.28.6",
31
31
  "@babel/types": "^7.28.6",
32
32
  "esbuild": "^0.27.2",
33
+ "he": "^1.2.0",
33
34
  "html-minifier-terser": "^7.2.0",
35
+ "picomatch": "^4.0.2",
34
36
  "parse5": "^8.0.0",
37
+ "parse5-sax-parser": "^8.0.0",
35
38
  "source-map": "^0.7.6",
36
39
  "tslib": "^2.3.0"
37
40
  },
41
+ "devDependencies": {
42
+ "@types/he": "^1.2.3",
43
+ "@types/jsesc": "^3.0.3",
44
+ "jsesc": "^3.1.0"
45
+ },
38
46
  "publishConfig": {
39
47
  "access": "public"
40
48
  }
@@ -1,29 +1,7 @@
1
- export interface BundleOptions {
2
- minify?: boolean;
3
- splitting?: boolean;
4
- target?: string;
5
- gzip?: boolean;
6
- external?: string[];
7
- }
8
- export interface ServeOptions {
9
- port?: number;
10
- host?: string;
11
- }
12
- export interface FluffTarget {
13
- name: string;
14
- srcDir: string;
15
- outDir: string;
16
- entryPoint?: string;
17
- indexHtml?: string;
18
- components: string[];
19
- assets?: string[];
20
- bundle?: BundleOptions;
21
- serve?: ServeOptions;
22
- }
23
- export interface FluffConfig {
24
- version: string;
25
- targets: Record<string, FluffTarget>;
26
- defaultTarget?: string;
27
- }
1
+ import type { FluffConfig } from '../interfaces/FluffConfigInterface.js';
2
+ export type { BundleOptions } from '../interfaces/BundleOptions.js';
3
+ export type { FluffConfig } from '../interfaces/FluffConfigInterface.js';
4
+ export type { FluffTarget } from '../interfaces/FluffTarget.js';
5
+ export type { ServeOptions } from '../interfaces/ServeOptions.js';
28
6
  export declare const DEFAULT_CONFIG: FluffConfig;
29
7
  //# sourceMappingURL=FluffConfig.d.ts.map