Skip to content

Commit

Permalink
Merge pull request #118 from palantirnet/development-documentation
Browse files Browse the repository at this point in the history
Add info on how to run the-build for development.
  • Loading branch information
jesconstantine authored Dec 4, 2018
2 parents f61745b + 6870f67 commit e1648f8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ Configure your build by editing `.the-build/build.default.properties.yml`. You c
* [Building an artifact](docs/artifacts.md)
* [Using Drupal multisites](docs/drupal_multisite.md)
* [Custom tasks provided by the-build](docs/tasks.md)
* [Developing on the-build](docs/development.md)

----
Copyright 2016, 2017, 2018 Palantir.net, Inc.
31 changes: 31 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Developing on the-build

To develop and test changes to the-build, you'll generally need to have a Drupal codebase to run the-build on.

1. Choose a site to test against
2. Check out the-build as a git repository into the site's `vendor/` directory
3. Make, commit, and push your changes from within `vendor/palantirnet/the-build/`

The major thing to watch out for here is that your copy of the-build is temporary -- in certain cases (especially when switching branches) when you run composer commands, your repo may be replaced with a different version.

## Testing on an existing site

You can clone the-build into the vendor directory of an existing site. If it doesn't have a version of the-build already installed, you'll need to require it with `composer require palantirnet/the-build:dev-release-2.0 --prefer-source --dev` first.

```
cd my-site
composer require palantirnet/the-build:dev-release-2.0 --prefer-source --dev
```

At this point, `vendor/palantirnet/the-build` should be a clone of `[email protected]:palantirnet/the-build.git`.

## Creating a new site for testing

Follow the [Quick Start guide for palantirnet/drupal-skeleton](https://github.com/palantirnet/drupal-skeleton#quick-start). Before installing the-build in step 3, update the required version of the-build:

```
composer require palantirnet/the-build:dev-release-2.0 --prefer-source
```

----
Copyright 2018 Palantir.net, Inc.

0 comments on commit e1648f8

Please sign in to comment.