-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcli.php
67 lines (51 loc) · 1.71 KB
/
cli.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
/**
* This config file is used with VELOX commands. Here you can enable/disable the commands or change their arguments.
*/
return [
// This command starts a development server with the provided arguments.
'app-serve' => [
'enabled' => true,
'args' => [
'host' => 'localhost',
'port' => 8000,
'root' => '{global.paths.root}',
],
],
// This command clears the cache of the configuration and/or views.
'cache-clear' => [
'enabled' => true,
'args' => [
'config' => true,
'views' => true,
],
],
// This command caches the current configuration.
'config-cache' => [
'enabled' => true,
],
// This command dumps the current configuration with syntax highlighting.
'config-dump' => [
'enabled' => true,
'args' => [
'parse' => true,
],
],
// This command mirrors (symlinks/copies) the provided files/directories in {global.paths.public}.
'app-mirror' => [
'enabled' => true,
'args' => [
// Files/directories to link. Key is the link, value is the target.
// Providing no key will create the necessary directories to reflect the target path.
'link' => [
'{global.paths.root}/index.php',
'{theme.paths.assets}',
],
// Files/directories to copy. Key is the destination, value is the source.
// Providing no key will create the necessary directories to reflect the source path.
'copy' => [
'html' => '{global.paths.storage}/cache/views',
],
],
],
];