From 18e9c62479df41a997e57c8108b7e4c19987cf38 Mon Sep 17 00:00:00 2001 From: Dan Shumaker Date: Tue, 2 Mar 2021 10:17:33 -0500 Subject: [PATCH] ISSUE-33 Drupal Quickstart file name and syntax update. --- docs/getting-started/quickstart.md | 42 ++++++++++++++++-------------- 1 file changed, 22 insertions(+), 20 deletions(-) diff --git a/docs/getting-started/quickstart.md b/docs/getting-started/quickstart.md index 9f40643..5bb5ea0 100644 --- a/docs/getting-started/quickstart.md +++ b/docs/getting-started/quickstart.md @@ -21,14 +21,14 @@ Particle provides a Drupal 8 theme, the starting steps are slightly different: 1. [Download the latest release](https://github.com/phase2/particle/releases) 1. Extract to `themes/` at the root of your Drupal 8 install. (i.e. this readme should be at `{drupal-root}/themes/particle/README.md`) 1. Download and install the [Component Libraries module](https://www.drupal.org/project/components): - + ``` drush dl components drush en components -y ``` - + or - + ``` drupal module:install components ``` @@ -43,32 +43,34 @@ Particle provides a Drupal 8 theme, the starting steps are slightly different: This will compile all assets and provide all namespaced Twig paths to the Drupal theme. Make sure to choose this theme in Drupal Appearance settings and `drush cr ` or `drupal cr all` to clear cache. -For rapid, development-mode recompile and Drupal cache clear, edit `webpack.drupal.dev.js`, find the `onBuildEnd` plugin and edit it from: +For rapid, development-mode recompile and Drupal cache clear, edit `apps/drupal-default/webpack.config.js`, find the `RunScriptAfterEmit` plugin and edit it from: ```js // ORIGINAL -plugins: [ - new WebpackShellPlugin({ - onBuildEnd: [ - // CHANGE THE FOLLOWING LINE - 'echo \nWebpack drupal dev build complete! Edit apps/drupal/webpack.drupal.dev.js to replace this line with `drupal cr all` now.', - ], - dev: false, // Runs on EVERY rebuild - }), -], + plugins: [ + new RunScriptAfterEmit({ + exec: [ + // prettier-ignore + `echo \nšŸš€ Webpack Drupal ${NODE_ENV} build complete! Edit + apps/drupal-default/webpack.config.js to replace this line with + anything you'd like run after rebuilding assets, e.g. + 'drupal cr all'. šŸš€\n`, + ], + }), + ], ``` to: ```js // UPDATED -plugins: [ - new WebpackShellPlugin({ - onBuildEnd: [ - 'drupal cr all', - ], - dev: false, // Runs on EVERY rebuild - }), + plugins: [ + new RunScriptAfterEmit({ + exec: [ + 'drupal cr all', + ], + }), + ], ], ```