@teambit/generator 1.0.373 → 1.0.374

Sign up to get free protection for your applications and to get access to all the features.
@@ -2388,7 +2388,7 @@
2388
2388
  "__schema": "InterfaceSchema",
2389
2389
  "location": {
2390
2390
  "filePath": "component-template.ts",
2391
- "line": 136,
2391
+ "line": 146,
2392
2392
  "character": 1
2393
2393
  },
2394
2394
  "signature": "interface ComponentTemplate",
@@ -2398,7 +2398,7 @@
2398
2398
  "__schema": "VariableLikeSchema",
2399
2399
  "location": {
2400
2400
  "filePath": "component-template.ts",
2401
- "line": 137,
2401
+ "line": 147,
2402
2402
  "character": 3
2403
2403
  },
2404
2404
  "signature": "(property) ComponentTemplate.name: string",
@@ -2407,7 +2407,7 @@
2407
2407
  "__schema": "KeywordTypeSchema",
2408
2408
  "location": {
2409
2409
  "filePath": "component-template.ts",
2410
- "line": 137,
2410
+ "line": 147,
2411
2411
  "character": 9
2412
2412
  },
2413
2413
  "name": "string"
@@ -2418,14 +2418,14 @@
2418
2418
  "__schema": "FunctionLikeSchema",
2419
2419
  "location": {
2420
2420
  "filePath": "component-template.ts",
2421
- "line": 142,
2421
+ "line": 152,
2422
2422
  "character": 3
2423
2423
  },
