Skip to content

Commit

Permalink
Merge pull request #151 from appwrite/feat-upgrade-twig
Browse files Browse the repository at this point in the history
Upgraded twig + stoped using absolute paths
  • Loading branch information
eldadfux authored Apr 10, 2021
2 parents fa66b2c + 62cf5f8 commit 3c4cbf3
Show file tree
Hide file tree
Showing 19 changed files with 208 additions and 203 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"ext-curl": "*",
"ext-mbstring": "*",
"ext-json": "*",
"twig/twig": "^2.12",
"twig/twig": "^2.14",
"matthiasmullie/minify": "^1.3"
},
"require-dev": {
Expand Down
65 changes: 35 additions & 30 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file removed examples/.gitkeep
Empty file.
42 changes: 21 additions & 21 deletions src/SDK/Language/CLI.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,128 +108,128 @@ public function getFiles()
[
'scope' => 'default',
'destination' => 'README.md',
'template' => '/cli/README.md.twig',
'template' => 'cli/README.md.twig',
'minify' => false,
//'block' => 'default',
],
[
'scope' => 'default',
'destination' => 'CHANGELOG.md',
'template' => '/cli/CHANGELOG.md.twig',
'template' => 'cli/CHANGELOG.md.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'LICENSE',
'template' => '/cli/LICENSE.md.twig',
'template' => 'cli/LICENSE.md.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'composer.json',
'template' => '/cli/composer.json.twig',
'template' => 'cli/composer.json.twig',
'minify' => false,
],
[
'scope' => 'method',
'destination' => 'docs/examples/{{service.name | caseLower}}/{{method.name | caseDash}}.md',
'template' => '/cli/docs/example.md.twig',
'template' => 'cli/docs/example.md.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'Dockerfile',
'template' => '/cli/Dockerfile.twig',
'template' => 'cli/Dockerfile.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'src/Client.php',
'template' => '/cli/src/Client.php.twig',
'template' => 'cli/src/Client.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'src/Parser.php',
'template' => '/cli/src/Parser.php.twig',
'template' => 'cli/src/Parser.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'src/Manipulators.php',
'template' => '/cli/src/Manipulators.php.twig',
'template' => 'cli/src/Manipulators.php.twig',
'minify' => false,
],
[
'scope' => 'service',
'destination' => '/bin/{{service.name}}',
'template' => '/cli/bin/service.twig',
'template' => 'cli/bin/service.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/bin/client',
'template' => '/cli/bin/client.twig',
'template' => 'cli/bin/client.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/bin/help',
'template' => '/cli/bin/help.twig',
'template' => 'cli/bin/help.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/bin/version',
'template' => '/cli/bin/version.twig',
'template' => 'cli/bin/version.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/bin/init',
'template' => '/cli/bin/init.twig',
'template' => 'cli/bin/init.twig',
'minify' => false,
],
[
'scope' => 'service',
'destination' => '/app/{{ spec.title | caseUcfirst}}/services/{{service.name | caseDash}}.php',
'template' => '/cli/app/services/service.php.twig',
'template' => 'cli/app/services/service.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/client.php',
'template' => '/cli/app/services/client.php.twig',
'template' => 'cli/app/services/client.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/help.php',
'template' => '/cli/app/services/help.php.twig',
'template' => 'cli/app/services/help.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => 'app/{{ spec.title | caseUcfirst}}/services/init.php',
'template' => '/cli/app/services/init.php.twig',
'template' => 'cli/app/services/init.php.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '.travis.yml',
'template' => '/cli/.travis.yml.twig',
'template' => 'cli/.travis.yml.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/install.sh',
'template' => '/cli/install.sh.twig',
'template' => 'cli/install.sh.twig',
'minify' => false,
],
[
'scope' => 'default',
'destination' => '/install.ps1',
'template' => '/cli/install.ps1.twig',
'template' => 'cli/install.ps1.twig',
'minify' => false,
],
];
Expand Down
Loading

0 comments on commit 3c4cbf3

Please sign in to comment.