Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Drupal 9
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Composer
project
Drupal 9
Commits
ddb91384
Commit
ddb91384
authored
4 years ago
by
jurgenhaas
Browse files
Options
Downloads
Patches
Plain Diff
Move readme to docs
parent
48f76ac2
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+0
-53
0 additions, 53 deletions
README.md
composer.json
+2
-1
2 additions, 1 deletion
composer.json
with
2 additions
and
54 deletions
README.md
deleted
100644 → 0
+
0
−
53
View file @
48f76ac2
# Usage
## Preparation
-
[
Install composer
](
https://getcomposer.org
)
:
`sudo wget https://getcomposer.org/composer.phar --output-document=/usr/local/bin/composer && sudo chmod +x /usr/local/bin/composer`
-
Disable XDebug for CLI - optional:
`sudo phpdismod -s cli xdebug`
-
[
Install Prestissimo
](
https://github.com/hirak/prestissimo
)
- optional:
`sudo composer global require "hirak/prestissimo:^0.3"`
## Create new project for local development
```
bash
composer create-project lakedrops/d9-project
[
DIRNAME]
--no-interaction
cd
[
DIRNAME]
```
This will build the full structure and create a git repository which you can then use during the full live-cycle of that project.
To install a new site with the included default configuration, use
`drush site-install --existing-config`
and you get a jump-start from that.
## Deploy project to upstream stages
For deployment, both initially and for later updates, follow this:
```
mkdir /PATH/TO/ROOT
cd /PATH/TO/ROOT
git clone YOUR-GIT-REPOSITORY .
composer install
```
## Adding new and updating existing components
Edit the composer.json file accodring to your requirements and then run
`composer update`
.
## Adding JS packages
### CKEditor Codesnippet
```
bash
composer config repositories.codesnippet
'{"type": "package","package": {"name": "ckeditorplugin/codesnippet","type": "drupal-library","version": "master","dist": {"type": "zip","url": "https://download.ckeditor.com/codesnippet/releases/codesnippet_4.7.3.zip","reference": "master"}}}'
composer require ckeditorplugin/codesnippet:master drupal/codesnippet
```
### Chosen
```
bash
composer config repositories.codesnippet
'{"type": "package","package": {"name": "harvesthq/chosen","version": "1.8.2","type": "drupal-library","dist": {"url": "https://github.com/harvesthq/chosen/releases/download/v1.8.2/chosen_v1.8.2.zip","type": "zip"}}}'
composer require harvesthq/chosen
```
# Links
[
Using Composer to install Drupal packages through Drupal.org
](
https://www.drupal.org/node/2718229
)
This diff is collapsed.
Click to expand it.
composer.json
+
2
−
1
View file @
ddb91384
...
...
@@ -26,7 +26,8 @@
],
"support"
:
{
"issues"
:
"https://gitlab.lakedrops.com/composer/project/drupal-9/issues"
,
"source"
:
"https://gitlab.lakedrops.com/composer/project/drupal-9/tree/master"
"source"
:
"https://gitlab.lakedrops.com/composer/project/drupal-9/tree/master"
,
"docs"
:
"https://devops-tools.docs.lakedrops.com/composer/project/d9/"
},
"repositories"
:
[
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment