-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from palantirnet/development-documentation
Add info on how to run the-build for development.
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. |