drucker Cheat Sheet

A Software › Drupal cheat sheet in English by jean-philippe.blary

Drucker cheatsheet

6,695 views 1,793 downloads 13 Feb 2018 History
3.7 avg · 0 ratings

Getting started

# Clone the app
$ git clone <url of the project>
$ cd <name of the project>
# Initialize the Drucker Git submodule
$ git submodule init
$ git submodule update
# Install all the dependencies
$ cd drucker
$ source load-env
$ drucker install
# Run the stack
$ drucker start

Drucker commands

drucker init
Fresh install of Drupal
drucker install
Install all deps
drucker start|stop
Start/Stop the stack
drucker logs|dblog
Show the logs
drucker sql-backup
Backup the SQL DB
drucker sql-re­store
Restore a SQL backup
drush
Launch Drush
composer
Launch Composer
node, npm, yarn, gulp
Launch Node & utilities

Config workflow

For a successful config workflow, follow this:
1. drush cex : export your config
2. commit your changes
3. pull/merge from the remote
4. drush cim : import the brand new config
5. push

Commit convention

feat
A new feature
fix
A bug fix
docs
Docume­ntation only changes
style
Changes that do not affect the meaning of the code (white­-space, format­ting, missing semi-c­olons, etc)
refactor
A code change that neither fixes a bug nor adds a feature
perf
A code change that improves perfor­mance
test
Adding missing tests or correcting existing tests
build
Changes that affect the build system or external depend­encies
ci
Changes to our CI config­uration files and scripts
chore
Other changes that don't modify src or test files
revert
Reverts a previous commit
<ty­pe>­(<s­cop­e>): <su­bje­ct>
<BLANK LINE>
<bo­dy>
<BLANK LINE>
<fo­ote­r>

More infos.: https:­//g­ist.gi­thu­b.c­om/­ste­phe­npa­ris­h/9­941­e89­d80­e2b­c58a153

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.