Skip to content

Commit

Permalink
add generator
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskapp committed Nov 10, 2024
1 parent b14e364 commit 274c6e8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ VOLUME /usr/src/typeschema/output
COPY . /usr/src/typeschema
WORKDIR /usr/src/typeschema

RUN chmod +x /usr/src/typeschema/bin/generator

# run composer
RUN composer install

# run generation
CMD php bin/generate.php schema:parse "$SOURCE" output --format="$FORMAT" --config="namespace=$NAMESPACE"
CMD php bin/generator schema:parse "$SOURCE" output --format="$FORMAT" --config="namespace=$NAMESPACE"
1 change: 1 addition & 0 deletions bin/generate.php → bin/generator
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/usr/bin/env php
<?php

$loader = __DIR__ . '/../vendor/autoload.php';
Expand Down

0 comments on commit 274c6e8

Please sign in to comment.