start-it-cli 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,606 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.flutterTemplates = void 0;
4
+ exports.flutterTemplates = {
5
+ "Mobile App": {
6
+ name: "Mobile App",
7
+ description: "A Flutter mobile application",
8
+ files: [
9
+ {
10
+ path: "pubspec.yaml",
11
+ content: `name: my_app
12
+ description: A Flutter mobile application.
13
+
14
+ publish_to: 'none'
15
+
16
+ version: 1.0.0+1
17
+
18
+ environment:
19
+ sdk: '>=3.0.0 <4.0.0'
20
+
21
+ dependencies:
22
+ flutter:
23
+ sdk: flutter
24
+ cupertino_icons: ^1.0.2
25
+
26
+ dev_dependencies:
27
+ flutter_test:
28
+ sdk: flutter
29
+ flutter_lints: ^2.0.0
30
+
31
+ flutter:
32
+ uses-material-design: true
33
+ `,
34
+ },
35
+ {
36
+ path: "lib/main.dart",
37
+ content: `import 'package:flutter/material.dart';
38
+
39
+ void main() {
40
+ runApp(const MyApp());
41
+ }
42
+
43
+ class MyApp extends StatelessWidget {
44
+ const MyApp({Key? key}) : super(key: key);
45
+
46
+ @override
47
+ Widget build(BuildContext context) {
48
+ return MaterialApp(
49
+ title: 'Flutter App',
50
+ theme: ThemeData(
51
+ primarySwatch: Colors.blue,
52
+ useMaterial3: true,
53
+ ),
54
+ home: const MyHomePage(title: 'Flutter Home'),
55
+ );
56
+ }
57
+ }
58
+
59
+ class MyHomePage extends StatefulWidget {
60
+ const MyHomePage({Key? key, required this.title}) : super(key: key);
61
+
62
+ final String title;
63
+
64
+ @override
65
+ State<MyHomePage> createState() => _MyHomePageState();
66
+ }
67
+
68
+ class _MyHomePageState extends State<MyHomePage> {
69
+ int _counter = 0;
70
+
71
+ void _incrementCounter() {
72
+ setState(() {
73
+ _counter++;
74
+ });
75
+ }
76
+
77
+ @override
78
+ Widget build(BuildContext context) {
79
+ return Scaffold(
80
+ appBar: AppBar(
81
+ title: Text(widget.title),
82
+ ),
83
+ body: Center(
84
+ child: Column(
85
+ mainAxisAlignment: MainAxisAlignment.center,
86
+ children: <Widget>[
87
+ const Text(
88
+ 'You have pushed the button this many times:',
89
+ ),
90
+ Text(
91
+ '\$_counter',
92
+ style: Theme.of(context).textTheme.headlineMedium,
93
+ ),
94
+ ],
95
+ ),
96
+ ),
97
+ floatingActionButton: FloatingActionButton(
98
+ onPressed: _incrementCounter,
99
+ tooltip: 'Increment',
100
+ child: const Icon(Icons.add),
101
+ ),
102
+ );
103
+ }
104
+ }
105
+ `,
106
+ },
107
+ {
108
+ path: "README.md",
109
+ content: `# Flutter Mobile App
110
+
111
+ A Flutter mobile application template.
112
+
113
+ ## Getting Started
114
+
115
+ This project is a starting point for a Flutter application.
116
+
117
+ ### Prerequisites
118
+
119
+ - Flutter SDK
120
+ - Dart SDK
121
+
122
+ ### Setup
123
+
124
+ \`\`\`bash
125
+ flutter pub get
126
+ \`\`\`
127
+
128
+ ### Run
129
+
130
+ \`\`\`bash
131
+ flutter run
132
+ \`\`\`
133
+
134
+ ### Build
135
+
136
+ \`\`\`bash
137
+ # Android
138
+ flutter build apk
139
+
140
+ # iOS
141
+ flutter build ios
142
+ \`\`\`
143
+
144
+ ## Project Structure
145
+
146
+ - \`lib/main.dart\` - Main application entry point
147
+ - \`pubspec.yaml\` - Project dependencies and configuration
148
+ `,
149
+ },
150
+ {
151
+ path: ".gitignore",
152
+ content: `# Miscellaneous
153
+ *.class
154
+ *.log
155
+ *.pyc
156
+ *.swp
157
+ .DS_Store
158
+ .atom/
159
+ .buildlog/
160
+ .history
161
+ .svn/
162
+ migrate_working_dir/
163
+
164
+ # IntelliJ related
165
+ *.iml
166
+ *.ipr
167
+ *.iws
168
+ .idea/
169
+
170
+ # The .vscode folder contains launch configuration and tasks you configure in
171
+ # VS Code which you may wish to be committed to version control.
172
+ .vscode/
173
+
174
+ # Flutter/Dart/Pub related
175
+ **/doc/api/
176
+ **/ios/Flutter/.last_build_id
177
+ .dart_tool/
178
+ .flutter-plugins
179
+ .flutter-plugins-dependencies
180
+ .packages
181
+ .pub-cache/
182
+ .pub/
183
+ /build/
184
+
185
+ # Symbolication related
186
+ app.*.symbols
187
+
188
+ # Obfuscation related
189
+ app.*.map.json
190
+
191
+ # iOS/macOS
192
+ **/ios/**/*.mode1v3
193
+ **/ios/**/*.mode2v3
194
+ **/ios/**/*.moved-aside
195
+ **/ios/**/*.pbxuser
196
+ **/ios/**/*.perspectivev3
197
+ **/ios/**/*sync/
198
+ **/ios/**/.sconsign.dblite
199
+ **/ios/**/.tags*
200
+ **/ios/**/.vagrant
201
+ **/ios/**/DerivedData/
202
+ **/ios/**/Icon?
203
+ **/ios/**/Pods/
204
+ **/ios/**/.symlinks/
205
+ **/ios/**/Flutter/Flutter.framework
206
+ **/ios/**/Flutter/Flutter.podspec
207
+ **/ios/**/Flutter/Generated.xcconfig
208
+ **/ios/**/Flutter/ephemeral/
209
+ **/ios/**/Flutter/app.flx
210
+ **/ios/**/Flutter/app.zip
211
+ **/ios/**/Flutter/flutter_assets/
212
+ **/ios/**/Flutter/flutter_export_environment.sh
213
+ **/ios/**/ServiceDefinitions.json
214
+ **/ios/**/Runner/GeneratedPluginRegistrant.*
215
+
216
+ # macOS
217
+ **/macos/Flutter/GeneratedPluginRegistrant.swift
218
+
219
+ # Android
220
+ **/android/**/gradle-wrapper.jar
221
+ **/android/.gradle
222
+ **/android/captures/
223
+ **/android/gradlew
224
+ **/android/gradlew.bat
225
+ **/android/local.properties
226
+ **/android/**/GeneratedPluginRegistrant.java
227
+
228
+ # iOS/macOS
229
+ **/ios/**/*.mode1v3
230
+ **/ios/**/*.mode2v3
231
+ **/ios/**/*.moved-aside
232
+ **/ios/**/*.pbxuser
233
+ **/ios/**/*.perspectivev3
234
+ **/ios/**/*sync/
235
+ **/ios/**/.sconsign.dblite
236
+ **/ios/**/.tags*
237
+ **/ios/**/.vagrant
238
+ **/ios/**/DerivedData/
239
+ **/ios/**/Icon?
240
+ **/ios/**/Pods/
241
+ **/ios/**/.symlinks/
242
+ **/ios/**/Flutter/Flutter.framework
243
+ **/ios/**/Flutter/Flutter.podspec
244
+ **/ios/**/Flutter/Generated.xcconfig
245
+ **/ios/**/Flutter/ephemeral/
246
+ **/ios/**/Flutter/app.flx
247
+ **/ios/**/Flutter/app.zip
248
+ **/ios/**/Flutter/flutter_assets/
249
+ **/ios/**/Flutter/flutter_export_environment.sh
250
+ **/ios/**/ServiceDefinitions.json
251
+ **/ios/**/Runner/GeneratedPluginRegistrant.*
252
+
253
+ # Coverage
254
+ coverage/
255
+
256
+ # Exceptions to above rules.
257
+ !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages
258
+ `,
259
+ },
260
+ ],
261
+ },
262
+ "Web App": {
263
+ name: "Web App",
264
+ description: "A Flutter web application",
265
+ files: [
266
+ {
267
+ path: "pubspec.yaml",
268
+ content: `name: my_web_app
269
+ description: A Flutter web application.
270
+
271
+ publish_to: 'none'
272
+
273
+ version: 1.0.0+1
274
+
275
+ environment:
276
+ sdk: '>=3.0.0 <4.0.0'
277
+
278
+ dependencies:
279
+ flutter:
280
+ sdk: flutter
281
+ cupertino_icons: ^1.0.2
282
+
283
+ dev_dependencies:
284
+ flutter_test:
285
+ sdk: flutter
286
+ flutter_lints: ^2.0.0
287
+
288
+ flutter:
289
+ uses-material-design: true
290
+ `,
291
+ },
292
+ {
293
+ path: "lib/main.dart",
294
+ content: `import 'package:flutter/material.dart';
295
+
296
+ void main() {
297
+ runApp(const MyApp());
298
+ }
299
+
300
+ class MyApp extends StatelessWidget {
301
+ const MyApp({Key? key}) : super(key: key);
302
+
303
+ @override
304
+ Widget build(BuildContext context) {
305
+ return MaterialApp(
306
+ title: 'Flutter Web App',
307
+ theme: ThemeData(
308
+ primarySwatch: Colors.blue,
309
+ useMaterial3: true,
310
+ ),
311
+ home: const MyHomePage(title: 'Flutter Web'),
312
+ );
313
+ }
314
+ }
315
+
316
+ class MyHomePage extends StatefulWidget {
317
+ const MyHomePage({Key? key, required this.title}) : super(key: key);
318
+
319
+ final String title;
320
+
321
+ @override
322
+ State<MyHomePage> createState() => _MyHomePageState();
323
+ }
324
+
325
+ class _MyHomePageState extends State<MyHomePage> {
326
+ @override
327
+ Widget build(BuildContext context) {
328
+ return Scaffold(
329
+ appBar: AppBar(
330
+ title: Text(widget.title),
331
+ ),
332
+ body: Center(
333
+ child: Column(
334
+ mainAxisAlignment: MainAxisAlignment.center,
335
+ children: <Widget>[
336
+ const Text(
337
+ 'Welcome to Flutter Web!',
338
+ style: TextStyle(fontSize: 24),
339
+ ),
340
+ const SizedBox(height: 20),
341
+ ElevatedButton(
342
+ onPressed: () {},
343
+ child: const Text('Click Me'),
344
+ ),
345
+ ],
346
+ ),
347
+ ),
348
+ );
349
+ }
350
+ }
351
+ `,
352
+ },
353
+ {
354
+ path: "README.md",
355
+ content: `# Flutter Web App
356
+
357
+ A Flutter web application template.
358
+
359
+ ## Getting Started
360
+
361
+ ### Prerequisites
362
+
363
+ - Flutter SDK with web support enabled
364
+
365
+ ### Setup
366
+
367
+ \`\`\`bash
368
+ flutter pub get
369
+ \`\`\`
370
+
371
+ ### Run
372
+
373
+ \`\`\`bash
374
+ flutter run -d chrome
375
+ \`\`\`
376
+
377
+ ### Build
378
+
379
+ \`\`\`bash
380
+ flutter build web
381
+ \`\`\`
382
+
383
+ ## Project Structure
384
+
385
+ - \`lib/main.dart\` - Main application entry point
386
+ - \`pubspec.yaml\` - Project dependencies and configuration
387
+ - \`web/\` - Web-specific files
388
+ `,
389
+ },
390
+ {
391
+ path: ".gitignore",
392
+ content: `# Miscellaneous
393
+ *.class
394
+ *.log
395
+ *.pyc
396
+ *.swp
397
+ .DS_Store
398
+ .atom/
399
+ .buildlog/
400
+ .history
401
+ .svn/
402
+ migrate_working_dir/
403
+
404
+ # IntelliJ related
405
+ *.iml
406
+ *.ipr
407
+ *.iws
408
+ .idea/
409
+
410
+ # The .vscode folder contains launch configuration and tasks you configure in
411
+ # VS Code which you may wish to be committed to version control.
412
+ .vscode/
413
+
414
+ # Flutter/Dart/Pub related
415
+ **/doc/api/
416
+ **/ios/Flutter/.last_build_id
417
+ .dart_tool/
418
+ .flutter-plugins
419
+ .flutter-plugins-dependencies
420
+ .packages
421
+ .pub-cache/
422
+ .pub/
423
+ /build/
424
+ `,
425
+ },
426
+ ],
427
+ },
428
+ "Desktop App": {
429
+ name: "Desktop App",
430
+ description: "A Flutter desktop application",
431
+ files: [
432
+ {
433
+ path: "pubspec.yaml",
434
+ content: `name: my_desktop_app
435
+ description: A Flutter desktop application.
436
+
437
+ publish_to: 'none'
438
+
439
+ version: 1.0.0+1
440
+
441
+ environment:
442
+ sdk: '>=3.0.0 <4.0.0'
443
+
444
+ dependencies:
445
+ flutter:
446
+ sdk: flutter
447
+ cupertino_icons: ^1.0.2
448
+
449
+ dev_dependencies:
450
+ flutter_test:
451
+ sdk: flutter
452
+ flutter_lints: ^2.0.0
453
+
454
+ flutter:
455
+ uses-material-design: true
456
+ `,
457
+ },
458
+ {
459
+ path: "lib/main.dart",
460
+ content: `import 'package:flutter/material.dart';
461
+
462
+ void main() {
463
+ runApp(const MyApp());
464
+ }
465
+
466
+ class MyApp extends StatelessWidget {
467
+ const MyApp({Key? key}) : super(key: key);
468
+
469
+ @override
470
+ Widget build(BuildContext context) {
471
+ return MaterialApp(
472
+ title: 'Flutter Desktop App',
473
+ theme: ThemeData(
474
+ primarySwatch: Colors.blue,
475
+ useMaterial3: true,
476
+ ),
477
+ home: const MyHomePage(title: 'Flutter Desktop'),
478
+ );
479
+ }
480
+ }
481
+
482
+ class MyHomePage extends StatefulWidget {
483
+ const MyHomePage({Key? key, required this.title}) : super(key: key);
484
+
485
+ final String title;
486
+
487
+ @override
488
+ State<MyHomePage> createState() => _MyHomePageState();
489
+ }
490
+
491
+ class _MyHomePageState extends State<MyHomePage> {
492
+ int _counter = 0;
493
+
494
+ void _incrementCounter() {
495
+ setState(() {
496
+ _counter++;
497
+ });
498
+ }
499
+
500
+ @override
501
+ Widget build(BuildContext context) {
502
+ return Scaffold(
503
+ appBar: AppBar(
504
+ title: Text(widget.title),
505
+ ),
506
+ body: Center(
507
+ child: Column(
508
+ mainAxisAlignment: MainAxisAlignment.center,
509
+ children: <Widget>[
510
+ const Text(
511
+ 'Desktop Application',
512
+ style: TextStyle(fontSize: 24),
513
+ ),
514
+ const SizedBox(height: 20),
515
+ Text(
516
+ '\$_counter',
517
+ style: Theme.of(context).textTheme.headlineMedium,
518
+ ),
519
+ ],
520
+ ),
521
+ ),
522
+ floatingActionButton: FloatingActionButton(
523
+ onPressed: _incrementCounter,
524
+ tooltip: 'Increment',
525
+ child: const Icon(Icons.add),
526
+ ),
527
+ );
528
+ }
529
+ }
530
+ `,
531
+ },
532
+ {
533
+ path: "README.md",
534
+ content: `# Flutter Desktop App
535
+
536
+ A Flutter desktop application template.
537
+
538
+ ## Getting Started
539
+
540
+ ### Prerequisites
541
+
542
+ - Flutter SDK with desktop support enabled
543
+
544
+ ### Setup
545
+
546
+ \`\`\`bash
547
+ flutter pub get
548
+ \`\`\`
549
+
550
+ ### Run
551
+
552
+ \`\`\`bash
553
+ flutter run -d windows # Windows
554
+ flutter run -d macos # macOS
555
+ flutter run -d linux # Linux
556
+ \`\`\`
557
+
558
+ ### Build
559
+
560
+ \`\`\`bash
561
+ flutter build windows
562
+ flutter build macos
563
+ flutter build linux
564
+ \`\`\`
565
+ `,
566
+ },
567
+ {
568
+ path: ".gitignore",
569
+ content: `# Miscellaneous
570
+ *.class
571
+ *.log
572
+ *.pyc
573
+ *.swp
574
+ .DS_Store
575
+ .atom/
576
+ .buildlog/
577
+ .history
578
+ .svn/
579
+ migrate_working_dir/
580
+
581
+ # IntelliJ related
582
+ *.iml
583
+ *.ipr
584
+ *.iws
585
+ .idea/
586
+
587
+ # The .vscode folder contains launch configuration and tasks you configure in
588
+ # VS Code which you may wish to be committed to version control.
589
+ .vscode/
590
+
591
+ # Flutter/Dart/Pub related
592
+ **/doc/api/
593
+ **/ios/Flutter/.last_build_id
594
+ .dart_tool/
595
+ .flutter-plugins
596
+ .flutter-plugins-dependencies
597
+ .packages
598
+ .pub-cache/
599
+ .pub/
600
+ /build/
601
+ `,
602
+ },
603
+ ],
604
+ },
605
+ };
606
+ //# sourceMappingURL=flutter.js.map