{"id":15016532,"url":"https://github.com/bymattlee/bymattlee-11ty-starter","last_synced_at":"2026-03-17T22:06:46.032Z","repository":{"id":39060620,"uuid":"61589934","full_name":"bymattlee/bymattlee-11ty-starter","owner":"bymattlee","description":"A starter boilerplate powered by 11ty, Sanity, Gulp, Tailwind CSS, rollup.js, Alpine.js and Highway.","archived":false,"fork":false,"pushed_at":"2023-07-14T04:05:51.000Z","size":4168,"stargazers_count":37,"open_issues_count":1,"forks_count":3,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-12T09:46:25.670Z","etag":null,"topics":["11ty","11ty-starter","alpine","alpinejs","animations","babel","eleventy","es6","gulp","highway","highwayjs","js","modules","nunjucks","rollup","scss-files","starter-files","static-site-generator","tailwindcss","utility-classes"],"latest_commit_sha":null,"homepage":"https://bymattlee-11ty-starter.netlify.app/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bymattlee.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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,"zenodo":null}},"created_at":"2016-06-21T00:32:49.000Z","updated_at":"2025-02-02T20:38:46.000Z","dependencies_parsed_at":"2025-04-12T09:34:05.418Z","dependency_job_id":"181343fe-fa2f-4447-96b0-572116b7d61b","html_url":"https://github.com/bymattlee/bymattlee-11ty-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/bymattlee/bymattlee-11ty-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymattlee%2Fbymattlee-11ty-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymattlee%2Fbymattlee-11ty-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymattlee%2Fbymattlee-11ty-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymattlee%2Fbymattlee-11ty-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bymattlee","download_url":"https://codeload.github.com/bymattlee/bymattlee-11ty-starter/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bymattlee%2Fbymattlee-11ty-starter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261101067,"owners_count":23109856,"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":["11ty","11ty-starter","alpine","alpinejs","animations","babel","eleventy","es6","gulp","highway","highwayjs","js","modules","nunjucks","rollup","scss-files","starter-files","static-site-generator","tailwindcss","utility-classes"],"created_at":"2024-09-24T19:49:02.479Z","updated_at":"2026-03-17T22:06:46.023Z","avatar_url":"https://github.com/bymattlee.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![ByMattLee 11ty Starter Screenshot](http://hosted.bymattlee.com/github/bymattlee-11ty-starter-screenshot.jpg)\n\n# ByMattLee 11ty Starter\n\nA starter boilerplate powered by [11ty](https://www.11ty.dev/), [Sanity](https://www.sanity.io/), [Gulp](https://gulpjs.com/), [Tailwind CSS](https://tailwindcss.com/), [rollup.js](https://rollupjs.org/), [Alpine.js](https://alpinejs.dev/) and [Taxi.js](https://taxi.js.org/).\n\n[VIEW DEMO](https://bymattlee-11ty-starter.netlify.app/)\n\n---\n\n## Installation\n\n##### 1. Install Node 16.17.1 LTS: \u003chttps://nodejs.org/\u003e\n\n##### 2. Install Yarn\n\n```\n$ npm i -g yarn\n```\n\n##### 3. Install all dependencies\n\n```\n$ yarn\n```\n\n---\n\n## Configuration\n\nIn `config.js`, update Sanity options and environment URLs for project compilation.\n\n---\n\n## Use\n\n##### Build Files For Development And Initialize Watch\n\n```\n$ yarn dev\n```\n\n##### Build Files For Staging\n\n```\n$ yarn stage\n```\n\n##### Build Files For Production\n\n```\n$ yarn prod\n```\n\n---\n\n## General Features\n\n-   Features [Gulp](https://gulpjs.com/) as the build pipeline that renders HTML, compiles styles and scripts, and optimizes assets.\n-   Data is coming from the Sanity Cloud API. This pairs perfectly with the [ByMattLee Sanity Studio Starter](https://github.com/bymattlee/bymattlee-sanity-studio-starter)\n-   Spins up a local development environment through Browsersync\n-   Browser reload when NJK, JS, image, SVG or asset files are updated\n-   Styles are injected when SCSS files are updated\n\n##### Markup\n\n-   Features [11ty](https://www.11ty.dev/) as the static site generator\n-   Markup is minified in staging and production environments\n-   Site data can be set in `src/site/_data`\n-   Pages in `src/site` will be compiled to `dist`\n-   `src/site/_includes/layouts/base.njk` serves as the base template for the site\n-   `src/site/_includes/partials` contains site partials and components that are reused across the site (modular HTML)\n\n##### Styles\n\n-   Features [Tailwind CSS](https://tailwindcss.com/), a utility-first framework\n-   Includes linter (Stylelint), autoprefixer, minification and sourcemap creation\n-   SCSS files are located in `src/assets/scss`\n-   `main.scss` in `src/assets/scss` serves as the base that includes the other dependent SASS files\n-   `main.scss` gets compiled to `dist/assets/css/main.min.css`\n-   `.stylelintrc` contains the settings for Stylelint\n-   Info about class namespacing can be found in `src/assets/scss/main.scss`\n-   Unused CSS (PurgeCSS) will be removed in staging and production builds\n\n##### Scripts\n\n-   Features [rollup.js](https://rollupjs.org/guide/en/) as the module bundler\n-   Includes linting (ESLint), concatenation, minification and sourcemap creation\n-   Includes [Taxi.js](https://taxi.js.org/) for seamless page transitions\n-   Includes a custom framework for reuseable content animations\n-   Includes [Alpine.js](https://alpinejs.dev/) for declarative DOM manipulation\n-   `main.js` in `src/assets/js` serves as the main JS file that includes and runs all components and will be compiled to `dist/assets/js/main.min.js`\n-   All local components should be placed in `src/assets/js/components`\n-   All vendor JS can be manually added to `src/assets/js/vendors` if not found on Yarn\n-   `.eslintrc` contains the settings for ESLint\n\n##### Images\n\n-   Place all unoptimized images in the `src/assets/images` directory\n-   They will then be optimized and placed in `dist/assets/images`\n-   Responsive images will be generated at the following widths (if larger): 200w, 400w, 600w, 800w, 1000w, 1200w, 1400w, 1600w, 1800w\n-   Use `imageSrc` shortcode to render responsive `srcset` in markup\n\n##### SVGS\n\n-   Place all SVG files in the `src/assets/svg` directory\n-   They will then be optimized and added to a sprite at `dist/assets/svg/sprite.svg`\n\n##### Other Assets\n\n-   All assets (fonts, videos, swfs, etc) under `src/assets` will be copied to `dist/assets` on build\n\n##### Sitemap\n\n-   Generates a sitemap based on the HTML files in `dist`\n\n##### Robots.txt\n\n-   Generates a robots.txt file\n-   Configuration can be found in `src/site/robots.njk`\n\n---\n\n## Tailwind CSS Notes\n\n-   All Tailwind settings can be found in `./tailwind.config.js`\n-   Most styles should be written as utility classes in the template markup but custom SCSS can be used for unique properties and/or magic numbers\n-   Utilize the [`@apply`](https://tailwindcss.com/docs/functions-and-directives#apply) directive when writing custom SCSS for efficiency:\n\n```scss\nsvg {\n    @apply u-inline-block u-fill-current;\n}\n```\n\n-   Tailwind settings can be accessed with the [`theme()`](https://tailwindcss.com/docs/functions-and-directives#theme) function:\n\n```scss\n.button {\n    animation-duration: theme('transitionDuration.normal');\n}\n```\n\n-   Media queries can be used with the shorthand `screen()` function:\n\n```scss\n.button {\n    margin-right: 2.8rem;\n    @screen sm {\n        margin-right: 4.2rem;\n    }\n}\n```\n\n---\n\n## Contact\n\n-   Matt Lee - `@bymattlee` on most platforms\n-   Visit my website at [bymattlee.com](https://bymattlee.com)\n\n[![Twitter Follow](https://img.shields.io/twitter/follow/bymattlee?style=social)](https://twitter.com/bymattlee)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbymattlee%2Fbymattlee-11ty-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbymattlee%2Fbymattlee-11ty-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbymattlee%2Fbymattlee-11ty-starter/lists"}