Skip to content

Commit

Permalink
chore: rename package, add documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
anwar907 committed Oct 26, 2023
1 parent 73aa854 commit 7930a13
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## 0.1.2 (2023-10-07)
## 0.1.3 (2023-10-07)

### Added

- Improve documentation and performance
- Add unit test generate file
- Rename package
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
Don't waste your time when creating your first project to set up your own architecture. This package will help you to improve your setup architecture
Don't waste your time when creating your first project to set up your own architecture. This package will help you to improve your setup architecture and if you have own architecture related please submit PR to this repo on github

## Example
```md
app/
┣ data/
┣ repository/
┣ modules/
┣ index.dart
core/
┣ index.dart
themes/
┣ index.dart
utils/
┣ index.dart
```

## Command usage

- hit `dart pub global activate init_folder_architecture` in your commandline
- hit `dart pub global activate init_architecture` in your commandline
- setup path environment in your local machine
- Inside folder `lib/` hit command ```init --init=app```

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env dart

import 'package:args/args.dart';
import 'package:init_folder_architecture/init_folder_architecture.dart';
import 'package:init_architecture/init_architecture.dart';

void main(List<String> arguments) {
final parser = ArgParser()..addOption('init', abbr: 'i', mandatory: true);
Expand Down
1 change: 0 additions & 1 deletion example/app/data/model.dart

This file was deleted.

1 change: 0 additions & 1 deletion example/app/modules/features.dart

This file was deleted.

1 change: 0 additions & 1 deletion example/app/repository/repository.dart

This file was deleted.

1 change: 0 additions & 1 deletion example/core/core.dart

This file was deleted.

1 change: 0 additions & 1 deletion example/themes/themes.dart

This file was deleted.

1 change: 0 additions & 1 deletion example/utils/utils.dart

This file was deleted.

2 changes: 1 addition & 1 deletion lib/directory.dart
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:init_folder_architecture/files.dart';
import 'package:init_architecture/files.dart';

// This function generates a folder with the given name if it doesn't already exist.
// It also creates three sub-folders inside the main folder: 'themes', 'core', and 'utils'.
Expand Down
File renamed without changes.
8 changes: 4 additions & 4 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: init_folder_architecture
name: init_architecture
description: >-
CLI utility will generate folder architecture to help you and save your time when creating the first Flutter project.
version: 0.1.2
homepage: https://github.com/anwar907/init_folder_architecture
version: 0.1.3
homepage: https://github.com/anwar907/init_architecture


environment:
Expand All @@ -17,4 +17,4 @@ dev_dependencies:
test: ^1.21.0

executables:
init: init_folder_architecture
init: init_architecture
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import 'dart:io';

import 'package:init_folder_architecture/files.dart';
import 'package:init_architecture/files.dart';
import 'package:test/test.dart';

void main() {
Expand Down

0 comments on commit 7930a13

Please sign in to comment.