{"id":15679144,"url":"https://github.com/knowler/sage-prep","last_synced_at":"2025-05-07T09:16:53.320Z","repository":{"id":114063531,"uuid":"142473557","full_name":"knowler/sage-prep","owner":"knowler","description":null,"archived":false,"fork":false,"pushed_at":"2018-08-08T07:07:24.000Z","size":5,"stargazers_count":12,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-07T09:16:46.426Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knowler.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-07-26T17:36:10.000Z","updated_at":"2023-03-03T17:10:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"12773cad-c5d3-408e-9cd3-3c770f3d1f15","html_url":"https://github.com/knowler/sage-prep","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fsage-prep","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fsage-prep/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fsage-prep/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knowler%2Fsage-prep/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knowler","download_url":"https://codeload.github.com/knowler/sage-prep/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252847567,"owners_count":21813460,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T16:26:27.073Z","updated_at":"2025-05-07T09:16:53.175Z","avatar_url":"https://github.com/knowler.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sage Deployment Prep Script\n\nSometimes you gotta use FTP. This script helps you prepare a\nSage theme for deployment.\n\n## Instructions\n\n1. Copy `bin` into your theme's directory.\n2. Make sure the script is executable:\n   ```sh\n   chmod +x bin/prep.sh\n   ```\n3. Add the script to your `package.json`:\n   ```diff\n   \"scripts\": {\n   +  \"prep\": \"npm run build:production \u0026\u0026 ./bin/prep.sh\"\n   }\n   ```\n\n## Usage\n\nIf you've set everything up correctly, `yarn prep` will now\ncreate a ready-to-distribute archive of your theme. When\nextracting, it will keep the timestamp + hash on the folder\nname. This is so you can drop it into a folder that might\nalready have an newer version of the theme. I typically append\n`-old` to the previous one and then (quickly) remove the\ntimestamp + hash from the one I just extracted. It's about as\nsketchy as using FTP in the first place. ¯\\\\\\_(ツ)_/¯\n\n## Output\n\nThis is a bare minimum distribution of Sage, which means it\nremoves all the necessary files for building. This discourages\nmodifications. It leaves a nice note warning people of this\n(`dist-info.md`) as well as information regarding who last\nbuilt, what the datetime was, and the current commit short hash.\n\n```shell\nyour-theme-name-{timestamp}-{latest git short hash}\n├── app/\n├── config/\n├── dist/\n├── resources/\n│   ├── functions.php\n│   ├── index.php\n│   ├── screenshot.png\n│   ├── style.css\n│   └── views/\n├── vendor/                   # Optimized, no-dev (from Trellis)\n├── LICENSE.md                # Legally required\n└── dist-info.md              # Warning + build info\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fsage-prep","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknowler%2Fsage-prep","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknowler%2Fsage-prep/lists"}