File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ # ====================#
4
+ # Altis Build Script #
5
+ # ====================#
6
+
7
+ # Install composer dependencies
8
+ composer install --no-dev
9
+
10
+ # Edit below this line to add any additional build steps.
11
+ #
12
+ # Available binaries:
13
+ # - php
14
+ # - composer
15
+ # - node
16
+ # - npm
17
+ # - git
Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ public function install_files() {
40
40
copy ( $ source . '/index.php ' , $ dest . '/index.php ' );
41
41
copy ( $ source . '/wp-config.php ' , $ dest . '/wp-config.php ' );
42
42
43
+ // Copy build script file if one doesn't exist.
44
+ if ( ! file_exists ( $ dest . '/.build-script ' ) ) {
45
+ copy ( $ source . '/.build-script ' , $ dest . '/.build-script ' );
46
+ }
47
+
43
48
// Update the .gitignore to include the wp-config.php, WordPress, the index.php
44
49
// as these files should not be included in VCS.
45
50
if ( ! file_exists ( $ dest . '/.gitignore ' ) ) {
You can’t perform that action at this time.
0 commit comments