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

TDDD #13

Open
mfham opened this issue Apr 14, 2018 · 2 comments
Open

TDDD #13

mfham opened this issue Apr 14, 2018 · 2 comments

Comments

@mfham
Copy link
Owner

mfham commented Apr 14, 2018

No description provided.

@mfham
Copy link
Owner Author

mfham commented Apr 14, 2018

$ composer create-project --prefer-dist laravel/laravel TDDD
$ cd TDDD
$ composer require pragmarx/tddd

antonioribeiro/tddd#66
のエラーが出る。
たぶん原因は
https://github.com/antonioribeiro/tddd/blob/master/composer.json#L28
のバージョン。

Forkしてそれを使うようにしてみる。
https://stackoverflow.com/questions/13498519/how-to-require-a-fork-with-composer
https://qiita.com/mokemokechicken/items/d3a3944bfa999c2582b7
https://www.pupha.net/archives/3138/

対応

Forkする。
https://github.com/mfham/tddd

バージョン指定を変更する。(ブランチはmaster)
mfham/tddd@cc4d9cf

composer.jsonに追記する。

[mfham@localhost TDDD]$ diff -u composer.json_old composer.json
--- composer.json_old   2018-04-15 02:29:15.823715479 +0900
+++ composer.json       2018-04-15 02:40:03.607704015 +0900
@@ -8,7 +8,8 @@
         "php": "^7.1.3",
         "fideloper/proxy": "^4.0",
         "laravel/framework": "5.6.*",
-        "laravel/tinker": "^1.0"
+        "laravel/tinker": "^1.0",
+        "pragmarx/tddd": "dev-master"
     },
     "require-dev": {
         "filp/whoops": "^2.0",
@@ -55,5 +56,11 @@
         "optimize-autoloader": true
     },
     "minimum-stability": "dev",
-    "prefer-stable": true
+    "prefer-stable": true,
+    "repositories": [
+        {
+            "type": "vcs",
+            "url": "https://github.com/mfham/tddd"
+        }
+    ]
 }

@mfham
Copy link
Owner Author

mfham commented Apr 15, 2018

https://qiita.com/keitakn/items/37f0fac49442b72c403e
https://github.com/hirak/prestissimo

$ composer global require hirak/prestissimo
$ composer config -g repos.packagist composer https://packagist.jp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant