Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,6 @@ The repository uses an automated tool to maintain consistency across package REA
## Important Notes

- This is a workspace managed by Melos - always run commands from the root
- Each package/plugin maintains its own changelog and version
- Each package/plugin maintains its own changelog and version — **do not manually update CHANGELOG.md or pubspec.yaml versions**; versioning is managed by Melos
- Use `melos exec` to run commands across all packages
- The workspace includes both published packages and internal development tools
1 change: 0 additions & 1 deletion packages/nonstop_cli/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ nonstop create <project-name> [arguments]
| `--output-directory` | `-o` | Output directory for the new project | Current directory |
| `--description` | `--desc` | Description for the new project | "A Melos-managed project for mono-repo, created using NonStop CLI." |
| `--org-name` | `--org` | Organization name for the new project | `com.example` |
| `--application-id` | | Bundle identifier on iOS or application id on Android | `<org-name>.<project-name>` |

#### 📦 Template Options

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,9 @@ vars:
description:
type: string
description: Description of the project
prompt: What is your project's description?
prompt: What is your project's description?
org_name:
type: string
description: Organization name
prompt: What is your organization name?
default: com.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ final class FlutterPluginCreateCommand extends BaseFlutterCommand {
Future<void> run(HookContext context) async {
final String name = context.vars['name'];
final String description = context.vars['description'];
final String orgName = context.vars['org_name'] ?? 'com.example';
final appName = name.snakeCase;

await createFlutterProject(
Expand All @@ -14,6 +15,7 @@ final class FlutterPluginCreateCommand extends BaseFlutterCommand {
description: description,
outputPath: '.',
template: 'plugin',
orgName: orgName,
);

final isMonoRepo = context.vars['is_mono_repo'] ?? false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ vars:
type: string
description: Description of the project
prompt: What is your project's description?
org_name:
type: string
description: Organization name
prompt: What is your organization name?
default: com.example
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ final class FlutterCreateCommand extends BaseFlutterCommand {
Future<void> run(HookContext context) async {
final String name = context.vars['name'];
final String description = context.vars['description'];
final String orgName = context.vars['org_name'] ?? 'com.example';
final appName = name.snakeCase;
final outputPath = p.normalize('$appName/apps');

Expand All @@ -17,6 +18,7 @@ final class FlutterCreateCommand extends BaseFlutterCommand {
name: appName,
description: description,
outputPath: outputPath,
orgName: orgName,
);

await removeAnalysisOptions(
Expand Down
7 changes: 0 additions & 7 deletions packages/nonstop_cli/lib/commands/create/command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ class CreateCommand extends Command<int> {
}) : _generatorFromBundle = generatorFromBundle ?? MasonGenerator.fromBundle,
_generatorFromBrick = generatorFromBrick ?? MasonGenerator.fromBrick {
argParser
..addOption(
'application-id',
help: 'The bundle identifier on iOS or application id on Android. '
'(defaults to <org-name>.<project-name>)',
)
..addOption(
'output-directory',
abbr: 'o',
Expand Down Expand Up @@ -204,13 +199,11 @@ class CreateCommand extends Command<int> {
Map<String, dynamic> getTemplateVars() {
final projectName = this.projectName;
final projectDescription = this.projectDescription;
final applicationId = argResults['application-id'] as String?;

return <String, dynamic>{
'name': projectName,
'description': projectDescription,
'org_name': orgName,
if (applicationId != null) 'application_id': applicationId
};
}
}
Expand Down
Loading