Skip to content

Commit f8e0042

Browse files
authored
Generate mixin after composer install/update (#77)
1 parent 32c6d34 commit f8e0042

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

composer.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,16 @@
4444
"Xefi\\Faker\\FakerServiceProvider"
4545
]
4646
}
47+
},
48+
"scripts": {
49+
"post-install-cmd": [
50+
"composer run generate-mixin"
51+
],
52+
"post-update-cmd": [
53+
"composer run generate-mixin"
54+
],
55+
"generate-mixin": [
56+
"php -r 'require \"vendor/autoload.php\"; (new Xefi\\Faker\\Container\\Container());'"
57+
]
4758
}
4859
}

0 commit comments

Comments
 (0)