oliverdavies.uk/content/node.0d707bca-be14-4504-b500-9e44abebab44.json
2025-05-14 00:36:23 +01:00

100 lines
No EOL
4 KiB
JSON

{
"uuid": [
{
"value": "0d707bca-be14-4504-b500-9e44abebab44"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-05-11T09:00:26+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Why I've standardised on 'run' scripts\n"
}
],
"created": [
{
"value": "2023-11-19T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-05-11T09:00:26+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2023\/11\/19\/why-ive-standardised-on-run-scripts",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>In some of my first emails to this list, I wrote about <code>just<\/code> and <code>run<\/code> files.<\/p>\n\n<p>Both allow you to write project-specific aliases and commands. For example, instead of running <code>docker compose exec php phpunit<\/code>, you run <code>just test<\/code> or <code>run test<\/code>.<\/p>\n\n<p>While <code>just<\/code> uses a simple Makefile-like syntax, it requires its own program, so it needs to be installed.<\/p>\n\n<p>While I have it installed locally, I've had instances where CI pipelines have failed because they can't download and install <code>just<\/code> and not because of an error in my code.<\/p>\n\n<h2 id=\"here%27s-the-thing\">Here's the thing<\/h2>\n\n<p>A <code>run<\/code> script is a file of Bash functions.<\/p>\n\n<p>Because it's written in Bash, it runs anywhere without installing additional dependencies.<\/p>\n\n<p>If a CI pipeline fails, which is less often, it's due to a failure within my code and not because of a download error.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>In some of my first emails to this list, I wrote about <code>just<\/code> and <code>run<\/code> files.<\/p>\n\n<p>Both allow you to write project-specific aliases and commands. For example, instead of running <code>docker compose exec php phpunit<\/code>, you run <code>just test<\/code> or <code>run test<\/code>.<\/p>\n\n<p>While <code>just<\/code> uses a simple Makefile-like syntax, it requires its own program, so it needs to be installed.<\/p>\n\n<p>While I have it installed locally, I've had instances where CI pipelines have failed because they can't download and install <code>just<\/code> and not because of an error in my code.<\/p>\n\n<h2 id=\"here%27s-the-thing\">Here's the thing<\/h2>\n\n<p>A <code>run<\/code> script is a file of Bash functions.<\/p>\n\n<p>Because it's written in Bash, it runs anywhere without installing additional dependencies.<\/p>\n\n<p>If a CI pipeline fails, which is less often, it's due to a failure within my code and not because of a download error.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "1970-01-01T00:33:45+00:00",
"guid": null,
"hash": "ef1660e036d0cc4b520bdd563fad7f86",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}