Rename build to dist

This commit is contained in:
Oliver Davies 2018-09-04 19:46:58 +01:00
parent 769c4c54bd
commit 036a795cc7
27 changed files with 52 additions and 52 deletions

2
.gitignore vendored
View file

@ -1,5 +1,5 @@
/mix-manifest.json /mix-manifest.json
/node_modules/ /node_modules/
/output_*/ /output_*/
/source/build/ /source/dist/
/vendor/ /vendor/

View file

@ -13,12 +13,12 @@ availability:
full: no full: no
avatar: avatar:
url: /build/images/me-precedent.jpg url: /dist/images/me-precedent.jpg
email: oliver+url@oliverdavies.uk email: oliver+url@oliverdavies.uk
favicon: favicon:
url: /build/images/me-phpnw.png url: /dist/images/me-phpnw.png
irc: irc:
name: opdavies name: opdavies

View file

@ -19,7 +19,7 @@
{% include 'og' with { og: page.meta.og } %} {% include 'og' with { og: page.meta.og } %}
<link rel="stylesheet" href="/build/css/site.css"> <link rel="stylesheet" href="/dist/css/site.css">
{% block stylesheets %}{% endblock %} {% block stylesheets %}{% endblock %}
{% for size in site.apple_touch_icon_sizes %} {% for size in site.apple_touch_icon_sizes %}
@ -48,7 +48,7 @@
<script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script> <script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
{% endif %} {% endif %}
<script src="/build/js/all.js"></script> <script src="/dist/js/all.js"></script>
{% block scripts %}{% endblock %} {% block scripts %}{% endblock %}
</body> </body>
</html> </html>

View file

@ -1,26 +1,26 @@
<div class="flex items-center md:block text-center"> <div class="flex items-center md:block text-center">
<div class="widget w-1/2 md:w-full"> <div class="widget w-1/2 md:w-full">
<a href="https://assoc.drupal.org/membership" title="Im a Drupal Association member." class="block mb-4 px-4 md:px-0 lg:w-3/4 lg:mx-auto"> <a href="https://assoc.drupal.org/membership" title="Im a Drupal Association member." class="block mb-4 px-4 md:px-0 lg:w-3/4 lg:mx-auto">
<img src="{{ site.images_url }}/build/images/badges/da-individual-member.png" alt="Drupal Association Individual Member"/> <img src="{{ site.images_url }}/dist/images/badges/da-individual-member.png" alt="Drupal Association Individual Member"/>
</a> </a>
</div> </div>
<div class="widget w-1/2 md:w-full"> <div class="widget w-1/2 md:w-full">
<div class="mb-4 flex flex-wrap"> <div class="mb-4 flex flex-wrap">
<div class="w-full lg:w-1/2 leading-none px-4 md:px-0"> <div class="w-full lg:w-1/2 leading-none px-4 md:px-0">
<img src="{{ site.images_url }}/build/images/badges/acquia-d8-grand-master.png" alt="Acquia Certified Grand Master - Drupal 8 Exam Badge" /> <img src="{{ site.images_url }}/dist/images/badges/acquia-d8-grand-master.png" alt="Acquia Certified Grand Master - Drupal 8 Exam Badge" />
</div> </div>
<div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block"> <div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block">
<img src="{{ site.images_url }}/build/images/badges/acquia-d8-developer.png" alt="Acquia Certified Developer - Drupal 8 Exam Badge" /> <img src="{{ site.images_url }}/dist/images/badges/acquia-d8-developer.png" alt="Acquia Certified Developer - Drupal 8 Exam Badge" />
</div> </div>
<div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block"> <div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block">
<img src="{{ site.images_url }}/build/images/badges/acquia-d8-back-end.png" alt="Acquia Certified Back End Specialist - Drupal 8 Exam Badge" /> <img src="{{ site.images_url }}/dist/images/badges/acquia-d8-back-end.png" alt="Acquia Certified Back End Specialist - Drupal 8 Exam Badge" />
</div> </div>
<div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block"> <div class="w-full lg:w-1/2 leading-none px-4 md:px-0 hidden lg:block">
<img src="{{ site.images_url }}/build/images/badges/acquia-d8-front-end.png" alt="Acquia Certified Front End Specialist - Drupal 8 Exam Badge" /> <img src="{{ site.images_url }}/dist/images/badges/acquia-d8-front-end.png" alt="Acquia Certified Front End Specialist - Drupal 8 Exam Badge" />
</div> </div>
</div> </div>
</div> </div>

