From 66f1c3450134a18a58971ba0361c315f6dfcac07 Mon Sep 17 00:00:00 2001 From: Jeff Geerling Date: Thu, 20 Sep 2018 11:43:57 -0500 Subject: [PATCH] Fixes #3118: Update theme path to more standardized D8 defaults. --- config/build.yml | 6 +++--- docs/frontend.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/config/build.yml b/config/build.yml index 42497aed2..a79d6eac4 100644 --- a/config/build.yml +++ b/config/build.yml @@ -164,18 +164,18 @@ sync: command-hooks: # Executed when front end dependencies should be installed. frontend-reqs: - # E.g., ${docroot}/sites/all/themes/custom/mytheme. + # E.g., ${docroot}/themes/custom/mytheme dir: ${docroot} # E.g., '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 4.4.4 && npm install' command: null # Executed when front end assets should be generated. frontend-assets: - # E.g., ${docroot}/sites/all/themes/custom/mytheme. + # E.g., ${docroot}/themes/custom/mytheme dir: ${docroot} # E.g., '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 4.4.4 && npm build' command: null frontend-test: - # E.g., ${docroot}/sites/all/themes/custom/mytheme. + # E.g., ${docroot}/themes/custom/mytheme dir: ${docroot} # E.g., `npm test`. command: null diff --git a/docs/frontend.md b/docs/frontend.md index 4b83c514e..b800430a5 100644 --- a/docs/frontend.md +++ b/docs/frontend.md @@ -22,7 +22,7 @@ During the execution of `blt setup`, BLT will execute `command-hooks.frontend-re command-hooks: frontend-reqs: - dir: ${docroot}/sites/all/themes/custom/mytheme. + dir: ${docroot}/themes/custom/mytheme command: '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 4.4.4 && npm install' If you are using a sub theme of Cog, executing `npm install` in your theme directory (as exemplified above) will install all dependencies listed in [package.json](https://github.com/acquia-pso/cog/blob/8.x-1.x/STARTERKIT/package.json). @@ -33,7 +33,7 @@ During the execution of `blt setup` and `blt artifact:deploy`, BLT will execute command-hooks: frontend-assets: - dir: ${docroot}/sites/all/themes/custom/mytheme. + dir: ${docroot}/themes/custom/mytheme command: '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 4.4.4 && npm run build' If you are using a sub theme of Cog, executing `npm run build` in your theme directory (as exemplified above) will execute the command defined in `scripts.build` in [package.json](https://github.com/acquia-pso/cog/blob/8.x-1.x/STARTERKIT/package.json#L51). @@ -44,7 +44,7 @@ During the execution of `blt tests`, BLT will execute `command-hooks.frontend-te command-hooks: frontend-test: - dir: ${docroot}/sites/all/themes/custom/mytheme. + dir: ${docroot}/themes/custom/mytheme command: '[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" && nvm use 4.4.4 && npm test' If you are using a sub theme of Cog, executing `npm test` in your theme directory (as exemplified above) will execute the command defined in `scripts.test` in [package.json](https://github.com/acquia-pso/cog/blob/8.x-1.x/STARTERKIT/package.json).