Skip to content

Commit

Permalink
v5.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agordn52 committed Oct 19, 2023
1 parent 2a89426 commit 1a37418
Show file tree
Hide file tree
Showing 21 changed files with 38 additions and 12 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [5.6.0] - 2023-10-19

* Add docblock to more APIs
* Update pubspec.yaml

## [5.5.0] - 2023-10-17

* Update page stub to use `NyPage`
Expand Down
11 changes: 6 additions & 5 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,15 @@ packages:
path: ".."
relative: true
source: path
version: "5.4.1"
version: "5.6.0"
nylo_support:
dependency: transitive
description:
path: "/Users/anthony/StudioProjects/support"
relative: false
source: path
version: "5.10.1"
name: nylo_support
sha256: efc8458b50dde332fb98a6bb6aec7e06bbfeb3f279f868b570669732e5ef1b54
url: "https://pub.dev"
source: hosted
version: "5.12.0"
page_transition:
dependency: transitive
description:
Expand Down
2 changes: 2 additions & 0 deletions lib/metro/menu.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/// The [metroMenu] is displayed when running `dart run nylo_framework:main`
/// To run a command you can call `dart run nylo_framework:main make:model MyModel`
const String metroMenu = """
Metro - Nylo\'s Companion to Build Flutter apps by Anthony Gordon
Expand Down
3 changes: 3 additions & 0 deletions lib/metro/metro.dart
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,7 @@ _makeController(List<String> arguments) async {
forceCreate: hasForceFlag ?? false);
}

/// Creates a new Model
_makeModel(List<String> arguments) async {
parser.addFlag(helpFlag,
abbr: 'h',
Expand Down Expand Up @@ -725,12 +726,14 @@ _makeModel(List<String> arguments) async {
stubModel: stubModel, hasForceFlag: hasForceFlag);
}

/// Creates a new Model
_createNyloModel(ReCase classReCase,
{required String stubModel, bool? hasForceFlag}) async {
await MetroService.makeModel(classReCase.snakeCase, stubModel,
forceCreate: hasForceFlag ?? false, addToConfig: true);
}

/// Creates a new Page
_makePage(List<String> arguments) async {
parser.addFlag(
helpFlag,
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/api_service_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new API Service.
String apiServiceStub(ReCase rc,
{required ReCase model, required String baseUrl}) =>
'''
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/config_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Config.
String configStub(ReCase configName) => '''
/*
|--------------------------------------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/controller_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Controller.
String controllerStub({required ReCase controllerName}) => '''
import 'controller.dart';
import 'package:flutter/widgets.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/event_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Event.
String eventStub({required ReCase eventName}) => '''
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/model_stub.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/// This stub is used to create a new Model.
String modelStub({String? modelName}) => '''
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/page_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Page.
String pageStub({required ReCase pageName}) => '''
import 'package:flutter/material.dart';
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/page_w_controller_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Page + Controller.
String pageWithControllerStub({required ReCase className}) => '''
import 'package:flutter/material.dart';
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/postman_api_service_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create an API Service class in the /app/networking/ directory.
String postmanApiServiceStub(ReCase rc,
{required String networkMethods,
required,
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/provider_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a Provider class in the /app/providers/ directory.
String providerStub(ReCase rc) => '''
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/route_guard_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a Route Guard class in the /routes/guards/ directory.
String routeGuardStub(ReCase rc) => '''
import 'package:flutter/material.dart';
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/theme_colors_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create ColorStyles in the /resources/themes/styles/ directory.
String themeColorsStub(ReCase rc) => '''
import 'package:flutter/material.dart';
import '/resources/themes/styles/color_styles.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/theme_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a new Theme in the /resources/themes/ directory.
String themeStub(ReCase rc, {bool isDark = false}) => '''
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/widget_stateful_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a Stateful Widget in the /resources/widgets/ directory.
String widgetStatefulStub(ReCase rc) => '''
import 'package:flutter/material.dart';
import 'package:nylo_framework/nylo_framework.dart';
Expand Down
1 change: 1 addition & 0 deletions lib/metro/stubs/widget_stateless_stub.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:recase/recase.dart';

/// This stub is used to create a Stateless Widget in the /resources/widgets/ directory.
String widgetStatelessStub(ReCase rc) => '''
import 'package:flutter/material.dart';
Expand Down
2 changes: 1 addition & 1 deletion lib/nylo_framework.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ export 'package:nylo_support/widgets/ny_page.dart';
export 'package:dio/dio.dart';

/// Nylo version
const String nyloVersion = 'v5.5.0';
const String nyloVersion = 'v5.6.0';
9 changes: 5 additions & 4 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -232,10 +232,11 @@ packages:
nylo_support:
dependency: "direct main"
description:
path: "/Users/anthony/StudioProjects/support"
relative: false
source: path
version: "5.10.1"
name: nylo_support
sha256: efc8458b50dde332fb98a6bb6aec7e06bbfeb3f279f868b570669732e5ef1b54
url: "https://pub.dev"
source: hosted
version: "5.12.0"
page_transition:
dependency: "direct main"
description:
Expand Down
4 changes: 2 additions & 2 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: nylo_framework
description: Micro-framework for Flutter that's built to simplify app development for Flutter projects.
version: 5.5.0
version: 5.6.0
homepage: https://nylo.dev
repository: https://github.com/nylo-core/framework/tree/5.x
issue_tracker: https://github.com/nylo-core/framework/issues
Expand All @@ -17,7 +17,7 @@ environment:
dependencies:
dio: ^5.3.3
flutter_dotenv: ^5.1.0
nylo_support: ^5.11.0
nylo_support: ^5.12.0
theme_provider: ^0.6.0
page_transition: ^2.1.0
collection: ^1.17.1
Expand Down

0 comments on commit 1a37418

Please sign in to comment.