View file

@ -2,7 +2,7 @@
<a href="{{ url }}"> <a href="{{ url }}">
<img <img
class="h-16" class="h-16"
src="/build/images/meetups/{{ logo }}" src="/dist/images/meetups/{{ logo }}"
title="{{ name }}" title="{{ name }}"
alt="{{ name }} logo" alt="{{ name }} logo"
> >

View file

@ -14,7 +14,7 @@ For the past few weeks Ive been working on a personal side project, based on
{% endblock %} {% endblock %}
{% block content %} {% block content %}
![](/build/images/blog/drupalvm-generate-repo.png) ![](/dist/images/blog/drupalvm-generate-repo.png)
## What is Drupal VM? ## What is Drupal VM?
@ -38,7 +38,7 @@ Based on the options passed to it and/or answers that you provide, it generates
Heres an example of it in action: Heres an example of it in action:
!['An animated gif showing the interaction process and the resulting config.yml file'](/build/images/blog/drupalvm-generate-example-2.gif) !['An animated gif showing the interaction process and the resulting config.yml file'](/dist/images/blog/drupalvm-generate-example-2.gif)
You can also define options when calling the command and skip any or all questions. Running the following would bypass all of the questions and create a new file with no interaction or additional steps. You can also define options when calling the command and skip any or all questions. Running the following would bypass all of the questions and create a new file with no interaction or additional steps.

View file

@ -32,7 +32,7 @@ As we dont need any write access back to the repo, using the HTTP URL rather
Also, as I knew that Id be working a lot with feature branches, I entered `*/master` as the only branch to build. This meant that pushing changes or making edits on any other branches would not trigger a build. Also, as I knew that Id be working a lot with feature branches, I entered `*/master` as the only branch to build. This meant that pushing changes or making edits on any other branches would not trigger a build.
![Defining the Git repository in Jenkins](/build/images/blog/oliverdavies-uk-jenkins-git-repo.png) ![Defining the Git repository in Jenkins](/dist/images/blog/oliverdavies-uk-jenkins-git-repo.png)
I also checked the **Poll SCM** option so that Jenkins would be routinely checking for updated code. This essentially uses the same syntax as cron, specifying minutes, hours etc. I entered `* * * * *` so that Jenkins would poll each minute, knowing that I could make this less frequent if needed. I also checked the **Poll SCM** option so that Jenkins would be routinely checking for updated code. This essentially uses the same syntax as cron, specifying minutes, hours etc. I entered `* * * * *` so that Jenkins would poll each minute, knowing that I could make this less frequent if needed.
@ -92,7 +92,7 @@ After originally thinking that I'd have to split the build steps into a separate
I set this to `@daily` (the same `H H * * *` - `H` is a Jenkins thing), so that the build would be triggered automatically each day without a commit, and deploy any updates to the site. I set this to `@daily` (the same `H H * * *` - `H` is a Jenkins thing), so that the build would be triggered automatically each day without a commit, and deploy any updates to the site.
![Setting Jenkins to periodically build a new version of the site.](/build/images/blog/oliverdavies-uk-jenkins-git-timer.png) ![Setting Jenkins to periodically build a new version of the site.](/dist/images/blog/oliverdavies-uk-jenkins-git-timer.png)
## Next Steps ## Next Steps

View file

