forked from LastCallMedia/Drupal-Scaffold
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.mannequin.php
34 lines (29 loc) · 894 Bytes
/
.mannequin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
use Symfony\Component\Finder\Finder;
use LastCall\Mannequin\Drupal\DrupalExtension;
use LastCall\Mannequin\Core\MannequinConfig;
$templateFinder = Finder::create()
->in([__DIR__.'/web/themes/custom/*/templates'])
->files()
->name('*.html.twig');
$drupalExtension = new DrupalExtension([
'finder' => $templateFinder,
'drupal_root' => __DIR__.'/web',
'twig_options' => [
'auto_reload' => TRUE,
]
]);
$config = MannequinConfig::create()
->addExtension($drupalExtension)
->setGlobalCss([
'web/themes/custom/scaffold/dist/css/style.css',
])
->setGlobalJs([
'web/core/assets/vendor/jquery/jquery.min.js',
'web/core/assets/vendor/domready/ready.min.js',
'web/core/misc/drupal.js',
'web/core/misc/drupal.init.js',
'web/themes/custom/scaffold/dist/js/libs.min.js',
'web/themes/custom/scaffold/dist/js/theme.min.js',
]);
return $config;