From 7482786c2283ced6a4e0561dc7fcd30a1180578c Mon Sep 17 00:00:00 2001 From: Anton Vakhrushev Date: Sat, 12 Apr 2025 19:51:28 +0300 Subject: [PATCH] Remove old tooling --- Makefile | 45 --------------------------------------------- Taskfile.yml | 6 ++++++ tools/dep | 15 --------------- tools/mkpost | 5 ----- tools/php-cs-fixer | 12 ------------ tools/sculpin | 15 --------------- 6 files changed, 6 insertions(+), 92 deletions(-) delete mode 100644 Makefile delete mode 100755 tools/dep delete mode 100755 tools/mkpost delete mode 100755 tools/php-cs-fixer delete mode 100755 tools/sculpin diff --git a/Makefile b/Makefile deleted file mode 100644 index a737024..0000000 --- a/Makefile +++ /dev/null @@ -1,45 +0,0 @@ -APP_ENV := dev -APP_OUTPUT_DIR := output_dev -APP_URL := homepage.site -APP_NPM_BUILD_CMD := build - -ifeq ($(TARGET), prod) - APP_ENV := prod - APP_OUTPUT_DIR := output_prod - APP_URL := https://vakhrushev.me - APP_NPM_BUILD_CMD := build-prod -endif - -# Building - -clean: - rm -rf ./${APP_OUTPUT_DIR}/* - -build-assets: - ./tools/npm run "${APP_NPM_BUILD_CMD}" - -build-site: - ./tools/sculpin generate \ - --env="${APP_ENV}" \ - --url="${APP_URL}" \ - --no-interaction \ - -vv - -build: clean build-assets build-site - -build-prod: - $(MAKE) build TARGET=prod - -watch: clean build-assets - ./tools/sculpin generate \ - --env="${APP_ENV}" \ - --watch \ - --server \ - --port=8000 \ - --no-interaction - -# Deploy - -deploy: build-prod - invoke deploy - diff --git a/Taskfile.yml b/Taskfile.yml index 8c70cc1..2a0314e 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -100,3 +100,9 @@ tasks: vars: { CLI_ARGS: 'run {{.NPM_SCRIPT}}' } - task: sculpin vars: { CLI_ARGS: 'generate --env="{{.APP_ENV}}" --url="{{.APP_URL}}" --no-interaction -vv' } + + make-post: + vars: + POST_DATE: + sh: date +'%Y-%m-%d' + cmd: touch "source/_articles/{{.POST_DATE}}-new-post.md" diff --git a/tools/dep b/tools/dep deleted file mode 100755 index f18505b..0000000 --- a/tools/dep +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -source .env - -docker run \ - --rm \ - --interactive \ - --tty \ - --user "$UID:$(id -g)" \ - --volume /etc/passwd:/etc/passwd:ro \ - --volume /etc/group:/etc/group:ro \ - --volume "$HOME:$HOME" \ - --volume "$PWD:/srv/app" \ - "${PHP_IMAGE}" \ - dep "$@" diff --git a/tools/mkpost b/tools/mkpost deleted file mode 100755 index c9c3884..0000000 --- a/tools/mkpost +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env bash - -set -eux - -touch "source/_articles/$(date +'%Y-%m-%d')-$1.md" diff --git a/tools/php-cs-fixer b/tools/php-cs-fixer deleted file mode 100755 index 0d1084c..0000000 --- a/tools/php-cs-fixer +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash - -source .env - -docker run \ - --rm \ - --interactive \ - --tty \ - --user "$UID:$(id -g)" \ - --volume "$PWD:/srv/app" \ - "${PHP_IMAGE}" \ - php-cs-fixer "$@" diff --git a/tools/sculpin b/tools/sculpin deleted file mode 100755 index ec27add..0000000 --- a/tools/sculpin +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash - -source .env - -docker run \ - --rm \ - --interactive \ - --tty \ - --init \ - --user "$UID:$(id -g)" \ - --volume="$PWD:/srv/app" \ - --expose=8000 \ - --publish=8000:8000 \ - "${PHP_IMAGE}" \ - ./vendor/bin/sculpin "$@"