@ -59,7 +59,7 @@ touch .docksal/commands/phpunit
This will create a new, empty `.docksal/commands/phpunit` file, and now the `phpunit` command is now listed under "Custom commands" when we run `fin`. This will create a new, empty `.docksal/commands/phpunit` file, and now the `phpunit` command is now listed under "Custom commands" when we run `fin`.
![](/build/images/blog/docksal-phpunit-command/1.gif) ![](/dist/images/blog/docksal-phpunit-command/1.gif)
You can write commands with any interpreter. Im going to use bash, so Ill add the shebang to the top of the file. You can write commands with any interpreter. Im going to use bash, so Ill add the shebang to the top of the file.
@ -84,7 +84,7 @@ fin interprets lines starting with `##` as documentation - the first of which it
Now when I run it, I see the new description. Now when I run it, I see the new description.
![](/build/images/blog/docksal-phpunit-command/2.gif) ![](/dist/images/blog/docksal-phpunit-command/2.gif)
Any additional lines are used as help text with running `fin help phpunit`. Here Ill add an example command to demonstrate how to run it as well as some more in-depth text about what the command will do. Any additional lines are used as help text with running `fin help phpunit`. Here Ill add an example command to demonstrate how to run it as well as some more in-depth text about what the command will do.
@ -101,7 +101,7 @@ Any additional lines are used as help text with running `fin help phpunit`. Here
Now when I run `fin help phpunit`, I see the new help text. Now when I run `fin help phpunit`, I see the new help text.
![](/build/images/blog/docksal-phpunit-command/3.gif) ![](/dist/images/blog/docksal-phpunit-command/3.gif)
## Adding some content ## Adding some content

View file

@ -13,7 +13,7 @@ meta:
description: 'Its with heavy hearts that we are announcing there wont be a DrupalCamp Bristol 2018.' description: 'Its with heavy hearts that we are announcing there wont be a DrupalCamp Bristol 2018.'
type: website type: website
image: image:
url: /build/images/blog/drupalcamp-bristol-17-logo.jpg url: /dist/images/blog/drupalcamp-bristol-17-logo.jpg
width: 228 width: 228
height: 448 height: 448
type: image/img type: image/img

View file

@ -17,7 +17,7 @@ meta:
slug: drupalcamp-bristol-early-bird-tickets-sessions-sponsors slug: drupalcamp-bristol-early-bird-tickets-sessions-sponsors
--- ---
{% block excerpt %} {% block excerpt %}
<p class="text-center" markdown="1">![DrupalCamp Bristol 2017 logo](/build/images/blog/drupalcamp-bristol-17-logo.jpg)</p> <p class="text-center" markdown="1">![DrupalCamp Bristol 2017 logo](/dist/images/blog/drupalcamp-bristol-17-logo.jpg)</p>
In less than two months time, [DrupalCamp Bristol][0] will be back for our third year! (July seems to come around quicker each year). This is this years schedule and venues: In less than two months time, [DrupalCamp Bristol][0] will be back for our third year! (July seems to come around quicker each year). This is this years schedule and venues:
{% endblock %} {% endblock %}

View file

