Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Minor refactoring #6

Merged
merged 5 commits into from
Jan 26, 2024
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
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,9 @@ install:
cp -r templates/*.xctemplate "$(ROOT_DIR)"

uninstall:
rm -rf "$(ROOT_DIR)"/*.xctemplate
rm -rf "$(ROOT_DIR)"/Spec\ File\ for\ TCA.xctemplate
rm -rf "$(ROOT_DIR)"/TCA\ Service.xctemplate
rm -rf "$(ROOT_DIR)"/TCA\ Feature.xctemplate
rm -rf "$(ROOT_DIR)"/TCA\ with\ ReducerProtocol.xctemplate
rm -rf "$(ROOT_DIR)"/Swift\ Files\ for\ TCA.xctemplate

8 changes: 0 additions & 8 deletions Quick_knowhow.md → Quick_howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@
* Components
* Spec

## How to install

```sh
❯ git clone [email protected]:riiid/xctemplate-for-tca.git
❯ cd xctemplate-for-tca
❯ make
```

## Usage

1. Create a new group
Expand Down
13 changes: 11 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@

## List of templates

* [TCA feature](https://github.com/riiid/xctemplate-for-tca/blob/main/tca_knowhow.md)
* [Spec for TCA feature](https://github.com/riiid/xctemplate-for-tca/blob/main/Quick_knowhow.md)
* [TCA feature](https://github.com/riiid/xctemplate-for-tca/blob/main/tca_howto.md)
* [Spec for TCA feature](https://github.com/riiid/xctemplate-for-tca/blob/main/Quick_howto.md)
* TCA Service

[TCA]: https://github.com/pointfreeco/swift-composable-architecture

## How to install

```sh
❯ git clone [email protected]:riiid/xctemplate-for-tca.git
❯ cd xctemplate-for-tca
❯ make
```
10 changes: 1 addition & 9 deletions tca_knowhow.md → tca_howto.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,6 @@
* State
* View(with Store)

## How to install

```sh
❯ git clone [email protected]:riiid/xctemplate-for-tca.git
❯ cd xctemplate-for-tca
❯ make
```

## Usage

1. Create a new group
Expand All @@ -33,7 +25,7 @@

![image](https://user-images.githubusercontent.com/46320390/226542472-dc9a625c-ea71-4a20-bf52-82db3d46d7b0.png)

5. Set a core<sub>module</sub> name that you want
5. Set a feature name that you want
6. <kbd>Next</kbd>

![image](https://user-images.githubusercontent.com/46320390/226542550-5e26ab13-3533-4492-af34-d113aaa791f3.png)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,7 @@ import Quick

@testable import ___VARIABLE_productName:identifier___

typealias Test___VARIABLE_productName:identifier___Store = TestStore<
___VARIABLE_productName:identifier___.State,
___VARIABLE_productName:identifier___.Action,
___VARIABLE_productName:identifier___.State,
___VARIABLE_productName:identifier___.Action,
Void
>
typealias Test___VARIABLE_productName:identifier___Store = TestStoreOf<___VARIABLE_productName:identifier___>

final class ___FILEBASENAMEASIDENTIFIER___: QuickSpec {
private let scheduler: TestSchedulerOf<DispatchQueue> = DispatchQueue.test
Expand Down