GithubHelp home page GithubHelp logo

lguzzon-scratchbook / 11ty-starter Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nikaidor/static-starter

0.0 1.0 0.0 783 KB

An 11ty starting point with TailwindCSS and Svelte preconfigured.

License: MIT License

JavaScript 41.63% CSS 6.77% HTML 51.60%

11ty-starter's Introduction

11ty Starter

The goal of this project is to bring together what I believe are most pragmatic and performant frontend frameworks and tools into a cohesive template for making web development wonderful.

Getting Started

  • yarn to grab dependencies
  • yarn dev to fire up dev server
  • yarn build to build static site

Templating

11ty

This project uses 11ty for templating and static generation. All templating takes place inside the src directory.

Refer to the 11ty docs for more information on how to customize 11ty to your liking, it is an incredibly powerful tool!

Assets

All static assets, like images and fonts, should be placed in public, as it is copied as-is into the dist directory.

Scripting

This project uses a combination of tools to make developing dynamic data-driven scripting simple and pleasant.

Rollup

For bundling, this project uses Rollup. This is a fantastic bundler that makes complex bundling simple and highly configurable. See rollup.config.js to see what is going on under the hood.

Svelte

For complex functionality that doesn't require SEO, such as pulling data from an API client side or sending post requests, this project utilitizes Svelte. Svelte is an exceptional JS framework that makes reactivity simple and predictable.

Note: See src/index.njk and src/_bundle/scripts/svelte.js to see how Svelte can be initialized on pages.

Styling

This project uses TailwindCSS for styling. This allows us to generate a giant list of utility classes that can be shared across differing templating languages and frameworks. The configuration file is located at tailwind.config.js, and all imports are located in src/_bundle/styles.

Tailwind

I am using the default configuration for ease-of-use, and so that people can use great tools like Tailwind UI to quickly bootstrap a site!

Knock Yourself Out!

Thank you for taking the time to check out this repo and read through the docs. I hope this tool is useful and pleasant to work with. Have a great day!

11ty-starter's People

Contributors

mattwaler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.