@ -32,7 +32,7 @@ This differs slightly different for each Drupal user, and the code can be found
If this is added to the end of the commit message, the resulting commit will show that it was committed by the maintainer but authored by a different user. This will then display on Drupal.org that youve made a commit to that project. If this is added to the end of the commit message, the resulting commit will show that it was committed by the maintainer but authored by a different user. This will then display on Drupal.org that youve made a commit to that project.
![A screenshot of a commit that was authored by rli but committed by opdavies](/build/images/blog/git-format-patch.png) ![A screenshot of a commit that was authored by rli but committed by opdavies](/dist/images/blog/git-format-patch.png)
The problem is that some project maintainers either dont know about this option or occasionally forget to add it. [Dreditor](http://dreditor.org) can suggest a commit message and assign an author, but it is optional and, of course, not all maintainers use Dreditor (although they probably should). The problem is that some project maintainers either dont know about this option or occasionally forget to add it. [Dreditor](http://dreditor.org) can suggest a commit message and assign an author, but it is optional and, of course, not all maintainers use Dreditor (although they probably should).

View file

@ -18,5 +18,5 @@ To increase the quality of your images, change the setting in the two following
* admin/settings/imageapi/config * admin/settings/imageapi/config
* admin/settings/image-toolkit * admin/settings/image-toolkit
The first one is for ImageAPI. Primarily, this means Imagecache presets. The second one is for core's image.inc. This is used for resizing profile pictures in core, and some contrib modules. Once changed, I did have to flush each of the Imagecache presets (admin/build/imagecache) for the changes to take effect. The first one is for ImageAPI. Primarily, this means Imagecache presets. The second one is for core's image.inc. This is used for resizing profile pictures in core, and some contrib modules. Once changed, I did have to flush each of the Imagecache presets (admin/dist/imagecache) for the changes to take effect.
{% endblock %} {% endblock %}

View file

@ -6,7 +6,7 @@ tags:
- php - php
--- ---
{% block excerpt %} {% block excerpt %}
<p class="text-center" markdown="1">![](/build/images/blog/drupal-meetups-twitterbot.png)</p> <p class="text-center" markdown="1">![](/dist/images/blog/drupal-meetups-twitterbot.png)</p>
The [Drupal Meetups Twitterbot][0] is a small project that I worked on a few months ago, but hadn't got around to promoting yet. Its intention is to provide [one Twitter account][1] where people can get the up to date news from various Drupal meetups. The [Drupal Meetups Twitterbot][0] is a small project that I worked on a few months ago, but hadn't got around to promoting yet. Its intention is to provide [one Twitter account][1] where people can get the up to date news from various Drupal meetups.
{% endblock %} {% endblock %}

View file

@ -68,7 +68,7 @@ dependencies[] = system (>=7.36)
Because we need to check for Drupal's core version, we're using the system module as the dependency and specifying that it needs to be either equal to or greater than 7.36. If this dependency is not met, e.g. Drupal 7.35 is being used, then the module cannot be enabled rather than showing a function not found error for `user_has_role()` when it is called. Because we need to check for Drupal's core version, we're using the system module as the dependency and specifying that it needs to be either equal to or greater than 7.36. If this dependency is not met, e.g. Drupal 7.35 is being used, then the module cannot be enabled rather than showing a function not found error for `user_has_role()` when it is called.
![A screenshot of the modules page showing System as a dependency for a custom module.](/build/images/blog/minimum-drupal-version-d7.png) ![A screenshot of the modules page showing System as a dependency for a custom module.](/dist/images/blog/minimum-drupal-version-d7.png)
## External Links ## External Links

View file

@ -41,7 +41,7 @@ return 301 https://www.example.com$uri$is_args$args;
Here is an demo of it working on this website: Here is an demo of it working on this website:
![](/build/images/blog/nginx-redirect-with-args.gif) ![](/dist/images/blog/nginx-redirect-with-args.gif)
## Resources ## Resources

View file

@ -6,13 +6,13 @@ meta:
description: 'How I moved my Sculpin site to GitHub Pages.' description: 'How I moved my Sculpin site to GitHub Pages.'
og: og:
image: image:
url: '/build/images/blog/jackson-octocat.png' url: '/dist/images/blog/jackson-octocat.png'
type: 'image/png' type: 'image/png'
height: 200 height: 200
width: 451 width: 451
--- ---
{% block excerpt %} {% block excerpt %}
<p class="text-center" markdown="1">![](/build/images/blog/jackson-octocat.png)</p> <p class="text-center" markdown="1">![](/dist/images/blog/jackson-octocat.png)</p>
Earlier this week I moved this site from my personal Linode server to [GitHub Pages][0]. Earlier this week I moved this site from my personal Linode server to [GitHub Pages][0].
@ -25,7 +25,7 @@ Ive seen different implementations of this, mostly where the Sculpin code is
This has been made simpler and tidier now that we can use a `docs` directory within the repository to serve content. This has been made simpler and tidier now that we can use a `docs` directory within the repository to serve content.
<img <img
src="/build/images/blog/github-pages.png" src="/dist/images/blog/github-pages.png"
alt="" alt=""
class="is-centered" class="is-centered"
style="margin-top: 20px; margin-bottom: 20px" style="margin-top: 20px; margin-bottom: 20px"

View file

@ -39,7 +39,7 @@ $queuer->queue($recipients, $message, $owner);
These three pieces of data are then saved as part of the queued item. You can see these by checking the "queue" table in the database or by running `drush queue-list`. These three pieces of data are then saved as part of the queued item. You can see these by checking the "queue" table in the database or by running `drush queue-list`.
![](/build/images/blog/private-message-queue.png) ![](/dist/images/blog/private-message-queue.png)
``` ```
$ drush queue-list $ drush queue-list

View file

@ -113,7 +113,7 @@ In this case, the new branch will be `8.x-1.x`.
Here is a screenshot of example module that Ive split and pushed to GitLab. Notice that there are multiple commits in the history, and each still attributed to its original author. Here is a screenshot of example module that Ive split and pushed to GitLab. Notice that there are multiple commits in the history, and each still attributed to its original author.
![Screenshot of a split project repo on GitLab](/build/images/blog/subtree-split-drupal-module.png) ![Screenshot of a split project repo on GitLab](/dist/images/blog/subtree-split-drupal-module.png)
Also, as this is standard Git functionality, you can follow the same process to extract PHP libraries, Symfony bundles, WordPress plugins or anything else. Also, as this is standard Git functionality, you can follow the same process to extract PHP libraries, Symfony bundles, WordPress plugins or anything else.
{% endblock %} {% endblock %}

View file

@ -10,13 +10,13 @@ meta:
description: "How to write tests and follow TDD for Drupal applications." description: "How to write tests and follow TDD for Drupal applications."
type: website type: website
image: image:
url: /build/images/talks/test-driven-drupal-development.png url: /dist/images/talks/test-driven-drupal-development.png
width: 2560 width: 2560
height: 1440 height: 1440
type: image/png type: image/png
--- ---
{% block excerpt %} {% block excerpt %}
<p class="text-center" markdown="1">![](/build/images/blog/drupalcamp-dublin.jpg)</p> <p class="text-center" markdown="1">![](/dist/images/blog/drupalcamp-dublin.jpg)</p>
I recently gave a [talk on automated testing in Drupal][0] talk at [DrupalCamp Dublin][1] and as a lunch and learn session for my colleagues at Microserve. As part of the talk, I gave an example of how to build a Drupal 8 module using a test driven approach. Ive released the [module code on GitHub][2], and this post outlines the steps of the process. I recently gave a [talk on automated testing in Drupal][0] talk at [DrupalCamp Dublin][1] and as a lunch and learn session for my colleagues at Microserve. As part of the talk, I gave an example of how to build a Drupal 8 module using a test driven approach. Ive released the [module code on GitHub][2], and this post outlines the steps of the process.
{% endblock %} {% endblock %}
@ -119,11 +119,11 @@ Now we can make it pass by adding the page. For this, I will use the Views modul
To begin with, I will create a view showing all types of content with a default sort order of newest first. We will use further tests to ensure that only the correct content is returned and that it is ordered correctly. To begin with, I will create a view showing all types of content with a default sort order of newest first. We will use further tests to ensure that only the correct content is returned and that it is ordered correctly.
![](/build/images/blog/tdd-drupal-1.png) { .with-border } ![](/dist/images/blog/tdd-drupal-1.png) { .with-border }
The only addition I will make to the view is to add a path at `pages`, as per the acceptance criteria. The only addition I will make to the view is to add a path at `pages`, as per the acceptance criteria.
![](/build/images/blog/tdd-drupal-2.png) { .with-border } ![](/dist/images/blog/tdd-drupal-2.png) { .with-border }
### Exporting the View ### Exporting the View
@ -458,7 +458,7 @@ Tests: 1, Assertions: 3, Failures: 1.
We can fix this by adding another condition to the view, to only show content based on the node type - i.e. only return page nodes. We can fix this by adding another condition to the view, to only show content based on the node type - i.e. only return page nodes.
![](/build/images/blog/tdd-drupal-3.png) { .with-border } ![](/dist/images/blog/tdd-drupal-3.png) { .with-border }
Once the view is updated and the configuration is updated within the module, the test should then pass - and it does. Once the view is updated and the configuration is updated within the module, the test should then pass - and it does.
@ -547,7 +547,7 @@ Tests: 1, Assertions: 2, Failures: 1.
This can be fixed by removing the default sort criteria and adding a new one based on "Content: Title". This can be fixed by removing the default sort criteria and adding a new one based on "Content: Title".
![](/build/images/blog/tdd-drupal-4.png) { .with-border } ![](/dist/images/blog/tdd-drupal-4.png) { .with-border }
Again, once the view has been updated and exported, the test should pass - and it does. Again, once the view has been updated and exported, the test should pass - and it does.

View file

@ -26,7 +26,7 @@ features[features_api][] = api:2
After clearing the cache, the module is now visible in the Features list - and ready to have the appropriate configuration added to it. After clearing the cache, the module is now visible in the Features list - and ready to have the appropriate configuration added to it.
!['The features list showing the custom module'](/build/images/blog/custom-module-as-a-feature.png) !['The features list showing the custom module'](/dist/images/blog/custom-module-as-a-feature.png)
{% endblock %} {% endblock %}
[0]: https://www.drupal.org/project/features [0]: https://www.drupal.org/project/features

View file

@ -16,6 +16,6 @@ Under 'Kit Settings', ensure that your website domain (e.g. mysite.com) is liste
Download and install the [@font-your-face](http://drupal.org/project/fontyourface) module onto your Drupal site, and to go admin/settings/fontyourface to configure it. Enter [your TypeKit API key](https://typekit.com/account/tokens), and click 'Import Typekit' to import your kits and fonts. Download and install the [@font-your-face](http://drupal.org/project/fontyourface) module onto your Drupal site, and to go admin/settings/fontyourface to configure it. Enter [your TypeKit API key](https://typekit.com/account/tokens), and click 'Import Typekit' to import your kits and fonts.
Go to admin/build/themes/fontyourface, and click 'Browse fonts to enable'. Click on the name of the font that you want to enable, check 'Enabled', and click 'Edit font' to save your changes. Go to admin/dist/themes/fontyourface, and click 'Browse fonts to enable'. Click on the name of the font that you want to enable, check 'Enabled', and click 'Edit font' to save your changes.
With the font enabled, you can now use it in your CSS. With the font enabled, you can now use it in your CSS.

View file

@ -55,12 +55,12 @@ $ git push origin master
This seems to have worked OK - the commits are still authored by the correct people and at the correct date and time - and I went ahead and created a new feature branch and pull request based on that master branch. This seems to have worked OK - the commits are still authored by the correct people and at the correct date and time - and I went ahead and created a new feature branch and pull request based on that master branch.
<figure> <figure>
<img src="/build/images/blog/forked-github-repo-commits.png" alt="The commits on my master branch after rebasing"> <img src="/dist/images/blog/forked-github-repo-commits.png" alt="The commits on my master branch after rebasing">
<figcaption>The commits on my forked master branch after rebasing and pushing. All good!</figcaption> <figcaption>The commits on my forked master branch after rebasing and pushing. All good!</figcaption>
</figure> </figure>
<figure> <figure>
<img src="/build/images/blog/my-commit-to-the-rebased-branch.png" alt="The new feature branch with my additional commit."> <img src="/dist/images/blog/my-commit-to-the-rebased-branch.png" alt="The new feature branch with my additional commit.">
<figcaption>The new feature branch with the new commit.</figcaption> <figcaption>The new feature branch with the new commit.</figcaption>
</figure> </figure>
@ -76,7 +76,7 @@ I believe that it will use an existing "upstream" remote if it exists, otherwise
Once youve completed the rebase, you can then push your updated branch either from the terminal, or using the *Push* command from the same menu. Once youve completed the rebase, you can then push your updated branch either from the terminal, or using the *Push* command from the same menu.
![Rebasing a forked repository in PhpStorm using the VCS menu.](/build/images/blog/github-fork-rebase-phpstorm.png) ![Rebasing a forked repository in PhpStorm using the VCS menu.](/dist/images/blog/github-fork-rebase-phpstorm.png)
It would be great to see something similar added to [hub](https://hub.github.com) too (Ive created [an issue](https://github.com/github/hub/issues/1047))! It would be great to see something similar added to [hub](https://hub.github.com) too (Ive created [an issue](https://github.com/github/hub/issues/1047))!

View file

@ -193,7 +193,7 @@ Override node options 213 passes, 0 fails, 0 exceptions, and 60 debug messages
Test run duration: 25 sec Test run duration: 25 sec
``` ```
<img src="/build/images/blog/override-node-options-refactor-tests-new-passing.png" alt=""> <img src="/dist/images/blog/override-node-options-refactor-tests-new-passing.png" alt="">
[Here][3] are my full changes from the previous patch, where I added the new tests as well as some small refactors. [Here][3] are my full changes from the previous patch, where I added the new tests as well as some small refactors.
{% endblock %} {% endblock %}

View file

@ -58,11 +58,11 @@ By adding a prefix like `tw-`, we can ensure that the Tailwind classes dont c
No prefix: No prefix:
![](/build/images/blog/using-tailwind-drupal/prefix-1.png){.with-border} ![](/dist/images/blog/using-tailwind-drupal/prefix-1.png){.with-border}
With prefix: With prefix:
![](/build/images/blog/using-tailwind-drupal/prefix-2.png){.with-border} ![](/dist/images/blog/using-tailwind-drupal/prefix-2.png){.with-border}
### Important ### Important
@ -78,11 +78,11 @@ For example: if I had this core markup then the left margin added by `tw-ml-4` w
</div> </div>
``` ```
![](/build/images/blog/using-tailwind-drupal/important-1.png){.with-border} ![](/dist/images/blog/using-tailwind-drupal/important-1.png){.with-border}
With the `!important` rule enabled though, the Tailwinds class takes precedence and is applied. With the `!important` rule enabled though, the Tailwinds class takes precedence and is applied.
![](/build/images/blog/using-tailwind-drupal/important-2.png){.with-border} ![](/dist/images/blog/using-tailwind-drupal/important-2.png){.with-border}
## Example ## Example

View file

@ -120,7 +120,7 @@ experiences:
<div class="mb-12"> <div class="mb-12">
{% if company.logo %} {% if company.logo %}
<div class="float-right mt-2 mb-4 ml-4 w-16 sm:w-24 lg:w-32"> <div class="float-right mt-2 mb-4 ml-4 w-16 sm:w-24 lg:w-32">
<img src="{{ site.images_url }}/build/images/experience/{{ company.logo }}" alt="{{ company.name }} logo"> <img src="{{ site.images_url }}/dist/images/experience/{{ company.logo }}" alt="{{ company.name }} logo">
</div> </div>
{% endif %} {% endif %}

View file

@ -73,7 +73,7 @@ testimonials:
{% if testimonial.image %} {% if testimonial.image %}
<div class="float-right mb-4 ml-4"> <div class="float-right mb-4 ml-4">
<img <img
src="{{ site.url }}/build/images/testimonials/{{ testimonial.image }}" src="{{ site.url }}/dist/images/testimonials/{{ testimonial.image }}"
alt="{{ testimonial.name }}" alt="{{ testimonial.name }}"
class="rounded-full w-16 h-16" class="rounded-full w-16 h-16"
> >

View file

@ -4,14 +4,14 @@ require('laravel-mix-purgecss');
require('laravel-mix-tailwind'); require('laravel-mix-tailwind');
mix.disableNotifications() mix.disableNotifications()
.sass('assets/sass/site.sass', 'source/build/css') .sass('assets/sass/site.sass', 'source/dist/css')
.combine([ .combine([
'node_modules/jquery/dist/jquery.js', 'node_modules/jquery/dist/jquery.js',
'node_modules/highlightjs/highlight.pack.js', 'node_modules/highlightjs/highlight.pack.js',
'assets/js/site.js', 'assets/js/site.js',
], 'source/build/js/all.js') ], 'source/dist/js/all.js')
.copyDirectory('assets/images', 'source/build/images') .copyDirectory('assets/images', 'source/dist/images')
.copyDirectory('node_modules/font-awesome/fonts', 'source/build/fonts') .copyDirectory('node_modules/font-awesome/fonts', 'source/dist/fonts')
.tailwind() .tailwind()
.purgeCss({ .purgeCss({
globs: [ globs: [