Skip to content

Commit

Permalink
Merge pull request #6 from riiid/feature/makefile
Browse files Browse the repository at this point in the history
Minor refactoring
  • Loading branch information
tisohjung authored Jan 26, 2024
2 parents 323738b + 227c3d7 commit d129300
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 27 deletions.
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
File renamed without changes

0 comments on commit d129300

Please sign in to comment.