Skip to content

Commit 05c6bbc

Browse files
committed
add default build script
1 parent dee19ae commit 05c6bbc

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.build-script

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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

inc/composer/class-plugin.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ public function install_files() {
4040
copy( $source . '/index.php', $dest . '/index.php' );
4141
copy( $source . '/wp-config.php', $dest . '/wp-config.php' );
4242

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+
4348
// Update the .gitignore to include the wp-config.php, WordPress, the index.php
4449
// as these files should not be included in VCS.
4550
if ( ! file_exists( $dest . '/.gitignore' ) ) {

0 commit comments

Comments
 (0)