This repository has been archived by the owner on Oct 11, 2019. It is now read-only.
-
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.
by iamdroid: Added breakpoints. Updated Gulp.
- Loading branch information
Showing
22 changed files
with
8,803 additions
and
13,441 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Supported browsers | ||
|
||
> 1% |
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,61 @@ | ||
# Drupal theme watch/build with gulp | ||
# | ||
# get drupal version: | ||
# drush st --format=list drupal-version | ||
# | ||
# Drupal 8, get theme name: | ||
# drush cget system.theme default --format=string | ||
# | ||
# Drupal 8, get theme path: | ||
# drush dd $(drush cget system.theme default --format=string) | ||
# | ||
# Drupal 8, run gulp: | ||
# (cd $(drush dd $(drush cget system.theme default --format=string)) && gulp) | ||
# or: | ||
# gulp --cwd $(drush dd $(drush cget system.theme default --format=string)) | ||
# | ||
# Drupal 8, run gulp build: | ||
# (cd $(drush dd $(drush cget system.theme default --format=string)) && gulp build) | ||
# or: | ||
# gulp build --cwd $(drush dd $(drush cget system.theme default --format=string)) | ||
# | ||
# Drupal 7, get theme name: | ||
# drush vget theme_default --format=string | ||
# | ||
# Drupal 7, get theme path: | ||
# drush dd $(drush vget theme_default --format=string) | ||
# | ||
# Drupal 7, run gulp: | ||
# (cd $(drush dd $(drush vget theme_default --format=string)) && gulp) | ||
# or: | ||
# gulp --cwd $(drush dd $(drush vget theme_default --format=string)) | ||
# | ||
# Drupal 7, run gulp: | ||
# (cd $(drush dd $(drush vget theme_default --format=string)) && gulp build) | ||
# or: | ||
# gulp build --cwd $(drush dd $(drush vget theme_default --format=string)) | ||
# | ||
# Zsh function: | ||
|
||
function dtw() { | ||
v=$(drush st --format=list drupal-version) | ||
if [ ${v%%.*} -eq 8 ]; then | ||
gulp --cwd $(drush dd $(drush cget system.theme default --format=string)) | ||
elif [ ${v%%.*} -eq 7 ]; then | ||
gulp --cwd $(drush dd $(drush vget theme_default --format=string)) | ||
else | ||
echo "Unsupported Drupal version"; | ||
fi | ||
} | ||
|
||
function dtb() { | ||
v=$(drush st --format=list drupal-version) | ||
if [ ${v%%.*} -eq 8 ]; then | ||
gulp build --cwd $(drush dd $(drush cget system.theme default --format=string)) | ||
elif [ ${v%%.*} -eq 7 ]; then | ||
gulp build --cwd $(drush dd $(drush vget theme_default --format=string)) | ||
else | ||
echo "Unsupported Drupal version"; | ||
fi | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Oops, something went wrong.