2424
2424
  "doc": {
2425
2425
  "__schema": "DocSchema",
2426
2426
  "location": {
2427
2427
  "filePath": "component-template.ts",
2428
- "line": 139,
2428
+ "line": 149,
2429
2429
  "character": 3
2430
2430
  },
2431
2431
  "raw": "/**\n * template function for generating the file of a certain component.,\n */",
@@ -2439,7 +2439,7 @@
2439
2439
  "__schema": "ParameterSchema",
2440
2440
  "location": {
2441
2441
  "filePath": "component-template.ts",
2442
- "line": 142,
2442
+ "line": 152,
2443
2443
  "character": 17
2444
2444
  },
2445
2445
  "name": "context",
@@ -2447,7 +2447,7 @@
2447
2447
  "__schema": "TypeRefSchema",
2448
2448
  "location": {
2449
2449
  "filePath": "component-template.ts",
2450
- "line": 142,
2450
+ "line": 152,
2451
2451
  "character": 26
2452
2452
  },
2453
2453
  "name": "ComponentContext"
@@ -2460,7 +2460,7 @@
2460
2460
  "__schema": "TypeUnionSchema",
2461
2461
  "location": {
2462
2462
  "filePath": "component-template.ts",
2463
- "line": 142,
2463
+ "line": 152,
2464
2464
  "character": 45
2465
2465
  },
2466
2466
  "types": [
@@ -2468,7 +2468,7 @@
2468
2468
  "__schema": "TypeRefSchema",
2469
2469
  "location": {
2470
2470
  "filePath": "component-template.ts",
2471
- "line": 142,
2471
+ "line": 152,
2472
2472
  "character": 45
2473
2473
  },
2474
2474
  "name": "Promise",
@@ -2477,14 +2477,14 @@
2477
2477
  "__schema": "TypeArraySchema",
2478
2478
  "location": {
2479
2479
  "filePath": "component-template.ts",
2480
- "line": 142,
2480
+ "line": 152,
2481
2481
  "character": 53
2482
2482
  },
2483
2483
  "type": {
2484
2484
  "__schema": "TypeRefSchema",
2485
2485
  "location": {
2486
2486
  "filePath": "component-template.ts",
2487
- "line": 142,
2487
+ "line": 152,
2488
2488
  "character": 53
2489
2489
  },
2490
2490
  "name": "ComponentFile"
@@ -2496,14 +2496,14 @@
2496
2496
  "__schema": "TypeArraySchema",
2497
2497
  "location": {
2498
2498
  "filePath": "component-template.ts",
2499
- "line": 142,
2499
+ "line": 152,
2500
2500
  "character": 72
2501
2501
  },
2502
2502
  "type": {
2503
2503
  "__schema": "TypeRefSchema",
2504
2504
  "location": {
2505
2505
  "filePath": "component-template.ts",
2506
- "line": 142,
2506
+ "line": 152,
2507
2507
  "character": 72
2508
2508
  },
2509
2509
  "name": "ComponentFile"
@@ -2517,14 +2517,14 @@
2517
2517
  "__schema": "VariableLikeSchema",
2518
2518
  "location": {
2519
2519
  "filePath": "component-template.ts",
2520
- "line": 151,
2520
+ "line": 161,
2521
2521
  "character": 3
2522
2522
  },
2523
2523
  "doc": {
2524
2524
  "__schema": "DocSchema",
2525
2525
  "location": {
2526
2526
  "filePath": "component-template.ts",
2527
- "line": 144,
2527
+ "line": 154,
2528
2528
  "character": 3
2529
2529
  },
2530
2530
  "raw": "/**\n * component config. gets saved in the .bitmap file and it overrides the workspace.jsonc config.\n * for example, you can set the env that will be used for this component as follows:\n * \"teambit.envs/envs\": {\n * \"env\": \"teambit.harmony/aspect\"\n * },\n */",
@@ -2537,7 +2537,7 @@
2537
2537
  "__schema": "TypeUnionSchema",
2538
2538
  "location": {
2539
2539
  "filePath": "component-template.ts",
2540
- "line": 151,
2540
+ "line": 161,
2541
2541
  "character": 12
2542
2542
  },
2543
2543
  "types": [
@@ -2545,7 +2545,7 @@
2545
2545
  "__schema": "TypeRefSchema",
2546
2546
  "location": {
2547
2547
  "filePath": "component-template.ts",
2548
- "line": 151,
2548
+ "line": 161,
2549
2549
  "character": 12
2550
2550
  },
2551
2551
  "name": "ComponentConfig"
@@ -2554,14 +2554,14 @@
2554
2554
  "__schema": "ParenthesizedTypeSchema",
2555
2555
  "location": {
2556
2556
  "filePath": "component-template.ts",
2557
- "line": 151,
2557
+ "line": 161,
2558
2558
  "character": 30
2559
2559
  },
2560
2560
  "type": {
2561
2561
  "__schema": "FunctionLikeSchema",
2562
2562
  "location": {
2563
2563
  "filePath": "component-template.ts",
2564
- "line": 151,
2564
+ "line": 161,
2565
2565
  "character": 31
2566
2566
  },
2567
2567
  "signature": "(context: ConfigContext): ComponentConfig",
@@ -2571,7 +2571,7 @@
2571
2571
  "__schema": "ParameterSchema",
2572
2572
  "location": {
2573
2573
  "filePath": "component-template.ts",
2574
- "line": 151,
2574
+ "line": 161,
2575
2575
  "character": 32
2576
2576
  },
2577
2577
  "name": "context",
@@ -2579,7 +2579,7 @@
2579
2579
  "__schema": "TypeRefSchema",
2580
2580
  "location": {
2581
2581
  "filePath": "component-template.ts",
2582
- "line": 151,
2582
+ "line": 161,
2583
2583
  "character": 41
2584
2584
  },
2585
2585
  "name": "ConfigContext"
@@ -2592,7 +2592,7 @@
2592
2592
  "__schema": "TypeRefSchema",
2593
2593
  "location": {
2594
2594
  "filePath": "component-template.ts",
2595
- "line": 151,
2595
+ "line": 161,
2596
2596
  "character": 59
2597
2597
  },
2598
2598
  "name": "ComponentConfig"
@@ -2610,7 +2610,7 @@
2610
2610
  "__schema": "ExpressionWithTypeArgumentsSchema",
2611
2611
  "location": {
2612
2612
  "filePath": "component-template.ts",
2613
- "line": 136,
2613
+ "line": 146,
2614
2614
  "character": 44
2615
2615
  },
2616
2616
  "name": "extends ComponentTemplateOptions",
@@ -2664,8 +2664,8 @@
2664
2664
  "line": 97,
2665
2665
  "character": 3
2666
2666
  },
2667
- "name": "description",
2668
- "signature": "(property) ComponentTemplateOptions.description?: string | undefined",
2667
+ "name": "displayName",
2668
+ "signature": "(property) ComponentTemplateOptions.displayName?: string | undefined",
2669
2669
  "isOptional": true,
2670
2670
  "type": {
2671
2671
  "__schema": "KeywordTypeSchema",
@@ -2683,6 +2683,68 @@
2683
2683
  "line": 94,
2684
2684
  "character": 3
2685
2685
  },
2686
+ "raw": "/**\n * display name of the template.\n */",
2687
+ "comment": "display name of the template.",
2688
+ "tags": []
2689
+ }
2690
+ },
2691
+ {
2692
+ "__schema": "VariableLikeSchema",
2693
+ "location": {
2694
+ "filePath": "component-template.ts",
2695
+ "line": 102,
2696
+ "character": 3
2697
+ },
2698
+ "name": "exampleComponentName",
2699
+ "signature": "(property) ComponentTemplateOptions.exampleComponentName?: string | undefined",
2700
+ "isOptional": true,
2701
+ "type": {
2702
+ "__schema": "KeywordTypeSchema",
2703
+ "location": {
2704
+ "filePath": "component-template.ts",
2705
+ "line": 102,
2706
+ "character": 26
2707
+ },
2708
+ "name": "string"
2709
+ },
2710
+ "doc": {
2711
+ "__schema": "DocSchema",
2712
+ "location": {
2713
+ "filePath": "component-template.ts",
2714
+ "line": 99,
2715
+ "character": 3
2716
+ },
2717
+ "raw": "/**\n * example name for the component template.\n */",
2718
+ "comment": "example name for the component template.",
2719
+ "tags": []
2720
+ }
2721
+ },
2722
+ {
2723
+ "__schema": "VariableLikeSchema",
2724
+ "location": {
2725
+ "filePath": "component-template.ts",
2726
+ "line": 107,
2727
+ "character": 3
2728
+ },
2729
+ "name": "description",
2730
+ "signature": "(property) ComponentTemplateOptions.description?: string | undefined",
2731
+ "isOptional": true,
2732
+ "type": {
2733
+ "__schema": "KeywordTypeSchema",
2734
+ "location": {
2735
+ "filePath": "component-template.ts",
2736
+ "line": 107,
2737
+ "character": 17
2738
+ },
2739
+ "name": "string"
2740
+ },
2741
+ "doc": {
2742
+ "__schema": "DocSchema",
2743
+ "location": {
2744
+ "filePath": "component-template.ts",
2745
+ "line": 104,
2746
+ "character": 3
2747
+ },
2686
2748
  "raw": "/**\n * short description of the template. shown in the `bit templates` command.\n */",
2687
2749
  "comment": "short description of the template. shown in the `bit templates` command.",
2688
2750
  "tags": []
@@ -2692,7 +2754,7 @@
2692
2754
  "__schema": "VariableLikeSchema",
2693
2755
  "location": {
2694
2756
  "filePath": "component-template.ts",
2695
- "line": 102,
2757
+ "line": 112,
2696
2758
  "character": 3
2697
2759
  },
2698
2760
  "name": "hidden",
@@ -2702,7 +2764,7 @@
2702
2764
  "__schema": "KeywordTypeSchema",
2703
2765
  "location": {
2704
2766
  "filePath": "component-template.ts",
2705
- "line": 102,
2767
+ "line": 112,
2706
2768
  "character": 12
2707
2769
  },
2708
2770
  "name": "boolean"
@@ -2711,7 +2773,7 @@
2711
2773
  "__schema": "DocSchema",
2712
2774
  "location": {
2713
2775
  "filePath": "component-template.ts",
2714
- "line": 99,
2776
+ "line": 109,
2715
2777
  "character": 3
2716
2778
  },
2717
2779
  "raw": "/**\n * hide this template so that it is not listed with `bit templates`\n */",
@@ -2723,7 +2785,7 @@
2723
2785
  "__schema": "VariableLikeSchema",
2724
2786
  "location": {
2725
2787
  "filePath": "component-template.ts",
2726
- "line": 107,
2788
+ "line": 117,
2727
2789
  "character": 3
2728
2790
  },
2729
2791
  "name": "env",
@@ -2733,7 +2795,7 @@
2733
2795
  "__schema": "KeywordTypeSchema",
2734
2796
  "location": {
2735
2797
  "filePath": "component-template.ts",
2736
- "line": 107,
2798
+ "line": 117,
2737
2799
  "character": 9
2738
2800
  },
2739
2801
  "name": "string"
@@ -2742,7 +2804,7 @@
2742
2804
  "__schema": "DocSchema",
2743
2805
  "location": {
2744
2806
  "filePath": "component-template.ts",
2745
- "line": 104,
2807
+ "line": 114,
2746
2808
  "character": 3
2747
2809
  },
2748
2810
  "raw": "/**\n * env to use for the generated component.\n */",
@@ -2754,7 +2816,7 @@
2754
2816
  "__schema": "VariableLikeSchema",
2755
2817
  "location": {
2756
2818
  "filePath": "component-template.ts",
2757
- "line": 114,
2819
+ "line": 124,
2758
2820
  "character": 3
2759
2821
  },
2760
2822
  "name": "isEnv",
@@ -2764,7 +2826,7 @@
2764
2826
  "__schema": "KeywordTypeSchema",
2765
2827
  "location": {
2766
2828
  "filePath": "component-template.ts",
2767
- "line": 114,
2829
+ "line": 124,
2768
2830
  "character": 11
2769
2831
  },
2770
2832
  "name": "boolean"
@@ -2773,7 +2835,7 @@
2773
2835
  "__schema": "DocSchema",
2774
2836
  "location": {
2775
2837
  "filePath": "component-template.ts",
2776
- "line": 109,
2838
+ "line": 119,
2777
2839
  "character": 3
2778
2840
  },
2779
2841
  "raw": "/**\n * adds a metadata that the component that this template creates is of type env.\n * This will be used later to do further configuration for example:\n * - ensure to create the .bit_root for it\n */",
@@ -2785,7 +2847,7 @@
2785
2847
  "__schema": "VariableLikeSchema",
2786
2848
  "location": {
2787
2849
  "filePath": "component-template.ts",
2788
- "line": 122,
2850
+ "line": 132,
2789
2851
  "character": 3
2790
2852
  },
2791
2853
  "name": "isApp",
@@ -2795,7 +2857,7 @@
2795
2857
  "__schema": "KeywordTypeSchema",
2796
2858
  "location": {
2797
2859
  "filePath": "component-template.ts",
2798
- "line": 122,
2860
+ "line": 132,
2799
2861
  "character": 11
2800
2862
  },
2801
2863
  "name": "boolean"
@@ -2804,7 +2866,7 @@
2804
2866
  "__schema": "DocSchema",
2805
2867
  "location": {
2806
2868
  "filePath": "component-template.ts",
2807
- "line": 116,
2869
+ "line": 126,
2808
2870
  "character": 3
2809
2871
  },
2810
2872
  "raw": "/**\n * adds a metadata that the component that this template creates is of type app.\n * This will be used later to do further configuration for example:\n * - add it to the workspace.jsonc as app\n * - ensure to create the .bit_root for it\n */",
@@ -2816,7 +2878,7 @@
2816
2878
  "__schema": "VariableLikeSchema",
2817
2879
  "location": {
2818
2880
  "filePath": "component-template.ts",
2819
- "line": 127,
2881
+ "line": 137,
2820
2882
  "character": 3
2821
2883
  },
2822
2884
  "name": "dependencies",
@@ -2826,14 +2888,14 @@
2826
2888
  "__schema": "TypeArraySchema",
2827
2889
  "location": {
2828
2890
  "filePath": "component-template.ts",
2829
- "line": 127,
2891
+ "line": 137,
2830
2892
  "character": 18
2831
2893
  },
2832
2894
  "type": {
2833
2895
  "__schema": "KeywordTypeSchema",
2834
2896
  "location": {
2835
2897
  "filePath": "component-template.ts",
2836
- "line": 127,
2898
+ "line": 137,
2837
2899
  "character": 18
2838
2900
  },
2839
2901
  "name": "string"
@@ -2843,7 +2905,7 @@
2843
2905
  "__schema": "DocSchema",
2844
2906
  "location": {
2845
2907
  "filePath": "component-template.ts",
2846
- "line": 124,
2908
+ "line": 134,
2847
2909
  "character": 3
2848
2910
  },
2849
2911
  "raw": "/**\n * list of dependencies to install when the component is created.\n */",
@@ -2855,7 +2917,7 @@
2855
2917
  "__schema": "VariableLikeSchema",
2856
2918
  "location": {
2857
2919
  "filePath": "component-template.ts",
2858
- "line": 133,
2920
+ "line": 143,
2859
2921
  "character": 3
2860
2922
  },
2861
2923
  "name": "installMissingDependencies",
@@ -2865,7 +2927,7 @@
2865
2927
  "__schema": "KeywordTypeSchema",
2866
2928
  "location": {
2867
2929
  "filePath": "component-template.ts",
2868
- "line": 133,
2930
+ "line": 143,
2869
2931
  "character": 32
2870
2932
  },
2871
2933
  "name": "boolean"
@@ -2874,7 +2936,7 @@
2874
2936
  "__schema": "DocSchema",
2875
2937
  "location": {
2876
2938
  "filePath": "component-template.ts",
2877
- "line": 129,
2939
+ "line": 139,
2878
2940
  "character": 3
2879
2941
  },
2880
2942
  "raw": "/**\n * Perform installation of missing dependencies after component generation.\n * This is the same as of running `bit install --add-missing-deps` after component generation.\n */",
@@ -2951,6 +3013,68 @@
2951
3013
  "line": 94,
2952
3014
  "character": 3
2953
3015
  },
3016
+ "raw": "/**\n * display name of the template.\n */",
3017
+ "comment": "display name of the template.",
3018
+ "tags": []
3019
+ },
3020
+ "signature": "(property) ComponentTemplateOptions.displayName?: string | undefined",
3021
+ "name": "displayName",
3022
+ "type": {
3023
+ "__schema": "KeywordTypeSchema",
3024
+ "location": {
3025
+ "filePath": "component-template.ts",
3026
+ "line": 97,
3027
+ "character": 17
3028
+ },
3029
+ "name": "string"
3030
+ },
3031
+ "isOptional": true
3032
+ },
3033
+ {
3034
+ "__schema": "VariableLikeSchema",
3035
+ "location": {
3036
+ "filePath": "component-template.ts",
3037
+ "line": 102,
3038
+ "character": 3
3039
+ },
3040
+ "doc": {
3041
+ "__schema": "DocSchema",
3042
+ "location": {
3043
+ "filePath": "component-template.ts",
3044
+ "line": 99,
3045
+ "character": 3
3046
+ },
3047
+ "raw": "/**\n * example name for the component template.\n */",
3048
+ "comment": "example name for the component template.",
3049
+ "tags": []
3050
+ },
3051
+ "signature": "(property) ComponentTemplateOptions.exampleComponentName?: string | undefined",
3052
+ "name": "exampleComponentName",
3053
+ "type": {
3054
+ "__schema": "KeywordTypeSchema",
3055
+ "location": {
3056
+ "filePath": "component-template.ts",
3057
+ "line": 102,
3058
+ "character": 26
3059
+ },
3060
+ "name": "string"
3061
+ },
3062
+ "isOptional": true
3063
+ },
3064
+ {
3065
+ "__schema": "VariableLikeSchema",
3066
+ "location": {
3067
+ "filePath": "component-template.ts",
3068
+ "line": 107,
3069
+ "character": 3
3070
+ },
3071
+ "doc": {
3072
+ "__schema": "DocSchema",
3073
+ "location": {
3074
+ "filePath": "component-template.ts",
3075
+ "line": 104,
3076
+ "character": 3
3077
+ },
2954
3078
  "raw": "/**\n * short description of the template. shown in the `bit templates` command.\n */",
2955
3079
  "comment": "short description of the template. shown in the `bit templates` command.",
2956
3080
  "tags": []
@@ -2961,7 +3085,7 @@
2961
3085
  "__schema": "KeywordTypeSchema",
2962
3086
  "location": {
2963
3087
  "filePath": "component-template.ts",
2964
- "line": 97,
3088
+ "line": 107,
2965
3089
  "character": 17
2966
3090
  },
2967
3091
  "name": "string"
@@ -2972,14 +3096,14 @@
2972
3096
  "__schema": "VariableLikeSchema",
2973
3097
  "location": {
2974
3098
  "filePath": "component-template.ts",
2975
- "line": 102,
3099
+ "line": 112,
2976
3100
  "character": 3
2977
3101
  },
2978
3102
  "doc": {
2979
3103
  "__schema": "DocSchema",
2980
3104
  "location": {
2981
3105
  "filePath": "component-template.ts",
2982
- "line": 99,
3106
+ "line": 109,
2983
3107
  "character": 3
2984
3108
  },
2985
3109
  "raw": "/**\n * hide this template so that it is not listed with `bit templates`\n */",
@@ -2992,7 +3116,7 @@
2992
3116
  "__schema": "KeywordTypeSchema",
2993
3117
  "location": {
2994
3118
  "filePath": "component-template.ts",
2995
- "line": 102,
3119
+ "line": 112,
2996
3120
  "character": 12
2997
3121
  },
2998
3122
  "name": "boolean"
@@ -3003,14 +3127,14 @@
3003
3127
  "__schema": "VariableLikeSchema",
3004
3128
  "location": {
3005
3129
  "filePath": "component-template.ts",
3006
- "line": 107,
3130
+ "line": 117,
3007
3131
  "character": 3
3008
3132
  },
3009
3133
  "doc": {
3010
3134
  "__schema": "DocSchema",
3011
3135
  "location": {
3012
3136
  "filePath": "component-template.ts",
3013
- "line": 104,
3137
+ "line": 114,
3014
3138
  "character": 3
3015
3139
  },
3016
3140
  "raw": "/**\n * env to use for the generated component.\n */",
@@ -3023,7 +3147,7 @@
3023
3147
  "__schema": "KeywordTypeSchema",
3024
3148
  "location": {
3025
3149
  "filePath": "component-template.ts",
3026
- "line": 107,
3150
+ "line": 117,
3027
3151
  "character": 9
3028
3152
  },
3029
3153
  "name": "string"
@@ -3034,14 +3158,14 @@
3034
3158
  "__schema": "VariableLikeSchema",
3035
3159
  "location": {
3036
3160
  "filePath": "component-template.ts",
3037
- "line": 114,
3161
+ "line": 124,
3038
3162
  "character": 3
3039
3163
  },
3040
3164
  "doc": {
3041
3165
  "__schema": "DocSchema",
3042
3166
  "location": {
3043
3167
  "filePath": "component-template.ts",
3044
- "line": 109,
3168
+ "line": 119,
3045
3169
  "character": 3
3046
3170
  },
3047
3171
  "raw": "/**\n * adds a metadata that the component that this template creates is of type env.\n * This will be used later to do further configuration for example:\n * - ensure to create the .bit_root for it\n */",
@@ -3054,7 +3178,7 @@
3054
3178
  "__schema": "KeywordTypeSchema",
3055
3179
  "location": {
3056
3180
  "filePath": "component-template.ts",
3057
- "line": 114,
3181
+ "line": 124,
3058
3182
  "character": 11
3059
3183
  },
3060
3184
  "name": "boolean"
@@ -3065,14 +3189,14 @@
3065
3189
  "__schema": "VariableLikeSchema",
3066
3190
  "location": {
3067
3191
  "filePath": "component-template.ts",
3068
- "line": 122,
3192
+ "line": 132,
3069
3193
  "character": 3
3070
3194
  },
3071
3195
  "doc": {
3072
3196
  "__schema": "DocSchema",
3073
3197
  "location": {
3074
3198
  "filePath": "component-template.ts",
3075
- "line": 116,
3199
+ "line": 126,
3076
3200
  "character": 3
3077
3201
  },
3078
3202
  "raw": "/**\n * adds a metadata that the component that this template creates is of type app.\n * This will be used later to do further configuration for example:\n * - add it to the workspace.jsonc as app\n * - ensure to create the .bit_root for it\n */",
@@ -3085,7 +3209,7 @@
3085
3209
  "__schema": "KeywordTypeSchema",
3086
3210
  "location": {
3087
3211
  "filePath": "component-template.ts",
3088
- "line": 122,
3212
+ "line": 132,
3089
3213
  "character": 11
3090
3214
  },
3091
3215
  "name": "boolean"
@@ -3096,14 +3220,14 @@
3096
3220
  "__schema": "VariableLikeSchema",
3097
3221
  "location": {
3098
3222
  "filePath": "component-template.ts",
3099
- "line": 127,
3223
+ "line": 137,
3100
3224
  "character": 3
3101
3225
  },
3102
3226
  "doc": {
3103
3227
  "__schema": "DocSchema",
3104
3228
  "location": {
3105
3229
  "filePath": "component-template.ts",
3106
- "line": 124,
3230
+ "line": 134,
3107
3231
  "character": 3
3108
3232
  },
3109
3233
  "raw": "/**\n * list of dependencies to install when the component is created.\n */",
@@ -3116,14 +3240,14 @@
3116
3240
  "__schema": "TypeArraySchema",
3117
3241
  "location": {
3118
3242
  "filePath": "component-template.ts",
3119
- "line": 127,
3243
+ "line": 137,
3120
3244
  "character": 18
3121
3245
  },
3122
3246
  "type": {
3123
3247
  "__schema": "KeywordTypeSchema",
3124
3248
  "location": {
3125
3249
  "filePath": "component-template.ts",
3126
- "line": 127,
3250
+ "line": 137,
3127
3251
  "character": 18
3128
3252
  },
3129
3253
  "name": "string"
@@ -3135,14 +3259,14 @@
3135
3259
  "__schema": "VariableLikeSchema",
3136
3260
  "location": {
3137
3261
  "filePath": "component-template.ts",
3138
- "line": 133,
3262
+ "line": 143,
3139
3263
  "character": 3
3140
3264
  },
3141
3265
  "doc": {
3142
3266
  "__schema": "DocSchema",
3143
3267
  "location": {
3144
3268
  "filePath": "component-template.ts",
3145
- "line": 129,
3269
+ "line": 139,
3146
3270
  "character": 3
3147
3271
  },
3148
3272
  "raw": "/**\n * Perform installation of missing dependencies after component generation.\n * This is the same as of running `bit install --add-missing-deps` after component generation.\n */",
@@ -3155,7 +3279,7 @@
3155
3279
  "__schema": "KeywordTypeSchema",
3156
3280
  "location": {
3157
3281
  "filePath": "component-template.ts",
3158
- "line": 133,
3282
+ "line": 143,
3159
3283
  "character": 32
3160
3284
  },
3161
3285
  "name": "boolean"
@@ -3451,148 +3575,24 @@
3451
3575
  "__schema": "InterfaceSchema",
3452
3576
  "location": {
3453
3577
  "filePath": "workspace-template.ts",
3454
- "line": 135,
3578
+ "line": 158,
3455
3579
  "character": 1
3456
3580
  },
3457
3581
  "signature": "interface WorkspaceTemplate",
3458
3582
  "name": "WorkspaceTemplate",
3459
3583
  "members": [
3460
- {
3461
- "__schema": "VariableLikeSchema",
3462
- "location": {
3463
- "filePath": "workspace-template.ts",
3464
- "line": 139,
3465
- "character": 3
3466
- },
3467
- "doc": {
3468
- "__schema": "DocSchema",
3469
- "location": {
3470
- "filePath": "workspace-template.ts",
3471
- "line": 136,
3472
- "character": 3
3473
- },
3474
- "raw": "/**\n * name of the workspace starter. for example: `react-workspace`.\n */",
3475
- "comment": "name of the workspace starter. for example: `react-workspace`.",
3476
- "tags": []
3477
- },
3478
- "signature": "(property) WorkspaceTemplate.name: string",
3479
- "name": "name",
3480
- "type": {
3481
- "__schema": "KeywordTypeSchema",
3482
- "location": {
3483
- "filePath": "workspace-template.ts",
3484
- "line": 139,
3485
- "character": 9
3486
- },
3487
- "name": "string"
3488
- },
3489
- "isOptional": false
3490
- },
3491
- {
3492
- "__schema": "VariableLikeSchema",
3493
- "location": {
3494
- "filePath": "workspace-template.ts",
3495
- "line": 145,
3496
- "character": 3
3497
- },
3498
- "doc": {
3499
- "__schema": "DocSchema",
3500
- "location": {
3501
- "filePath": "workspace-template.ts",
3502
- "line": 141,
3503
- "character": 3
3504
- },
3505
- "raw": "/**\n * name of an app created in the workspace. for example: `my-app`.\n * This will be used to instruct the user to run `bit run <appName>` in the new workspace.\n */",
3506
- "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
3507
- "tags": []
3508
- },
3509
- "signature": "(property) WorkspaceTemplate.appName?: string | undefined",
3510
- "name": "appName",
3511
- "type": {
3512
- "__schema": "KeywordTypeSchema",
3513
- "location": {
3514
- "filePath": "workspace-template.ts",
3515
- "line": 145,
3516
- "character": 13
3517
- },
3518
- "name": "string"
3519
- },
3520
- "isOptional": true
3521
- },
3522
- {
3523
- "__schema": "VariableLikeSchema",
3524
- "location": {
3525
- "filePath": "workspace-template.ts",
3526
- "line": 150,
3527
- "character": 3
3528
- },
3529
- "doc": {
3530
- "__schema": "DocSchema",
3531
- "location": {
3532
- "filePath": "workspace-template.ts",
3533
- "line": 147,
3534
- "character": 3
3535
- },
3536
- "raw": "/**\n * short description of the starter. shown in the `bit starter` command when outside of bit-workspace.\n */",
3537
- "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
3538
- "tags": []
3539
- },
3540
- "signature": "(property) WorkspaceTemplate.description?: string | undefined",
3541
- "name": "description",
3542
- "type": {
3543
- "__schema": "KeywordTypeSchema",
3544
- "location": {
3545
- "filePath": "workspace-template.ts",
3546
- "line": 150,
3547
- "character": 17
3548
- },
3549
- "name": "string"
3550
- },
3551
- "isOptional": true
3552
- },
3553
- {
3554
- "__schema": "VariableLikeSchema",
3555
- "location": {
3556
- "filePath": "workspace-template.ts",
3557
- "line": 155,
3558
- "character": 3
3559
- },
3560
- "doc": {
3561
- "__schema": "DocSchema",
3562
- "location": {
3563
- "filePath": "workspace-template.ts",
3564
- "line": 152,
3565
- "character": 3
3566
- },
3567
- "raw": "/**\n * hide this starter so that it is not listed with `bit starter`\n */",
3568
- "comment": "hide this starter so that it is not listed with `bit starter`",
3569
- "tags": []
3570
- },
3571
- "signature": "(property) WorkspaceTemplate.hidden?: boolean | undefined",
3572
- "name": "hidden",
3573
- "type": {
3574
- "__schema": "KeywordTypeSchema",
3575
- "location": {
3576
- "filePath": "workspace-template.ts",
3577
- "line": 155,
3578
- "character": 12
3579
- },
3580
- "name": "boolean"
3581
- },
3582
- "isOptional": true
3583
- },
3584
3584
  {
3585
3585
  "__schema": "FunctionLikeSchema",
3586
3586
  "location": {
3587
3587
  "filePath": "workspace-template.ts",
3588
- "line": 160,
3588
+ "line": 162,
3589
3589
  "character": 3
3590
3590
  },
3591
3591
  "doc": {
3592
3592
  "__schema": "DocSchema",
3593
3593
  "location": {
3594
3594
  "filePath": "workspace-template.ts",
3595
- "line": 157,
3595
+ "line": 159,
3596
3596
  "character": 3
3597
3597
  },
3598
3598
  "raw": "/**\n * starter function for generating the template files,\n */",
@@ -3606,7 +3606,7 @@
3606
3606
  "__schema": "ParameterSchema",
3607
3607
  "location": {
3608
3608
  "filePath": "workspace-template.ts",
3609
- "line": 160,
3609
+ "line": 162,
3610
3610
  "character": 17
3611
3611
  },
3612
3612
  "name": "context",
@@ -3614,7 +3614,7 @@
3614
3614
  "__schema": "TypeRefSchema",
3615
3615
  "location": {
3616
3616
  "filePath": "workspace-template.ts",
3617
- "line": 160,
3617
+ "line": 162,
3618
3618
  "character": 26
3619
3619
  },
3620
3620
  "name": "WorkspaceContext"
@@ -3627,7 +3627,7 @@
3627
3627
  "__schema": "TypeRefSchema",
3628
3628
  "location": {
3629
3629
  "filePath": "workspace-template.ts",
3630
- "line": 160,
3630
+ "line": 162,
3631
3631
  "character": 45
3632
3632
  },
3633
3633
  "name": "Promise",
@@ -3636,14 +3636,14 @@
3636
3636
  "__schema": "TypeArraySchema",
3637
3637
  "location": {
3638
3638
  "filePath": "workspace-template.ts",
3639
- "line": 160,
3639
+ "line": 162,
3640
3640
  "character": 53
3641
3641
  },
3642
3642
  "type": {
3643
3643
  "__schema": "TypeRefSchema",
3644
3644
  "location": {
3645
3645
  "filePath": "workspace-template.ts",
3646
- "line": 160,
3646
+ "line": 162,
3647
3647
  "character": 53
3648
3648
  },
3649
3649
  "name": "WorkspaceFile"
@@ -3657,14 +3657,14 @@
3657
3657
  "__schema": "VariableLikeSchema",
3658
3658
  "location": {
3659
3659
  "filePath": "workspace-template.ts",
3660
- "line": 166,
3660
+ "line": 168,
3661
3661
  "character": 3
3662
3662
  },
3663
3663
  "doc": {
3664
3664
  "__schema": "DocSchema",
3665
3665
  "location": {
3666
3666
  "filePath": "workspace-template.ts",
3667
- "line": 162,
3667
+ "line": 164,
3668
3668
  "character": 3
3669
3669
  },
3670
3670
  "raw": "/**\n * @deprecated use `fork()` or `import()` instead\n * this is working similarly to `fork()`\n */",
@@ -3674,7 +3674,7 @@
3674
3674
  "__schema": "TagSchema",
3675
3675
  "location": {
3676
3676
  "filePath": "workspace-template.ts",
3677
- "line": 163,
3677
+ "line": 165,
3678
3678
  "character": 6
3679
3679
  },
3680
3680
  "tagName": "deprecated",
@@ -3688,7 +3688,7 @@
3688
3688
  "__schema": "FunctionLikeSchema",
3689
3689
  "location": {
3690
3690
  "filePath": "workspace-template.ts",
3691
- "line": 166,
3691
+ "line": 168,
3692
3692
  "character": 22
3693
3693
  },
3694
3694
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -3698,7 +3698,7 @@
3698
3698
  "__schema": "ParameterSchema",
3699
3699
  "location": {
3700
3700
  "filePath": "workspace-template.ts",
3701
- "line": 166,
3701
+ "line": 168,
3702
3702
  "character": 23
3703
3703
  },
3704
3704
  "name": "context",
@@ -3706,7 +3706,7 @@
3706
3706
  "__schema": "TypeRefSchema",
3707
3707
  "location": {
3708
3708
  "filePath": "workspace-template.ts",
3709
- "line": 166,
3709
+ "line": 168,
3710
3710
  "character": 32
3711
3711
  },
3712
3712
  "name": "WorkspaceContext"
@@ -3719,14 +3719,14 @@
3719
3719
  "__schema": "TypeArraySchema",
3720
3720
  "location": {
3721
3721
  "filePath": "workspace-template.ts",
3722
- "line": 166,
3722
+ "line": 168,
3723
3723
  "character": 53
3724
3724
  },
3725
3725
  "type": {
3726
3726
  "__schema": "TypeRefSchema",
3727
3727
  "location": {
3728
3728
  "filePath": "workspace-template.ts",
3729
- "line": 166,
3729
+ "line": 168,
3730
3730
  "character": 53
3731
3731
  },
3732
3732
  "name": "ForkComponentInfo"
@@ -3740,14 +3740,14 @@
3740
3740
  "__schema": "VariableLikeSchema",
3741
3741
  "location": {
3742
3742
  "filePath": "workspace-template.ts",
3743
- "line": 171,
3743
+ "line": 173,
3744
3744
  "character": 3
3745
3745
  },
3746
3746
  "doc": {
3747
3747
  "__schema": "DocSchema",
3748
3748
  "location": {
3749
3749
  "filePath": "workspace-template.ts",
3750
- "line": 168,
3750
+ "line": 170,
3751
3751
  "character": 3
3752
3752
  },
3753
3753
  "raw": "/**\n * import components into the new workspace, don't change their source code.\n */",
@@ -3760,7 +3760,7 @@
3760
3760
  "__schema": "FunctionLikeSchema",
3761
3761
  "location": {
3762
3762
  "filePath": "workspace-template.ts",
3763
- "line": 171,
3763
+ "line": 173,
3764
3764
  "character": 12
3765
3765
  },
3766
3766
  "signature": "(context: WorkspaceContext): ImportComponentInfo[]",
@@ -3770,7 +3770,7 @@
3770
3770
  "__schema": "ParameterSchema",
3771
3771
  "location": {
3772
3772
  "filePath": "workspace-template.ts",
3773
- "line": 171,
3773
+ "line": 173,
3774
3774
  "character": 13
3775
3775
  },
3776
3776
  "name": "context",
@@ -3778,7 +3778,7 @@
3778
3778
  "__schema": "TypeRefSchema",
3779
3779
  "location": {
3780
3780
  "filePath": "workspace-template.ts",
3781
- "line": 171,
3781
+ "line": 173,
3782
3782
  "character": 22
3783
3783
  },
3784
3784
  "name": "WorkspaceContext"
@@ -3791,14 +3791,14 @@
3791
3791
  "__schema": "TypeArraySchema",
3792
3792
  "location": {
3793
3793
  "filePath": "workspace-template.ts",
3794
- "line": 171,
3794
+ "line": 173,
3795
3795
  "character": 43
3796
3796
  },
3797
3797
  "type": {
3798
3798
  "__schema": "TypeRefSchema",
3799
3799
  "location": {
3800
3800
  "filePath": "workspace-template.ts",
3801
- "line": 171,
3801
+ "line": 173,
3802
3802
  "character": 43
3803
3803
  },
3804
3804
  "name": "ImportComponentInfo"
@@ -3812,14 +3812,14 @@
3812
3812
  "__schema": "VariableLikeSchema",
3813
3813
  "location": {
3814
3814
  "filePath": "workspace-template.ts",
3815
- "line": 177,
3815
+ "line": 179,
3816
3816
  "character": 3
3817
3817
  },
3818
3818
  "doc": {
3819
3819
  "__schema": "DocSchema",
3820
3820
  "location": {
3821
3821
  "filePath": "workspace-template.ts",
3822
- "line": 173,
3822
+ "line": 175,
3823
3823
  "character": 3
3824
3824
  },
3825
3825
  "raw": "/**\n * populate existing components into the new workspace and add them as new components.\n * change their source code and update the dependency names according to the new component names.\n */",
@@ -3832,7 +3832,7 @@
3832
3832
  "__schema": "FunctionLikeSchema",
3833
3833
  "location": {
3834
3834
  "filePath": "workspace-template.ts",
3835
- "line": 177,
3835
+ "line": 179,
3836
3836
  "character": 10
3837
3837
  },
3838
3838
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -3842,7 +3842,7 @@
3842
3842
  "__schema": "ParameterSchema",
3843
3843
  "location": {
3844
3844
  "filePath": "workspace-template.ts",
3845
- "line": 177,
3845
+ "line": 179,
3846
3846
  "character": 11
3847
3847
  },
3848
3848
  "name": "context",
@@ -3850,7 +3850,7 @@
3850
3850
  "__schema": "TypeRefSchema",
3851
3851
  "location": {
3852
3852
  "filePath": "workspace-template.ts",
3853
- "line": 177,
3853
+ "line": 179,
3854
3854
  "character": 20
3855
3855
  },
3856
3856
  "name": "WorkspaceContext"
@@ -3863,14 +3863,14 @@
3863
3863
  "__schema": "TypeArraySchema",
3864
3864
  "location": {
3865
3865
  "filePath": "workspace-template.ts",
3866
- "line": 177,
3866
+ "line": 179,
3867
3867
  "character": 41
3868
3868
  },
3869
3869
  "type": {
3870
3870
  "__schema": "TypeRefSchema",
3871
3871
  "location": {
3872
3872
  "filePath": "workspace-template.ts",
3873
- "line": 177,
3873
+ "line": 179,
3874
3874
  "character": 41
3875
3875
  },
3876
3876
  "name": "ForkComponentInfo"
@@ -3884,14 +3884,14 @@
3884
3884
  "__schema": "VariableLikeSchema",
3885
3885
  "location": {
3886
3886
  "filePath": "workspace-template.ts",
3887
- "line": 182,
3887
+ "line": 184,
3888
3888
  "character": 3
3889
3889
  },
3890
3890
  "doc": {
3891
3891
  "__schema": "DocSchema",
3892
3892
  "location": {
3893
3893
  "filePath": "workspace-template.ts",
3894
- "line": 179,
3894
+ "line": 181,
3895
3895
  "character": 3
3896
3896
  },
3897
3897
  "raw": "/**\n * populate new components into the new workspace and add them as new components.\n */",
@@ -3904,7 +3904,7 @@
3904
3904
  "__schema": "FunctionLikeSchema",
3905
3905
  "location": {
3906
3906
  "filePath": "workspace-template.ts",
3907
- "line": 182,
3907
+ "line": 184,
3908
3908
  "character": 12
3909
3909
  },
3910
3910
  "signature": "(context: WorkspaceContext): CreateComponentInfo[]",
@@ -3914,7 +3914,7 @@
3914
3914
  "__schema": "ParameterSchema",
3915
3915
  "location": {
3916
3916
  "filePath": "workspace-template.ts",
3917
- "line": 182,
3917
+ "line": 184,
3918
3918
  "character": 13
3919
3919
  },
3920
3920
  "name": "context",
@@ -3922,7 +3922,7 @@
3922
3922
  "__schema": "TypeRefSchema",
3923
3923
  "location": {
3924
3924
  "filePath": "workspace-template.ts",
3925
- "line": 182,
3925
+ "line": 184,
3926
3926
  "character": 22
3927
3927
  },
3928
3928
  "name": "WorkspaceContext"
@@ -3935,14 +3935,14 @@
3935
3935
  "__schema": "TypeArraySchema",
3936
3936
  "location": {
3937
3937
  "filePath": "workspace-template.ts",
3938
- "line": 182,
3938
+ "line": 184,
3939
3939
  "character": 43
3940
3940
  },
3941
3941
  "type": {
3942
3942
  "__schema": "TypeRefSchema",
3943
3943
  "location": {
3944
3944
  "filePath": "workspace-template.ts",
3945
- "line": 182,
3945
+ "line": 184,
3946
3946
  "character": 43
3947
3947
  },
3948
3948
  "name": "CreateComponentInfo"
@@ -3953,163 +3953,187 @@
3953
3953
  "isOptional": true
3954
3954
  }
3955
3955
  ],
3956
- "extendsNodes": []
3957
- }
3958
- },
3959
- {
3960
- "__schema": "ExportSchema",
3961
- "location": {
3962
- "filePath": "index.ts",
3963
- "line": 13,
3964
- "character": 24
3965
- },
3966
- "name": "WorkspaceTemplate",
3967
- "exportNode": {
3968
- "__schema": "InterfaceSchema",
3969
- "location": {
3970
- "filePath": "workspace-template.ts",
3971
- "line": 135,
3972
- "character": 1
3973
- },
3974
- "signature": "interface WorkspaceTemplate",
3975
- "name": "WorkspaceTemplate",
3976
- "members": [
3977
- {
3978
- "__schema": "VariableLikeSchema",
3979
- "location": {
3980
- "filePath": "workspace-template.ts",
3981
- "line": 139,
3982
- "character": 3
3983
- },
3984
- "doc": {
3985
- "__schema": "DocSchema",
3986
- "location": {
3987
- "filePath": "workspace-template.ts",
3988
- "line": 136,
3989
- "character": 3
3990
- },
3991
- "raw": "/**\n * name of the workspace starter. for example: `react-workspace`.\n */",
3992
- "comment": "name of the workspace starter. for example: `react-workspace`.",
3993
- "tags": []
3994
- },
3995
- "signature": "(property) WorkspaceTemplate.name: string",
3996
- "name": "name",
3997
- "type": {
3998
- "__schema": "KeywordTypeSchema",
3999
- "location": {
4000
- "filePath": "workspace-template.ts",
4001
- "line": 139,
4002
- "character": 9
4003
- },
4004
- "name": "string"
4005
- },
4006
- "isOptional": false
4007
- },
4008
- {
4009
- "__schema": "VariableLikeSchema",
4010
- "location": {
4011
- "filePath": "workspace-template.ts",
4012
- "line": 145,
4013
- "character": 3
4014
- },
4015
- "doc": {
4016
- "__schema": "DocSchema",
4017
- "location": {
4018
- "filePath": "workspace-template.ts",
4019
- "line": 141,
4020
- "character": 3
4021
- },
4022
- "raw": "/**\n * name of an app created in the workspace. for example: `my-app`.\n * This will be used to instruct the user to run `bit run <appName>` in the new workspace.\n */",
4023
- "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
4024
- "tags": []
4025
- },
4026
- "signature": "(property) WorkspaceTemplate.appName?: string | undefined",
4027
- "name": "appName",
4028
- "type": {
4029
- "__schema": "KeywordTypeSchema",
4030
- "location": {
4031
- "filePath": "workspace-template.ts",
4032
- "line": 145,
4033
- "character": 13
4034
- },
4035
- "name": "string"
4036
- },
4037
- "isOptional": true
4038
- },
4039
- {
4040
- "__schema": "VariableLikeSchema",
4041
- "location": {
4042
- "filePath": "workspace-template.ts",
4043
- "line": 150,
4044
- "character": 3
4045
- },
4046
- "doc": {
4047
- "__schema": "DocSchema",
4048
- "location": {
4049
- "filePath": "workspace-template.ts",
4050
- "line": 147,
4051
- "character": 3
4052
- },
4053
- "raw": "/**\n * short description of the starter. shown in the `bit starter` command when outside of bit-workspace.\n */",
4054
- "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
4055
- "tags": []
4056
- },
4057
- "signature": "(property) WorkspaceTemplate.description?: string | undefined",
4058
- "name": "description",
4059
- "type": {
4060
- "__schema": "KeywordTypeSchema",
4061
- "location": {
4062
- "filePath": "workspace-template.ts",
4063
- "line": 150,
4064
- "character": 17
4065
- },
4066
- "name": "string"
4067
- },
4068
- "isOptional": true
4069
- },
3956
+ "extendsNodes": [
4070
3957
  {
4071
- "__schema": "VariableLikeSchema",
3958
+ "__schema": "ExpressionWithTypeArgumentsSchema",
4072
3959
  "location": {
4073
3960
  "filePath": "workspace-template.ts",
4074
- "line": 155,
4075
- "character": 3
4076
- },
4077
- "doc": {
4078
- "__schema": "DocSchema",
4079
- "location": {
4080
- "filePath": "workspace-template.ts",
4081
- "line": 152,
4082
- "character": 3
4083
- },
4084
- "raw": "/**\n * hide this starter so that it is not listed with `bit starter`\n */",
4085
- "comment": "hide this starter so that it is not listed with `bit starter`",
4086
- "tags": []
3961
+ "line": 158,
3962
+ "character": 44
4087
3963
  },
4088
- "signature": "(property) WorkspaceTemplate.hidden?: boolean | undefined",
4089
- "name": "hidden",
4090
- "type": {
4091
- "__schema": "KeywordTypeSchema",
3964
+ "name": "extends WorkspaceTemplateOptions",
3965
+ "typeArgs": [],
3966
+ "expression": {
3967
+ "__schema": "InterfaceSchema",
4092
3968
  "location": {
4093
3969
  "filePath": "workspace-template.ts",
4094
- "line": 155,
4095
- "character": 12
3970
+ "line": 135,
3971
+ "character": 1
4096
3972
  },
4097
- "name": "boolean"
4098
- },
4099
- "isOptional": true
4100
- },
3973
+ "name": "WorkspaceTemplateOptions",
3974
+ "signature": "interface WorkspaceTemplateOptions",
3975
+ "extendsNodes": [],
3976
+ "members": [
3977
+ {
3978
+ "__schema": "VariableLikeSchema",
3979
+ "location": {
3980
+ "filePath": "workspace-template.ts",
3981
+ "line": 139,
3982
+ "character": 3
3983
+ },
3984
+ "name": "name",
3985
+ "signature": "(property) WorkspaceTemplateOptions.name: string",
3986
+ "isOptional": false,
3987
+ "type": {
3988
+ "__schema": "KeywordTypeSchema",
3989
+ "location": {
3990
+ "filePath": "workspace-template.ts",
3991
+ "line": 139,
3992
+ "character": 9
3993
+ },
3994
+ "name": "string"
3995
+ },
3996
+ "doc": {
3997
+ "__schema": "DocSchema",
3998
+ "location": {
3999
+ "filePath": "workspace-template.ts",
4000
+ "line": 136,
4001
+ "character": 3
4002
+ },
4003
+ "raw": "/**\n * name of the workspace starter. for example: `react-workspace`.\n */",
4004
+ "comment": "name of the workspace starter. for example: `react-workspace`.",
4005
+ "tags": []
4006
+ }
4007
+ },
4008
+ {
4009
+ "__schema": "VariableLikeSchema",
4010
+ "location": {
4011
+ "filePath": "workspace-template.ts",
4012
+ "line": 145,
4013
+ "character": 3
4014
+ },
4015
+ "name": "appName",
4016
+ "signature": "(property) WorkspaceTemplateOptions.appName?: string | undefined",
4017
+ "isOptional": true,
4018
+ "type": {
4019
+ "__schema": "KeywordTypeSchema",
4020
+ "location": {
4021
+ "filePath": "workspace-template.ts",
4022
+ "line": 145,
4023
+ "character": 13
4024
+ },
4025
+ "name": "string"
4026
+ },
4027
+ "doc": {
4028
+ "__schema": "DocSchema",
4029
+ "location": {
4030
+ "filePath": "workspace-template.ts",
4031
+ "line": 141,
4032
+ "character": 3
4033
+ },
4034
+ "raw": "/**\n * name of an app created in the workspace. for example: `my-app`.\n * This will be used to instruct the user to run `bit run <appName>` in the new workspace.\n */",
4035
+ "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
4036
+ "tags": []
4037
+ }
4038
+ },
4039
+ {
4040
+ "__schema": "VariableLikeSchema",
4041
+ "location": {
4042
+ "filePath": "workspace-template.ts",
4043
+ "line": 150,
4044
+ "character": 3
4045
+ },
4046
+ "name": "description",
4047
+ "signature": "(property) WorkspaceTemplateOptions.description?: string | undefined",
4048
+ "isOptional": true,
4049
+ "type": {
4050
+ "__schema": "KeywordTypeSchema",
4051
+ "location": {
4052
+ "filePath": "workspace-template.ts",
4053
+ "line": 150,
4054
+ "character": 17
4055
+ },
4056
+ "name": "string"
4057
+ },
4058
+ "doc": {
4059
+ "__schema": "DocSchema",
4060
+ "location": {
4061
+ "filePath": "workspace-template.ts",
4062
+ "line": 147,
4063
+ "character": 3
4064
+ },
4065
+ "raw": "/**\n * short description of the starter. shown in the `bit starter` command when outside of bit-workspace.\n */",
4066
+ "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
4067
+ "tags": []
4068
+ }
4069
+ },
4070
+ {
4071
+ "__schema": "VariableLikeSchema",
4072
+ "location": {
4073
+ "filePath": "workspace-template.ts",
4074
+ "line": 155,
4075
+ "character": 3
4076
+ },
4077
+ "name": "hidden",
4078
+ "signature": "(property) WorkspaceTemplateOptions.hidden?: boolean | undefined",
4079
+ "isOptional": true,
4080
+ "type": {
4081
+ "__schema": "KeywordTypeSchema",
4082
+ "location": {
4083
+ "filePath": "workspace-template.ts",
4084
+ "line": 155,
4085
+ "character": 12
4086
+ },
4087
+ "name": "boolean"
4088
+ },
4089
+ "doc": {
4090
+ "__schema": "DocSchema",
4091
+ "location": {
4092
+ "filePath": "workspace-template.ts",
4093
+ "line": 152,
4094
+ "character": 3
4095
+ },
4096
+ "raw": "/**\n * hide this starter so that it is not listed with `bit starter`\n */",
4097
+ "comment": "hide this starter so that it is not listed with `bit starter`",
4098
+ "tags": []
4099
+ }
4100
+ }
4101
+ ]
4102
+ }
4103
+ }
4104
+ ]
4105
+ }
4106
+ },
4107
+ {
4108
+ "__schema": "ExportSchema",
4109
+ "location": {
4110
+ "filePath": "index.ts",
4111
+ "line": 13,
4112
+ "character": 24
4113
+ },
4114
+ "name": "WorkspaceTemplate",
4115
+ "exportNode": {
4116
+ "__schema": "InterfaceSchema",
4117
+ "location": {
4118
+ "filePath": "workspace-template.ts",
4119
+ "line": 158,
4120
+ "character": 1
4121
+ },
4122
+ "signature": "interface WorkspaceTemplate",
4123
+ "name": "WorkspaceTemplate",
4124
+ "members": [
4101
4125
  {
4102
4126
  "__schema": "FunctionLikeSchema",
4103
4127
  "location": {
4104
4128
  "filePath": "workspace-template.ts",
4105
- "line": 160,
4129
+ "line": 162,
4106
4130
  "character": 3
4107
4131
  },
4108
4132
  "doc": {
4109
4133
  "__schema": "DocSchema",
4110
4134
  "location": {
4111
4135
  "filePath": "workspace-template.ts",
4112
- "line": 157,
4136
+ "line": 159,
4113
4137
  "character": 3
4114
4138
  },
4115
4139
  "raw": "/**\n * starter function for generating the template files,\n */",
@@ -4123,7 +4147,7 @@
4123
4147
  "__schema": "ParameterSchema",
4124
4148
  "location": {
4125
4149
  "filePath": "workspace-template.ts",
4126
- "line": 160,
4150
+ "line": 162,
4127
4151
  "character": 17
4128
4152
  },
4129
4153
  "name": "context",
@@ -4131,7 +4155,7 @@
4131
4155
  "__schema": "TypeRefSchema",
4132
4156
  "location": {
4133
4157
  "filePath": "workspace-template.ts",
4134
- "line": 160,
4158
+ "line": 162,
4135
4159
  "character": 26
4136
4160
  },
4137
4161
  "name": "WorkspaceContext"
@@ -4144,7 +4168,7 @@
4144
4168
  "__schema": "TypeRefSchema",
4145
4169
  "location": {
4146
4170
  "filePath": "workspace-template.ts",
4147
- "line": 160,
4171
+ "line": 162,
4148
4172
  "character": 45
4149
4173
  },
4150
4174
  "name": "Promise",
@@ -4153,14 +4177,14 @@
4153
4177
  "__schema": "TypeArraySchema",
4154
4178
  "location": {
4155
4179
  "filePath": "workspace-template.ts",
4156
- "line": 160,
4180
+ "line": 162,
4157
4181
  "character": 53
4158
4182
  },
4159
4183
  "type": {
4160
4184
  "__schema": "TypeRefSchema",
4161
4185
  "location": {
4162
4186
  "filePath": "workspace-template.ts",
4163
- "line": 160,
4187
+ "line": 162,
4164
4188
  "character": 53
4165
4189
  },
4166
4190
  "name": "WorkspaceFile"
@@ -4174,14 +4198,14 @@
4174
4198
  "__schema": "VariableLikeSchema",
4175
4199
  "location": {
4176
4200
  "filePath": "workspace-template.ts",
4177
- "line": 166,
4201
+ "line": 168,
4178
4202
  "character": 3
4179
4203
  },
4180
4204
  "doc": {
4181
4205
  "__schema": "DocSchema",
4182
4206
  "location": {
4183
4207
  "filePath": "workspace-template.ts",
4184
- "line": 162,
4208
+ "line": 164,
4185
4209
  "character": 3
4186
4210
  },
4187
4211
  "raw": "/**\n * @deprecated use `fork()` or `import()` instead\n * this is working similarly to `fork()`\n */",
@@ -4191,7 +4215,7 @@
4191
4215
  "__schema": "TagSchema",
4192
4216
  "location": {
4193
4217
  "filePath": "workspace-template.ts",
4194
- "line": 163,
4218
+ "line": 165,
4195
4219
  "character": 6
4196
4220
  },
4197
4221
  "tagName": "deprecated",
@@ -4205,7 +4229,7 @@
4205
4229
  "__schema": "FunctionLikeSchema",
4206
4230
  "location": {
4207
4231
  "filePath": "workspace-template.ts",
4208
- "line": 166,
4232
+ "line": 168,
4209
4233
  "character": 22
4210
4234
  },
4211
4235
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -4215,7 +4239,7 @@
4215
4239
  "__schema": "ParameterSchema",
4216
4240
  "location": {
4217
4241
  "filePath": "workspace-template.ts",
4218
- "line": 166,
4242
+ "line": 168,
4219
4243
  "character": 23
4220
4244
  },
4221
4245
  "name": "context",
@@ -4223,7 +4247,7 @@
4223
4247
  "__schema": "TypeRefSchema",
4224
4248
  "location": {
4225
4249
  "filePath": "workspace-template.ts",
4226
- "line": 166,
4250
+ "line": 168,
4227
4251
  "character": 32
4228
4252
  },
4229
4253
  "name": "WorkspaceContext"
@@ -4236,14 +4260,14 @@
4236
4260
  "__schema": "TypeArraySchema",
4237
4261
  "location": {
4238
4262
  "filePath": "workspace-template.ts",
4239
- "line": 166,
4263
+ "line": 168,
4240
4264
  "character": 53
4241
4265
  },
4242
4266
  "type": {
4243
4267
  "__schema": "TypeRefSchema",
4244
4268
  "location": {
4245
4269
  "filePath": "workspace-template.ts",
4246
- "line": 166,
4270
+ "line": 168,
4247
4271
  "character": 53
4248
4272
  },
4249
4273
  "name": "ForkComponentInfo"
@@ -4257,14 +4281,14 @@
4257
4281
  "__schema": "VariableLikeSchema",
4258
4282
  "location": {
4259
4283
  "filePath": "workspace-template.ts",
4260
- "line": 171,
4284
+ "line": 173,
4261
4285
  "character": 3
4262
4286
  },
4263
4287
  "doc": {
4264
4288
  "__schema": "DocSchema",
4265
4289
  "location": {
4266
4290
  "filePath": "workspace-template.ts",
4267
- "line": 168,
4291
+ "line": 170,
4268
4292
  "character": 3
4269
4293
  },
4270
4294
  "raw": "/**\n * import components into the new workspace, don't change their source code.\n */",
@@ -4277,7 +4301,7 @@
4277
4301
  "__schema": "FunctionLikeSchema",
4278
4302
  "location": {
4279
4303
  "filePath": "workspace-template.ts",
4280
- "line": 171,
4304
+ "line": 173,
4281
4305
  "character": 12
4282
4306
  },
4283
4307
  "signature": "(context: WorkspaceContext): ImportComponentInfo[]",
@@ -4287,7 +4311,7 @@
4287
4311
  "__schema": "ParameterSchema",
4288
4312
  "location": {
4289
4313
  "filePath": "workspace-template.ts",
4290
- "line": 171,
4314
+ "line": 173,
4291
4315
  "character": 13
4292
4316
  },
4293
4317
  "name": "context",
@@ -4295,7 +4319,7 @@
4295
4319
  "__schema": "TypeRefSchema",
4296
4320
  "location": {
4297
4321
  "filePath": "workspace-template.ts",
4298
- "line": 171,
4322
+ "line": 173,
4299
4323
  "character": 22
4300
4324
  },
4301
4325
  "name": "WorkspaceContext"
@@ -4308,14 +4332,14 @@
4308
4332
  "__schema": "TypeArraySchema",
4309
4333
  "location": {
4310
4334
  "filePath": "workspace-template.ts",
4311
- "line": 171,
4335
+ "line": 173,
4312
4336
  "character": 43
4313
4337
  },
4314
4338
  "type": {
4315
4339
  "__schema": "TypeRefSchema",
4316
4340
  "location": {
4317
4341
  "filePath": "workspace-template.ts",
4318
- "line": 171,
4342
+ "line": 173,
4319
4343
  "character": 43
4320
4344
  },
4321
4345
  "name": "ImportComponentInfo"
@@ -4329,14 +4353,14 @@
4329
4353
  "__schema": "VariableLikeSchema",
4330
4354
  "location": {
4331
4355
  "filePath": "workspace-template.ts",
4332
- "line": 177,
4356
+ "line": 179,
4333
4357
  "character": 3
4334
4358
  },
4335
4359
  "doc": {
4336
4360
  "__schema": "DocSchema",
4337
4361
  "location": {
4338
4362
  "filePath": "workspace-template.ts",
4339
- "line": 173,
4363
+ "line": 175,
4340
4364
  "character": 3
4341
4365
  },
4342
4366
  "raw": "/**\n * populate existing components into the new workspace and add them as new components.\n * change their source code and update the dependency names according to the new component names.\n */",
@@ -4349,7 +4373,7 @@
4349
4373
  "__schema": "FunctionLikeSchema",
4350
4374
  "location": {
4351
4375
  "filePath": "workspace-template.ts",
4352
- "line": 177,
4376
+ "line": 179,
4353
4377
  "character": 10
4354
4378
  },
4355
4379
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -4359,7 +4383,7 @@
4359
4383
  "__schema": "ParameterSchema",
4360
4384
  "location": {
4361
4385
  "filePath": "workspace-template.ts",
4362
- "line": 177,
4386
+ "line": 179,
4363
4387
  "character": 11
4364
4388
  },
4365
4389
  "name": "context",
@@ -4367,7 +4391,7 @@
4367
4391
  "__schema": "TypeRefSchema",
4368
4392
  "location": {
4369
4393
  "filePath": "workspace-template.ts",
4370
- "line": 177,
4394
+ "line": 179,
4371
4395
  "character": 20
4372
4396
  },
4373
4397
  "name": "WorkspaceContext"
@@ -4380,14 +4404,14 @@
4380
4404
  "__schema": "TypeArraySchema",
4381
4405
  "location": {
4382
4406
  "filePath": "workspace-template.ts",
4383
- "line": 177,
4407
+ "line": 179,
4384
4408
  "character": 41
4385
4409
  },
4386
4410
  "type": {
4387
4411
  "__schema": "TypeRefSchema",
4388
4412
  "location": {
4389
4413
  "filePath": "workspace-template.ts",
4390
- "line": 177,
4414
+ "line": 179,
4391
4415
  "character": 41
4392
4416
  },
4393
4417
  "name": "ForkComponentInfo"
@@ -4401,14 +4425,14 @@
4401
4425
  "__schema": "VariableLikeSchema",
4402
4426
  "location": {
4403
4427
  "filePath": "workspace-template.ts",
4404
- "line": 182,
4428
+ "line": 184,
4405
4429
  "character": 3
4406
4430
  },
4407
4431
  "doc": {
4408
4432
  "__schema": "DocSchema",
4409
4433
  "location": {
4410
4434
  "filePath": "workspace-template.ts",
4411
- "line": 179,
4435
+ "line": 181,
4412
4436
  "character": 3
4413
4437
  },
4414
4438
  "raw": "/**\n * populate new components into the new workspace and add them as new components.\n */",
@@ -4421,7 +4445,7 @@
4421
4445
  "__schema": "FunctionLikeSchema",
4422
4446
  "location": {
4423
4447
  "filePath": "workspace-template.ts",
4424
- "line": 182,
4448
+ "line": 184,
4425
4449
  "character": 12
4426
4450
  },
4427
4451
  "signature": "(context: WorkspaceContext): CreateComponentInfo[]",
@@ -4431,7 +4455,7 @@
4431
4455
  "__schema": "ParameterSchema",
4432
4456
  "location": {
4433
4457
  "filePath": "workspace-template.ts",
4434
- "line": 182,
4458
+ "line": 184,
4435
4459
  "character": 13
4436
4460
  },
4437
4461
  "name": "context",
@@ -4439,7 +4463,7 @@
4439
4463
  "__schema": "TypeRefSchema",
4440
4464
  "location": {
4441
4465
  "filePath": "workspace-template.ts",
4442
- "line": 182,
4466
+ "line": 184,
4443
4467
  "character": 22
4444
4468
  },
4445
4469
  "name": "WorkspaceContext"
@@ -4452,14 +4476,14 @@
4452
4476
  "__schema": "TypeArraySchema",
4453
4477
  "location": {
4454
4478
  "filePath": "workspace-template.ts",
4455
- "line": 182,
4479
+ "line": 184,
4456
4480
  "character": 43
4457
4481
  },
4458
4482
  "type": {
4459
4483
  "__schema": "TypeRefSchema",
4460
4484
  "location": {
4461
4485
  "filePath": "workspace-template.ts",
4462
- "line": 182,
4486
+ "line": 184,
4463
4487
  "character": 43
4464
4488
  },
4465
4489
  "name": "CreateComponentInfo"
@@ -4470,7 +4494,155 @@
4470
4494
  "isOptional": true
4471
4495
  }
4472
4496
  ],
4473
- "extendsNodes": []
4497
+ "extendsNodes": [
4498
+ {
4499
+ "__schema": "ExpressionWithTypeArgumentsSchema",
4500
+ "location": {
4501
+ "filePath": "workspace-template.ts",
4502
+ "line": 158,
4503
+ "character": 44
4504
+ },
4505
+ "name": "extends WorkspaceTemplateOptions",
4506
+ "typeArgs": [],
4507
+ "expression": {
4508
+ "__schema": "InterfaceSchema",
4509
+ "location": {
4510
+ "filePath": "workspace-template.ts",
4511
+ "line": 135,
4512
+ "character": 1
4513
+ },
4514
+ "name": "WorkspaceTemplateOptions",
4515
+ "signature": "interface WorkspaceTemplateOptions",
4516
+ "extendsNodes": [],
4517
+ "members": [
4518
+ {
4519
+ "__schema": "VariableLikeSchema",
4520
+ "location": {
4521
+ "filePath": "workspace-template.ts",
4522
+ "line": 139,
4523
+ "character": 3
4524
+ },
4525
+ "name": "name",
4526
+ "signature": "(property) WorkspaceTemplateOptions.name: string",
4527
+ "isOptional": false,
4528
+ "type": {
4529
+ "__schema": "KeywordTypeSchema",
4530
+ "location": {
4531
+ "filePath": "workspace-template.ts",
4532
+ "line": 139,
4533
+ "character": 9
4534
+ },
4535
+ "name": "string"
4536
+ },
4537
+ "doc": {
4538
+ "__schema": "DocSchema",
4539
+ "location": {
4540
+ "filePath": "workspace-template.ts",
4541
+ "line": 136,
4542
+ "character": 3
4543
+ },
4544
+ "raw": "/**\n * name of the workspace starter. for example: `react-workspace`.\n */",
4545
+ "comment": "name of the workspace starter. for example: `react-workspace`.",
4546
+ "tags": []
4547
+ }
4548
+ },
4549
+ {
4550
+ "__schema": "VariableLikeSchema",
4551
+ "location": {
4552
+ "filePath": "workspace-template.ts",
4553
+ "line": 145,
4554
+ "character": 3
4555
+ },
4556
+ "name": "appName",
4557
+ "signature": "(property) WorkspaceTemplateOptions.appName?: string | undefined",
4558
+ "isOptional": true,
4559
+ "type": {
4560
+ "__schema": "KeywordTypeSchema",
4561
+ "location": {
4562
+ "filePath": "workspace-template.ts",
4563
+ "line": 145,
4564
+ "character": 13
4565
+ },
4566
+ "name": "string"
4567
+ },
4568
+ "doc": {
4569
+ "__schema": "DocSchema",
4570
+ "location": {
4571
+ "filePath": "workspace-template.ts",
4572
+ "line": 141,
4573
+ "character": 3
4574
+ },
4575
+ "raw": "/**\n * name of an app created in the workspace. for example: `my-app`.\n * This will be used to instruct the user to run `bit run <appName>` in the new workspace.\n */",
4576
+ "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
4577
+ "tags": []
4578
+ }
4579
+ },
4580
+ {
4581
+ "__schema": "VariableLikeSchema",
4582
+ "location": {
4583
+ "filePath": "workspace-template.ts",
4584
+ "line": 150,
4585
+ "character": 3
4586
+ },
4587
+ "name": "description",
4588
+ "signature": "(property) WorkspaceTemplateOptions.description?: string | undefined",
4589
+ "isOptional": true,
4590
+ "type": {
4591
+ "__schema": "KeywordTypeSchema",
4592
+ "location": {
4593
+ "filePath": "workspace-template.ts",
4594
+ "line": 150,
4595
+ "character": 17
4596
+ },
4597
+ "name": "string"
4598
+ },
4599
+ "doc": {
4600
+ "__schema": "DocSchema",
4601
+ "location": {
4602
+ "filePath": "workspace-template.ts",
4603
+ "line": 147,
4604
+ "character": 3
4605
+ },
4606
+ "raw": "/**\n * short description of the starter. shown in the `bit starter` command when outside of bit-workspace.\n */",
4607
+ "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
4608
+ "tags": []
4609
+ }
4610
+ },
4611
+ {
4612
+ "__schema": "VariableLikeSchema",
4613
+ "location": {
4614
+ "filePath": "workspace-template.ts",
4615
+ "line": 155,
4616
+ "character": 3
4617
+ },
4618
+ "name": "hidden",
4619
+ "signature": "(property) WorkspaceTemplateOptions.hidden?: boolean | undefined",
4620
+ "isOptional": true,
4621
+ "type": {
4622
+ "__schema": "KeywordTypeSchema",
4623
+ "location": {
4624
+ "filePath": "workspace-template.ts",
4625
+ "line": 155,
4626
+ "character": 12
4627
+ },
4628
+ "name": "boolean"
4629
+ },
4630
+ "doc": {
4631
+ "__schema": "DocSchema",
4632
+ "location": {
4633
+ "filePath": "workspace-template.ts",
4634
+ "line": 152,
4635
+ "character": 3
4636
+ },
4637
+ "raw": "/**\n * hide this starter so that it is not listed with `bit starter`\n */",
4638
+ "comment": "hide this starter so that it is not listed with `bit starter`",
4639
+ "tags": []
4640
+ }
4641
+ }
4642
+ ]
4643
+ }
4644
+ }
4645
+ ]
4474
4646
  },
4475
4647
  "alias": "Starter"
4476
4648
  },
@@ -9587,6 +9759,68 @@
9587
9759
  "line": 94,
9588
9760
  "character": 3
9589
9761
  },
9762
+ "raw": "/**\n * display name of the template.\n */",
9763
+ "comment": "display name of the template.",
9764
+ "tags": []
9765
+ },
9766
+ "signature": "(property) ComponentTemplateOptions.displayName?: string | undefined",
9767
+ "name": "displayName",
9768
+ "type": {
9769
+ "__schema": "KeywordTypeSchema",
9770
+ "location": {
9771
+ "filePath": "component-template.ts",
9772
+ "line": 97,
9773
+ "character": 17
9774
+ },
9775
+ "name": "string"
9776
+ },
9777
+ "isOptional": true
9778
+ },
9779
+ {
9780
+ "__schema": "VariableLikeSchema",
9781
+ "location": {
9782
+ "filePath": "component-template.ts",
9783
+ "line": 102,
9784
+ "character": 3
9785
+ },
9786
+ "doc": {
9787
+ "__schema": "DocSchema",
9788
+ "location": {
9789
+ "filePath": "component-template.ts",
9790
+ "line": 99,
9791
+ "character": 3
9792
+ },
9793
+ "raw": "/**\n * example name for the component template.\n */",
9794
+ "comment": "example name for the component template.",
9795
+ "tags": []
9796
+ },
9797
+ "signature": "(property) ComponentTemplateOptions.exampleComponentName?: string | undefined",
9798
+ "name": "exampleComponentName",
9799
+ "type": {
9800
+ "__schema": "KeywordTypeSchema",
9801
+ "location": {
9802
+ "filePath": "component-template.ts",
9803
+ "line": 102,
9804
+ "character": 26
9805
+ },
9806
+ "name": "string"
9807
+ },
9808
+ "isOptional": true
9809
+ },
9810
+ {
9811
+ "__schema": "VariableLikeSchema",
9812
+ "location": {
9813
+ "filePath": "component-template.ts",
9814
+ "line": 107,
9815
+ "character": 3
9816
+ },
9817
+ "doc": {
9818
+ "__schema": "DocSchema",
9819
+ "location": {
9820
+ "filePath": "component-template.ts",
9821
+ "line": 104,
9822
+ "character": 3
9823
+ },
9590
9824
  "raw": "/**\n * short description of the template. shown in the `bit templates` command.\n */",
9591
9825
  "comment": "short description of the template. shown in the `bit templates` command.",
9592
9826
  "tags": []
@@ -9597,7 +9831,7 @@
9597
9831
  "__schema": "KeywordTypeSchema",
9598
9832
  "location": {
9599
9833
  "filePath": "component-template.ts",
9600
- "line": 97,
9834
+ "line": 107,
9601
9835
  "character": 17
9602
9836
  },
9603
9837
  "name": "string"
@@ -9608,14 +9842,14 @@
9608
9842
  "__schema": "VariableLikeSchema",
9609
9843
  "location": {
9610
9844
  "filePath": "component-template.ts",
9611
- "line": 102,
9845
+ "line": 112,
9612
9846
  "character": 3
9613
9847
  },
9614
9848
  "doc": {
9615
9849
  "__schema": "DocSchema",
9616
9850
  "location": {
9617
9851
  "filePath": "component-template.ts",
9618
- "line": 99,
9852
+ "line": 109,
9619
9853
  "character": 3
9620
9854
  },
9621
9855
  "raw": "/**\n * hide this template so that it is not listed with `bit templates`\n */",
@@ -9628,7 +9862,7 @@
9628
9862
  "__schema": "KeywordTypeSchema",
9629
9863
  "location": {
9630
9864
  "filePath": "component-template.ts",
9631
- "line": 102,
9865
+ "line": 112,
9632
9866
  "character": 12
9633
9867
  },
9634
9868
  "name": "boolean"
@@ -9639,14 +9873,14 @@
9639
9873
  "__schema": "VariableLikeSchema",
9640
9874
  "location": {
9641
9875
  "filePath": "component-template.ts",
9642
- "line": 107,
9876
+ "line": 117,
9643
9877
  "character": 3
9644
9878
  },
9645
9879
  "doc": {
9646
9880
  "__schema": "DocSchema",
9647
9881
  "location": {
9648
9882
  "filePath": "component-template.ts",
9649
- "line": 104,
9883
+ "line": 114,
9650
9884
  "character": 3
9651
9885
  },
9652
9886
  "raw": "/**\n * env to use for the generated component.\n */",
@@ -9659,7 +9893,7 @@
9659
9893
  "__schema": "KeywordTypeSchema",
9660
9894
  "location": {
9661
9895
  "filePath": "component-template.ts",
9662
- "line": 107,
9896
+ "line": 117,
9663
9897
  "character": 9
9664
9898
  },
9665
9899
  "name": "string"
@@ -9670,14 +9904,14 @@
9670
9904
  "__schema": "VariableLikeSchema",
9671
9905
  "location": {
9672
9906
  "filePath": "component-template.ts",
9673
- "line": 114,
9907
+ "line": 124,
9674
9908
  "character": 3
9675
9909
  },
9676
9910
  "doc": {
9677
9911
  "__schema": "DocSchema",
9678
9912
  "location": {
9679
9913
  "filePath": "component-template.ts",
9680
- "line": 109,
9914
+ "line": 119,
9681
9915
  "character": 3
9682
9916
  },
9683
9917
  "raw": "/**\n * adds a metadata that the component that this template creates is of type env.\n * This will be used later to do further configuration for example:\n * - ensure to create the .bit_root for it\n */",
@@ -9690,7 +9924,7 @@
9690
9924
  "__schema": "KeywordTypeSchema",
9691
9925
  "location": {
9692
9926
  "filePath": "component-template.ts",
9693
- "line": 114,
9927
+ "line": 124,
9694
9928
  "character": 11
9695
9929
  },
9696
9930
  "name": "boolean"
@@ -9701,14 +9935,14 @@
9701
9935
  "__schema": "VariableLikeSchema",
9702
9936
  "location": {
9703
9937
  "filePath": "component-template.ts",
9704
- "line": 122,
9938
+ "line": 132,
9705
9939
  "character": 3
9706
9940
  },
9707
9941
  "doc": {
9708
9942
  "__schema": "DocSchema",
9709
9943
  "location": {
9710
9944
  "filePath": "component-template.ts",
9711
- "line": 116,
9945
+ "line": 126,
9712
9946
  "character": 3
9713
9947
  },
9714
9948
  "raw": "/**\n * adds a metadata that the component that this template creates is of type app.\n * This will be used later to do further configuration for example:\n * - add it to the workspace.jsonc as app\n * - ensure to create the .bit_root for it\n */",
@@ -9721,7 +9955,7 @@
9721
9955
  "__schema": "KeywordTypeSchema",
9722
9956
  "location": {
9723
9957
  "filePath": "component-template.ts",
9724
- "line": 122,
9958
+ "line": 132,
9725
9959
  "character": 11
9726
9960
  },
9727
9961
  "name": "boolean"
@@ -9732,14 +9966,14 @@
9732
9966
  "__schema": "VariableLikeSchema",
9733
9967
  "location": {
9734
9968
  "filePath": "component-template.ts",
9735
- "line": 127,
9969
+ "line": 137,
9736
9970
  "character": 3
9737
9971
  },
9738
9972
  "doc": {
9739
9973
  "__schema": "DocSchema",
9740
9974
  "location": {
9741
9975
  "filePath": "component-template.ts",
9742
- "line": 124,
9976
+ "line": 134,
9743
9977
  "character": 3
9744
9978
  },
9745
9979
  "raw": "/**\n * list of dependencies to install when the component is created.\n */",
@@ -9752,14 +9986,14 @@
9752
9986
  "__schema": "TypeArraySchema",
9753
9987
  "location": {
9754
9988
  "filePath": "component-template.ts",
9755
- "line": 127,
9989
+ "line": 137,
9756
9990
  "character": 18
9757
9991
  },
9758
9992
  "type": {
9759
9993
  "__schema": "KeywordTypeSchema",
9760
9994
  "location": {
9761
9995
  "filePath": "component-template.ts",
9762
- "line": 127,
9996
+ "line": 137,
9763
9997
  "character": 18
9764
9998
  },
9765
9999
  "name": "string"
@@ -9771,14 +10005,14 @@
9771
10005
  "__schema": "VariableLikeSchema",
9772
10006
  "location": {
9773
10007
  "filePath": "component-template.ts",
9774
- "line": 133,
10008
+ "line": 143,
9775
10009
  "character": 3
9776
10010
  },
9777
10011
  "doc": {
9778
10012
  "__schema": "DocSchema",
9779
10013
  "location": {
9780
10014
  "filePath": "component-template.ts",
9781
- "line": 129,
10015
+ "line": 139,
9782
10016
  "character": 3
9783
10017
  },
9784
10018
  "raw": "/**\n * Perform installation of missing dependencies after component generation.\n * This is the same as of running `bit install --add-missing-deps` after component generation.\n */",
@@ -9791,7 +10025,7 @@
9791
10025
  "__schema": "KeywordTypeSchema",
9792
10026
  "location": {
9793
10027
  "filePath": "component-template.ts",
9794
- "line": 133,
10028
+ "line": 143,
9795
10029
  "character": 32
9796
10030
  },
9797
10031
  "name": "boolean"
@@ -9805,7 +10039,7 @@
9805
10039
  "__schema": "InterfaceSchema",
9806
10040
  "location": {
9807
10041
  "filePath": "component-template.ts",
9808
- "line": 136,
10042
+ "line": 146,
9809
10043
  "character": 1
9810
10044
  },
9811
10045
  "signature": "interface ComponentTemplate",
@@ -9815,7 +10049,7 @@
9815
10049
  "__schema": "VariableLikeSchema",
9816
10050
  "location": {
9817
10051
  "filePath": "component-template.ts",
9818
- "line": 137,
10052
+ "line": 147,
9819
10053
  "character": 3
9820
10054
  },
9821
10055
  "signature": "(property) ComponentTemplate.name: string",
@@ -9824,7 +10058,7 @@
9824
10058
  "__schema": "KeywordTypeSchema",
9825
10059
  "location": {
9826
10060
  "filePath": "component-template.ts",
9827
- "line": 137,
10061
+ "line": 147,
9828
10062
  "character": 9
9829
10063
  },
9830
10064
  "name": "string"
@@ -9835,14 +10069,14 @@
9835
10069
  "__schema": "FunctionLikeSchema",
9836
10070
  "location": {
9837
10071
  "filePath": "component-template.ts",
9838
- "line": 142,
10072
+ "line": 152,
9839
10073
  "character": 3
9840
10074
  },
9841
10075
  "doc": {
9842
10076
  "__schema": "DocSchema",
9843
10077
  "location": {
9844
10078
  "filePath": "component-template.ts",
9845
- "line": 139,
10079
+ "line": 149,
9846
10080
  "character": 3
9847
10081
  },
9848
10082
  "raw": "/**\n * template function for generating the file of a certain component.,\n */",
@@ -9856,7 +10090,7 @@
9856
10090
  "__schema": "ParameterSchema",
9857
10091
  "location": {
9858
10092
  "filePath": "component-template.ts",
9859
- "line": 142,
10093
+ "line": 152,
9860
10094
  "character": 17
9861
10095
  },
9862
10096
  "name": "context",
@@ -9864,7 +10098,7 @@
9864
10098
  "__schema": "TypeRefSchema",
9865
10099
  "location": {
9866
10100
  "filePath": "component-template.ts",
9867
- "line": 142,
10101
+ "line": 152,
9868
10102
  "character": 26
9869
10103
  },
9870
10104
  "name": "ComponentContext"
@@ -9877,7 +10111,7 @@
9877
10111
  "__schema": "TypeUnionSchema",
9878
10112
  "location": {
9879
10113
  "filePath": "component-template.ts",
9880
- "line": 142,
10114
+ "line": 152,
9881
10115
  "character": 45
9882
10116
  },
9883
10117
  "types": [
@@ -9885,7 +10119,7 @@
9885
10119
  "__schema": "TypeRefSchema",
9886
10120
  "location": {
9887
10121
  "filePath": "component-template.ts",
9888
- "line": 142,
10122
+ "line": 152,
9889
10123
  "character": 45
9890
10124
  },
9891
10125
  "name": "Promise",
@@ -9894,14 +10128,14 @@
9894
10128
  "__schema": "TypeArraySchema",
9895
10129
  "location": {
9896
10130
  "filePath": "component-template.ts",
9897
- "line": 142,
10131
+ "line": 152,
9898
10132
  "character": 53
9899
10133
  },
9900
10134
  "type": {
9901
10135
  "__schema": "TypeRefSchema",
9902
10136
  "location": {
9903
10137
  "filePath": "component-template.ts",
9904
- "line": 142,
10138
+ "line": 152,
9905
10139
  "character": 53
9906
10140
  },
9907
10141
  "name": "ComponentFile"
@@ -9913,14 +10147,14 @@
9913
10147
  "__schema": "TypeArraySchema",
9914
10148
  "location": {
9915
10149
  "filePath": "component-template.ts",
9916
- "line": 142,
10150
+ "line": 152,
9917
10151
  "character": 72
9918
10152
  },
9919
10153
  "type": {
9920
10154
  "__schema": "TypeRefSchema",
9921
10155
  "location": {
9922
10156
  "filePath": "component-template.ts",
9923
- "line": 142,
10157
+ "line": 152,
9924
10158
  "character": 72
9925
10159
  },
9926
10160
  "name": "ComponentFile"
@@ -9934,14 +10168,14 @@
9934
10168
  "__schema": "VariableLikeSchema",
9935
10169
  "location": {
9936
10170
  "filePath": "component-template.ts",
9937
- "line": 151,
10171
+ "line": 161,
9938
10172
  "character": 3
9939
10173
  },
9940
10174
  "doc": {
9941
10175
  "__schema": "DocSchema",
9942
10176
  "location": {
9943
10177
  "filePath": "component-template.ts",
9944
- "line": 144,
10178
+ "line": 154,
9945
10179
  "character": 3
9946
10180
  },
9947
10181
  "raw": "/**\n * component config. gets saved in the .bitmap file and it overrides the workspace.jsonc config.\n * for example, you can set the env that will be used for this component as follows:\n * \"teambit.envs/envs\": {\n * \"env\": \"teambit.harmony/aspect\"\n * },\n */",
@@ -9954,7 +10188,7 @@
9954
10188
  "__schema": "TypeUnionSchema",
9955
10189
  "location": {
9956
10190
  "filePath": "component-template.ts",
9957
- "line": 151,
10191
+ "line": 161,
9958
10192
  "character": 12
9959
10193
  },
9960
10194
  "types": [
@@ -9962,7 +10196,7 @@
9962
10196
  "__schema": "TypeRefSchema",
9963
10197
  "location": {
9964
10198
  "filePath": "component-template.ts",
9965
- "line": 151,
10199
+ "line": 161,
9966
10200
  "character": 12
9967
10201
  },
9968
10202
  "name": "ComponentConfig"
@@ -9971,14 +10205,14 @@
9971
10205
  "__schema": "ParenthesizedTypeSchema",
9972
10206
  "location": {
9973
10207
  "filePath": "component-template.ts",
9974
- "line": 151,
10208
+ "line": 161,
9975
10209
  "character": 30
9976
10210
  },
9977
10211
  "type": {
9978
10212
  "__schema": "FunctionLikeSchema",
9979
10213
  "location": {
9980
10214
  "filePath": "component-template.ts",
9981
- "line": 151,
10215
+ "line": 161,
9982
10216
  "character": 31
9983
10217
  },
9984
10218
  "signature": "(context: ConfigContext): ComponentConfig",
@@ -9988,7 +10222,7 @@
9988
10222
  "__schema": "ParameterSchema",
9989
10223
  "location": {
9990
10224
  "filePath": "component-template.ts",
9991
- "line": 151,
10225
+ "line": 161,
9992
10226
  "character": 32
9993
10227
  },
9994
10228
  "name": "context",
@@ -9996,7 +10230,7 @@
9996
10230
  "__schema": "TypeRefSchema",
9997
10231
  "location": {
9998
10232
  "filePath": "component-template.ts",
9999
- "line": 151,
10233
+ "line": 161,
10000
10234
  "character": 41
10001
10235
  },
10002
10236
  "name": "ConfigContext"
@@ -10009,7 +10243,7 @@
10009
10243
  "__schema": "TypeRefSchema",
10010
10244
  "location": {
10011
10245
  "filePath": "component-template.ts",
10012
- "line": 151,
10246
+ "line": 161,
10013
10247
  "character": 59
10014
10248
  },
10015
10249
  "name": "ComponentConfig"
@@ -10027,7 +10261,7 @@
10027
10261
  "__schema": "ExpressionWithTypeArgumentsSchema",
10028
10262
  "location": {
10029
10263
  "filePath": "component-template.ts",
10030
- "line": 136,
10264
+ "line": 146,
10031
10265
  "character": 44
10032
10266
  },
10033
10267
  "name": "extends ComponentTemplateOptions",
@@ -10081,8 +10315,8 @@
10081
10315
  "line": 97,
10082
10316
  "character": 3
10083
10317
  },
10084
- "name": "description",
10085
- "signature": "(property) ComponentTemplateOptions.description?: string | undefined",
10318
+ "name": "displayName",
10319
+ "signature": "(property) ComponentTemplateOptions.displayName?: string | undefined",
10086
10320
  "isOptional": true,
10087
10321
  "type": {
10088
10322
  "__schema": "KeywordTypeSchema",
@@ -10100,6 +10334,68 @@
10100
10334
  "line": 94,
10101
10335
  "character": 3
10102
10336
  },
10337
+ "raw": "/**\n * display name of the template.\n */",
10338
+ "comment": "display name of the template.",
10339
+ "tags": []
10340
+ }
10341
+ },
10342
+ {
10343
+ "__schema": "VariableLikeSchema",
10344
+ "location": {
10345
+ "filePath": "component-template.ts",
10346
+ "line": 102,
10347
+ "character": 3
10348
+ },
10349
+ "name": "exampleComponentName",
10350
+ "signature": "(property) ComponentTemplateOptions.exampleComponentName?: string | undefined",
10351
+ "isOptional": true,
10352
+ "type": {
10353
+ "__schema": "KeywordTypeSchema",
10354
+ "location": {
10355
+ "filePath": "component-template.ts",
10356
+ "line": 102,
10357
+ "character": 26
10358
+ },
10359
+ "name": "string"
10360
+ },
10361
+ "doc": {
10362
+ "__schema": "DocSchema",
10363
+ "location": {
10364
+ "filePath": "component-template.ts",
10365
+ "line": 99,
10366
+ "character": 3
10367
+ },
10368
+ "raw": "/**\n * example name for the component template.\n */",
10369
+ "comment": "example name for the component template.",
10370
+ "tags": []
10371
+ }
10372
+ },
10373
+ {
10374
+ "__schema": "VariableLikeSchema",
10375
+ "location": {
10376
+ "filePath": "component-template.ts",
10377
+ "line": 107,
10378
+ "character": 3
10379
+ },
10380
+ "name": "description",
10381
+ "signature": "(property) ComponentTemplateOptions.description?: string | undefined",
10382
+ "isOptional": true,
10383
+ "type": {
10384
+ "__schema": "KeywordTypeSchema",
10385
+ "location": {
10386
+ "filePath": "component-template.ts",
10387
+ "line": 107,
10388
+ "character": 17
10389
+ },
10390
+ "name": "string"
10391
+ },
10392
+ "doc": {
10393
+ "__schema": "DocSchema",
10394
+ "location": {
10395
+ "filePath": "component-template.ts",
10396
+ "line": 104,
10397
+ "character": 3
10398
+ },
10103
10399
  "raw": "/**\n * short description of the template. shown in the `bit templates` command.\n */",
10104
10400
  "comment": "short description of the template. shown in the `bit templates` command.",
10105
10401
  "tags": []
@@ -10109,7 +10405,7 @@
10109
10405
  "__schema": "VariableLikeSchema",
10110
10406
  "location": {
10111
10407
  "filePath": "component-template.ts",
10112
- "line": 102,
10408
+ "line": 112,
10113
10409
  "character": 3
10114
10410
  },
10115
10411
  "name": "hidden",
@@ -10119,7 +10415,7 @@
10119
10415
  "__schema": "KeywordTypeSchema",
10120
10416
  "location": {
10121
10417
  "filePath": "component-template.ts",
10122
- "line": 102,
10418
+ "line": 112,
10123
10419
  "character": 12
10124
10420
  },
10125
10421
  "name": "boolean"
@@ -10128,7 +10424,7 @@
10128
10424
  "__schema": "DocSchema",
10129
10425
  "location": {
10130
10426
  "filePath": "component-template.ts",
10131
- "line": 99,
10427
+ "line": 109,
10132
10428
  "character": 3
10133
10429
  },
10134
10430
  "raw": "/**\n * hide this template so that it is not listed with `bit templates`\n */",
@@ -10140,7 +10436,7 @@
10140
10436
  "__schema": "VariableLikeSchema",
10141
10437
  "location": {
10142
10438
  "filePath": "component-template.ts",
10143
- "line": 107,
10439
+ "line": 117,
10144
10440
  "character": 3
10145
10441
  },
10146
10442
  "name": "env",
@@ -10150,7 +10446,7 @@
10150
10446
  "__schema": "KeywordTypeSchema",
10151
10447
  "location": {
10152
10448
  "filePath": "component-template.ts",
10153
- "line": 107,
10449
+ "line": 117,
10154
10450
  "character": 9
10155
10451
  },
10156
10452
  "name": "string"
@@ -10159,7 +10455,7 @@
10159
10455
  "__schema": "DocSchema",
10160
10456
  "location": {
10161
10457
  "filePath": "component-template.ts",
10162
- "line": 104,
10458
+ "line": 114,
10163
10459
  "character": 3
10164
10460
  },
10165
10461
  "raw": "/**\n * env to use for the generated component.\n */",
@@ -10171,7 +10467,7 @@
10171
10467
  "__schema": "VariableLikeSchema",
10172
10468
  "location": {
10173
10469
  "filePath": "component-template.ts",
10174
- "line": 114,
10470
+ "line": 124,
10175
10471
  "character": 3
10176
10472
  },
10177
10473
  "name": "isEnv",
@@ -10181,7 +10477,7 @@
10181
10477
  "__schema": "KeywordTypeSchema",
10182
10478
  "location": {
10183
10479
  "filePath": "component-template.ts",
10184
- "line": 114,
10480
+ "line": 124,
10185
10481
  "character": 11
10186
10482
  },
10187
10483
  "name": "boolean"
@@ -10190,7 +10486,7 @@
10190
10486
  "__schema": "DocSchema",
10191
10487
  "location": {
10192
10488
  "filePath": "component-template.ts",
10193
- "line": 109,
10489
+ "line": 119,
10194
10490
  "character": 3
10195
10491
  },
10196
10492
  "raw": "/**\n * adds a metadata that the component that this template creates is of type env.\n * This will be used later to do further configuration for example:\n * - ensure to create the .bit_root for it\n */",
@@ -10202,7 +10498,7 @@
10202
10498
  "__schema": "VariableLikeSchema",
10203
10499
  "location": {
10204
10500
  "filePath": "component-template.ts",
10205
- "line": 122,
10501
+ "line": 132,
10206
10502
  "character": 3
10207
10503
  },
10208
10504
  "name": "isApp",
@@ -10212,7 +10508,7 @@
10212
10508
  "__schema": "KeywordTypeSchema",
10213
10509
  "location": {
10214
10510
  "filePath": "component-template.ts",
10215
- "line": 122,
10511
+ "line": 132,
10216
10512
  "character": 11
10217
10513
  },
10218
10514
  "name": "boolean"
@@ -10221,7 +10517,7 @@
10221
10517
  "__schema": "DocSchema",
10222
10518
  "location": {
10223
10519
  "filePath": "component-template.ts",
10224
- "line": 116,
10520
+ "line": 126,
10225
10521
  "character": 3
10226
10522
  },
10227
10523
  "raw": "/**\n * adds a metadata that the component that this template creates is of type app.\n * This will be used later to do further configuration for example:\n * - add it to the workspace.jsonc as app\n * - ensure to create the .bit_root for it\n */",
@@ -10233,7 +10529,7 @@
10233
10529
  "__schema": "VariableLikeSchema",
10234
10530
  "location": {
10235
10531
  "filePath": "component-template.ts",
10236
- "line": 127,
10532
+ "line": 137,
10237
10533
  "character": 3
10238
10534
  },
10239
10535
  "name": "dependencies",
@@ -10243,14 +10539,14 @@
10243
10539
  "__schema": "TypeArraySchema",
10244
10540
  "location": {
10245
10541
  "filePath": "component-template.ts",
10246
- "line": 127,
10542
+ "line": 137,
10247
10543
  "character": 18
10248
10544
  },
10249
10545
  "type": {
10250
10546
  "__schema": "KeywordTypeSchema",
10251
10547
  "location": {
10252
10548
  "filePath": "component-template.ts",
10253
- "line": 127,
10549
+ "line": 137,
10254
10550
  "character": 18
10255
10551
  },
10256
10552
  "name": "string"
@@ -10260,7 +10556,7 @@
10260
10556
  "__schema": "DocSchema",
10261
10557
  "location": {
10262
10558
  "filePath": "component-template.ts",
10263
- "line": 124,
10559
+ "line": 134,
10264
10560
  "character": 3
10265
10561
  },
10266
10562
  "raw": "/**\n * list of dependencies to install when the component is created.\n */",
@@ -10272,7 +10568,7 @@
10272
10568
  "__schema": "VariableLikeSchema",
10273
10569
  "location": {
10274
10570
  "filePath": "component-template.ts",
10275
- "line": 133,
10571
+ "line": 143,
10276
10572
  "character": 3
10277
10573
  },
10278
10574
  "name": "installMissingDependencies",
@@ -10282,7 +10578,7 @@
10282
10578
  "__schema": "KeywordTypeSchema",
10283
10579
  "location": {
10284
10580
  "filePath": "component-template.ts",
10285
- "line": 133,
10581
+ "line": 143,
10286
10582
  "character": 32
10287
10583
  },
10288
10584
  "name": "boolean"
@@ -10291,7 +10587,7 @@
10291
10587
  "__schema": "DocSchema",
10292
10588
  "location": {
10293
10589
  "filePath": "component-template.ts",
10294
- "line": 129,
10590
+ "line": 139,
10295
10591
  "character": 3
10296
10592
  },
10297
10593
  "raw": "/**\n * Perform installation of missing dependencies after component generation.\n * This is the same as of running `bit install --add-missing-deps` after component generation.\n */",
@@ -11206,8 +11502,8 @@
11206
11502
  "line": 135,
11207
11503
  "character": 1
11208
11504
  },
11209
- "signature": "interface WorkspaceTemplate",
11210
- "name": "WorkspaceTemplate",
11505
+ "signature": "interface WorkspaceTemplateOptions",
11506
+ "name": "WorkspaceTemplateOptions",
11211
11507
  "members": [
11212
11508
  {
11213
11509
  "__schema": "VariableLikeSchema",
@@ -11227,7 +11523,7 @@
11227
11523
  "comment": "name of the workspace starter. for example: `react-workspace`.",
11228
11524
  "tags": []
11229
11525
  },
11230
- "signature": "(property) WorkspaceTemplate.name: string",
11526
+ "signature": "(property) WorkspaceTemplateOptions.name: string",
11231
11527
  "name": "name",
11232
11528
  "type": {
11233
11529
  "__schema": "KeywordTypeSchema",
@@ -11258,7 +11554,7 @@
11258
11554
  "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
11259
11555
  "tags": []
11260
11556
  },
11261
- "signature": "(property) WorkspaceTemplate.appName?: string | undefined",
11557
+ "signature": "(property) WorkspaceTemplateOptions.appName?: string | undefined",
11262
11558
  "name": "appName",
11263
11559
  "type": {
11264
11560
  "__schema": "KeywordTypeSchema",
@@ -11289,7 +11585,7 @@
11289
11585
  "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
11290
11586
  "tags": []
11291
11587
  },
11292
- "signature": "(property) WorkspaceTemplate.description?: string | undefined",
11588
+ "signature": "(property) WorkspaceTemplateOptions.description?: string | undefined",
11293
11589
  "name": "description",
11294
11590
  "type": {
11295
11591
  "__schema": "KeywordTypeSchema",
@@ -11320,7 +11616,7 @@
11320
11616
  "comment": "hide this starter so that it is not listed with `bit starter`",
11321
11617
  "tags": []
11322
11618
  },
11323
- "signature": "(property) WorkspaceTemplate.hidden?: boolean | undefined",
11619
+ "signature": "(property) WorkspaceTemplateOptions.hidden?: boolean | undefined",
11324
11620
  "name": "hidden",
11325
11621
  "type": {
11326
11622
  "__schema": "KeywordTypeSchema",
@@ -11332,19 +11628,32 @@
11332
11628
  "name": "boolean"
11333
11629
  },
11334
11630
  "isOptional": true
11335
- },
11631
+ }
11632
+ ],
11633
+ "extendsNodes": []
11634
+ },
11635
+ {
11636
+ "__schema": "InterfaceSchema",
11637
+ "location": {
11638
+ "filePath": "workspace-template.ts",
11639
+ "line": 158,
11640
+ "character": 1
11641
+ },
11642
+ "signature": "interface WorkspaceTemplate",
11643
+ "name": "WorkspaceTemplate",
11644
+ "members": [
11336
11645
  {
11337
11646
  "__schema": "FunctionLikeSchema",
11338
11647
  "location": {
11339
11648
  "filePath": "workspace-template.ts",
11340
- "line": 160,
11649
+ "line": 162,
11341
11650
  "character": 3
11342
11651
  },
11343
11652
  "doc": {
11344
11653
  "__schema": "DocSchema",
11345
11654
  "location": {
11346
11655
  "filePath": "workspace-template.ts",
11347
- "line": 157,
11656
+ "line": 159,
11348
11657
  "character": 3
11349
11658
  },
11350
11659
  "raw": "/**\n * starter function for generating the template files,\n */",
@@ -11358,7 +11667,7 @@
11358
11667
  "__schema": "ParameterSchema",
11359
11668
  "location": {
11360
11669
  "filePath": "workspace-template.ts",
11361
- "line": 160,
11670
+ "line": 162,
11362
11671
  "character": 17
11363
11672
  },
11364
11673
  "name": "context",
@@ -11366,7 +11675,7 @@
11366
11675
  "__schema": "TypeRefSchema",
11367
11676
  "location": {
11368
11677
  "filePath": "workspace-template.ts",
11369
- "line": 160,
11678
+ "line": 162,
11370
11679
  "character": 26
11371
11680
  },
11372
11681
  "name": "WorkspaceContext"
@@ -11379,7 +11688,7 @@
11379
11688
  "__schema": "TypeRefSchema",
11380
11689
  "location": {
11381
11690
  "filePath": "workspace-template.ts",
11382
- "line": 160,
11691
+ "line": 162,
11383
11692
  "character": 45
11384
11693
  },
11385
11694
  "name": "Promise",
@@ -11388,14 +11697,14 @@
11388
11697
  "__schema": "TypeArraySchema",
11389
11698
  "location": {
11390
11699
  "filePath": "workspace-template.ts",
11391
- "line": 160,
11700
+ "line": 162,
11392
11701
  "character": 53
11393
11702
  },
11394
11703
  "type": {
11395
11704
  "__schema": "TypeRefSchema",
11396
11705
  "location": {
11397
11706
  "filePath": "workspace-template.ts",
11398
- "line": 160,
11707
+ "line": 162,
11399
11708
  "character": 53
11400
11709
  },
11401
11710
  "name": "WorkspaceFile"
@@ -11409,14 +11718,14 @@
11409
11718
  "__schema": "VariableLikeSchema",
11410
11719
  "location": {
11411
11720
  "filePath": "workspace-template.ts",
11412
- "line": 166,
11721
+ "line": 168,
11413
11722
  "character": 3
11414
11723
  },
11415
11724
  "doc": {
11416
11725
  "__schema": "DocSchema",
11417
11726
  "location": {
11418
11727
  "filePath": "workspace-template.ts",
11419
- "line": 162,
11728
+ "line": 164,
11420
11729
  "character": 3
11421
11730
  },
11422
11731
  "raw": "/**\n * @deprecated use `fork()` or `import()` instead\n * this is working similarly to `fork()`\n */",
@@ -11426,7 +11735,7 @@
11426
11735
  "__schema": "TagSchema",
11427
11736
  "location": {
11428
11737
  "filePath": "workspace-template.ts",
11429
- "line": 163,
11738
+ "line": 165,
11430
11739
  "character": 6
11431
11740
  },
11432
11741
  "tagName": "deprecated",
@@ -11440,7 +11749,7 @@
11440
11749
  "__schema": "FunctionLikeSchema",
11441
11750
  "location": {
11442
11751
  "filePath": "workspace-template.ts",
11443
- "line": 166,
11752
+ "line": 168,
11444
11753
  "character": 22
11445
11754
  },
11446
11755
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -11450,7 +11759,7 @@
11450
11759
  "__schema": "ParameterSchema",
11451
11760
  "location": {
11452
11761
  "filePath": "workspace-template.ts",
11453
- "line": 166,
11762
+ "line": 168,
11454
11763
  "character": 23
11455
11764
  },
11456
11765
  "name": "context",
@@ -11458,7 +11767,7 @@
11458
11767
  "__schema": "TypeRefSchema",
11459
11768
  "location": {
11460
11769
  "filePath": "workspace-template.ts",
11461
- "line": 166,
11770
+ "line": 168,
11462
11771
  "character": 32
11463
11772
  },
11464
11773
  "name": "WorkspaceContext"
@@ -11471,14 +11780,14 @@
11471
11780
  "__schema": "TypeArraySchema",
11472
11781
  "location": {
11473
11782
  "filePath": "workspace-template.ts",
11474
- "line": 166,
11783
+ "line": 168,
11475
11784
  "character": 53
11476
11785
  },
11477
11786
  "type": {
11478
11787
  "__schema": "TypeRefSchema",
11479
11788
  "location": {
11480
11789
  "filePath": "workspace-template.ts",
11481
- "line": 166,
11790
+ "line": 168,
11482
11791
  "character": 53
11483
11792
  },
11484
11793
  "name": "ForkComponentInfo"
@@ -11492,14 +11801,14 @@
11492
11801
  "__schema": "VariableLikeSchema",
11493
11802
  "location": {
11494
11803
  "filePath": "workspace-template.ts",
11495
- "line": 171,
11804
+ "line": 173,
11496
11805
  "character": 3
11497
11806
  },
11498
11807
  "doc": {
11499
11808
  "__schema": "DocSchema",
11500
11809
  "location": {
11501
11810
  "filePath": "workspace-template.ts",
11502
- "line": 168,
11811
+ "line": 170,
11503
11812
  "character": 3
11504
11813
  },
11505
11814
  "raw": "/**\n * import components into the new workspace, don't change their source code.\n */",
@@ -11512,7 +11821,7 @@
11512
11821
  "__schema": "FunctionLikeSchema",
11513
11822
  "location": {
11514
11823
  "filePath": "workspace-template.ts",
11515
- "line": 171,
11824
+ "line": 173,
11516
11825
  "character": 12
11517
11826
  },
11518
11827
  "signature": "(context: WorkspaceContext): ImportComponentInfo[]",
@@ -11522,7 +11831,7 @@
11522
11831
  "__schema": "ParameterSchema",
11523
11832
  "location": {
11524
11833
  "filePath": "workspace-template.ts",
11525
- "line": 171,
11834
+ "line": 173,
11526
11835
  "character": 13
11527
11836
  },
11528
11837
  "name": "context",
@@ -11530,7 +11839,7 @@
11530
11839
  "__schema": "TypeRefSchema",
11531
11840
  "location": {
11532
11841
  "filePath": "workspace-template.ts",
11533
- "line": 171,
11842
+ "line": 173,
11534
11843
  "character": 22
11535
11844
  },
11536
11845
  "name": "WorkspaceContext"
@@ -11543,14 +11852,14 @@
11543
11852
  "__schema": "TypeArraySchema",
11544
11853
  "location": {
11545
11854
  "filePath": "workspace-template.ts",
11546
- "line": 171,
11855
+ "line": 173,
11547
11856
  "character": 43
11548
11857
  },
11549
11858
  "type": {
11550
11859
  "__schema": "TypeRefSchema",
11551
11860
  "location": {
11552
11861
  "filePath": "workspace-template.ts",
11553
- "line": 171,
11862
+ "line": 173,
11554
11863
  "character": 43
11555
11864
  },
11556
11865
  "name": "ImportComponentInfo"
@@ -11564,14 +11873,14 @@
11564
11873
  "__schema": "VariableLikeSchema",
11565
11874
  "location": {
11566
11875
  "filePath": "workspace-template.ts",
11567
- "line": 177,
11876
+ "line": 179,
11568
11877
  "character": 3
11569
11878
  },
11570
11879
  "doc": {
11571
11880
  "__schema": "DocSchema",
11572
11881
  "location": {
11573
11882
  "filePath": "workspace-template.ts",
11574
- "line": 173,
11883
+ "line": 175,
11575
11884
  "character": 3
11576
11885
  },
11577
11886
  "raw": "/**\n * populate existing components into the new workspace and add them as new components.\n * change their source code and update the dependency names according to the new component names.\n */",
@@ -11584,7 +11893,7 @@
11584
11893
  "__schema": "FunctionLikeSchema",
11585
11894
  "location": {
11586
11895
  "filePath": "workspace-template.ts",
11587
- "line": 177,
11896
+ "line": 179,
11588
11897
  "character": 10
11589
11898
  },
11590
11899
  "signature": "(context: WorkspaceContext): ForkComponentInfo[]",
@@ -11594,7 +11903,7 @@
11594
11903
  "__schema": "ParameterSchema",
11595
11904
  "location": {
11596
11905
  "filePath": "workspace-template.ts",
11597
- "line": 177,
11906
+ "line": 179,
11598
11907
  "character": 11
11599
11908
  },
11600
11909
  "name": "context",
@@ -11602,7 +11911,7 @@
11602
11911
  "__schema": "TypeRefSchema",
11603
11912
  "location": {
11604
11913
  "filePath": "workspace-template.ts",
11605
- "line": 177,
11914
+ "line": 179,
11606
11915
  "character": 20
11607
11916
  },
11608
11917
  "name": "WorkspaceContext"
@@ -11615,14 +11924,14 @@
11615
11924
  "__schema": "TypeArraySchema",
11616
11925
  "location": {
11617
11926
  "filePath": "workspace-template.ts",
11618
- "line": 177,
11927
+ "line": 179,
11619
11928
  "character": 41
11620
11929
  },
11621
11930
  "type": {
11622
11931
  "__schema": "TypeRefSchema",
11623
11932
  "location": {
11624
11933
  "filePath": "workspace-template.ts",
11625
- "line": 177,
11934
+ "line": 179,
11626
11935
  "character": 41
11627
11936
  },
11628
11937
  "name": "ForkComponentInfo"
@@ -11636,14 +11945,14 @@
11636
11945
  "__schema": "VariableLikeSchema",
11637
11946
  "location": {
11638
11947
  "filePath": "workspace-template.ts",
11639
- "line": 182,
11948
+ "line": 184,
11640
11949
  "character": 3
11641
11950
  },
11642
11951
  "doc": {
11643
11952
  "__schema": "DocSchema",
11644
11953
  "location": {
11645
11954
  "filePath": "workspace-template.ts",
11646
- "line": 179,
11955
+ "line": 181,
11647
11956
  "character": 3
11648
11957
  },
11649
11958
  "raw": "/**\n * populate new components into the new workspace and add them as new components.\n */",
@@ -11656,7 +11965,7 @@
11656
11965
  "__schema": "FunctionLikeSchema",
11657
11966
  "location": {
11658
11967
  "filePath": "workspace-template.ts",
11659
- "line": 182,
11968
+ "line": 184,
11660
11969
  "character": 12
11661
11970
  },
11662
11971
  "signature": "(context: WorkspaceContext): CreateComponentInfo[]",
@@ -11666,7 +11975,7 @@
11666
11975
  "__schema": "ParameterSchema",
11667
11976
  "location": {
11668
11977
  "filePath": "workspace-template.ts",
11669
- "line": 182,
11978
+ "line": 184,
11670
11979
  "character": 13
11671
11980
  },
11672
11981
  "name": "context",
@@ -11674,7 +11983,7 @@
11674
11983
  "__schema": "TypeRefSchema",
11675
11984
  "location": {
11676
11985
  "filePath": "workspace-template.ts",
11677
- "line": 182,
11986
+ "line": 184,
11678
11987
  "character": 22
11679
11988
  },
11680
11989
  "name": "WorkspaceContext"
@@ -11687,14 +11996,14 @@
11687
11996
  "__schema": "TypeArraySchema",
11688
11997
  "location": {
11689
11998
  "filePath": "workspace-template.ts",
11690
- "line": 182,
11999
+ "line": 184,
11691
12000
  "character": 43
11692
12001
  },
11693
12002
  "type": {
11694
12003
  "__schema": "TypeRefSchema",
11695
12004
  "location": {
11696
12005
  "filePath": "workspace-template.ts",
11697
- "line": 182,
12006
+ "line": 184,
11698
12007
  "character": 43
11699
12008
  },
11700
12009
  "name": "CreateComponentInfo"
@@ -11705,7 +12014,155 @@
11705
12014
  "isOptional": true
11706
12015
  }
11707
12016
  ],
11708
- "extendsNodes": []
12017
+ "extendsNodes": [
12018
+ {
12019
+ "__schema": "ExpressionWithTypeArgumentsSchema",
12020
+ "location": {
12021
+ "filePath": "workspace-template.ts",
12022
+ "line": 158,
12023
+ "character": 44
12024
+ },
12025
+ "name": "extends WorkspaceTemplateOptions",
12026
+ "typeArgs": [],
12027
+ "expression": {
12028
+ "__schema": "InterfaceSchema",
12029
+ "location": {
12030
+ "filePath": "workspace-template.ts",
12031
+ "line": 135,
12032
+ "character": 1
12033
+ },
12034
+ "name": "WorkspaceTemplateOptions",
12035
+ "signature": "interface WorkspaceTemplateOptions",
12036
+ "extendsNodes": [],
12037
+ "members": [
12038
+ {
12039
+ "__schema": "VariableLikeSchema",
12040
+ "location": {
12041
+ "filePath": "workspace-template.ts",
12042
+ "line": 139,
12043
+ "character": 3
12044
+ },
12045
+ "name": "name",
12046
+ "signature": "(property) WorkspaceTemplateOptions.name: string",
12047
+ "isOptional": false,
12048
+ "type": {
12049
+ "__schema": "KeywordTypeSchema",
12050
+ "location": {
12051
+ "filePath": "workspace-template.ts",
12052
+ "line": 139,
12053
+ "character": 9
12054
+ },
12055
+ "name": "string"
12056
+ },
12057
+ "doc": {
12058
+ "__schema": "DocSchema",
12059
+ "location": {
12060
+ "filePath": "workspace-template.ts",
12061
+ "line": 136,
12062
+ "character": 3
12063
+ },
12064
+ "raw": "/**\n * name of the workspace starter. for example: `react-workspace`.\n */",
12065
+ "comment": "name of the workspace starter. for example: `react-workspace`.",
12066
+ "tags": []
12067
+ }
12068
+ },
12069
+ {
12070
+ "__schema": "VariableLikeSchema",
12071
+ "location": {
12072
+ "filePath": "workspace-template.ts",
12073
+ "line": 145,
12074
+ "character": 3
12075
+ },
12076
+ "name": "appName",
12077
+ "signature": "(property) WorkspaceTemplateOptions.appName?: string | undefined",
12078
+ "isOptional": true,
12079
+ "type": {
12080
+ "__schema": "KeywordTypeSchema",
12081
+ "location": {
12082
+ "filePath": "workspace-template.ts",
12083
+ "line": 145,
12084
+ "character": 13
12085
+ },
12086
+ "name": "string"
12087
+ },
12088
+ "doc": {
12089
+ "__schema": "DocSchema",
12090
+ "location": {
12091
+ "filePath": "workspace-template.ts",
12092
+ "line": 141,
12093
+ "character": 3
12094
+ },
12095
+ "raw": "/**\n * name of an app created in the workspace. for example: `my-app`.\n * This will be used to instruct the user to run `bit run <appName>` in the new workspace.\n */",
12096
+ "comment": "name of an app created in the workspace. for example: `my-app`.\nThis will be used to instruct the user to run `bit run <appName>` in the new workspace.",
12097
+ "tags": []
12098
+ }
12099
+ },
12100
+ {
12101
+ "__schema": "VariableLikeSchema",
12102
+ "location": {
12103
+ "filePath": "workspace-template.ts",
12104
+ "line": 150,
12105
+ "character": 3
12106
+ },
12107
+ "name": "description",
12108
+ "signature": "(property) WorkspaceTemplateOptions.description?: string | undefined",
12109
+ "isOptional": true,
12110
+ "type": {
12111
+ "__schema": "KeywordTypeSchema",
12112
+ "location": {
12113
+ "filePath": "workspace-template.ts",
12114
+ "line": 150,
12115
+ "character": 17
12116
+ },
12117
+ "name": "string"
12118
+ },
12119
+ "doc": {
12120
+ "__schema": "DocSchema",
12121
+ "location": {
12122
+ "filePath": "workspace-template.ts",
12123
+ "line": 147,
12124
+ "character": 3
12125
+ },
12126
+ "raw": "/**\n * short description of the starter. shown in the `bit starter` command when outside of bit-workspace.\n */",
12127
+ "comment": "short description of the starter. shown in the `bit starter` command when outside of bit-workspace.",
12128
+ "tags": []
12129
+ }
12130
+ },
12131
+ {
12132
+ "__schema": "VariableLikeSchema",
12133
+ "location": {
12134
+ "filePath": "workspace-template.ts",
12135
+ "line": 155,
12136
+ "character": 3
12137
+ },
12138
+ "name": "hidden",
12139
+ "signature": "(property) WorkspaceTemplateOptions.hidden?: boolean | undefined",
12140
+ "isOptional": true,
12141
+ "type": {
12142
+ "__schema": "KeywordTypeSchema",
12143
+ "location": {
12144
+ "filePath": "workspace-template.ts",
12145
+ "line": 155,
12146
+ "character": 12
12147
+ },
12148
+ "name": "boolean"
12149
+ },
12150
+ "doc": {
12151
+ "__schema": "DocSchema",
12152
+ "location": {
12153
+ "filePath": "workspace-template.ts",
12154
+ "line": 152,
12155
+ "character": 3
12156
+ },
12157
+ "raw": "/**\n * hide this starter so that it is not listed with `bit starter`\n */",
12158
+ "comment": "hide this starter so that it is not listed with `bit starter`",
12159
+ "tags": []
12160
+ }
12161
+ }
12162
+ ]
12163
+ }
12164
+ }
12165
+ ]
11709
12166
  }
11710
12167
  ],
11711
12168
  "internals": []
@@ -13101,7 +13558,7 @@
13101
13558
  "componentId": {
13102
13559
  "scope": "teambit.generator",
13103
13560
  "name": "generator",
13104
- "version": "1.0.373"
13561
+ "version": "1.0.374"
13105
13562
  },
13106
13563
  "taggedModuleExports": []
13107
13564
  }