Coder Social home page Coder Social logo

akhilshastri / slinkity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from slinkity/slinkity

1.0 1.0 0.0 3.63 MB

To eleventy and beyond! The all-in-one tool for templates where you want them, component frameworks where you need them ๐Ÿš€

License: Other

JavaScript 61.02% TypeScript 2.12% CSS 1.41% Vue 3.25% SCSS 14.64% Svelte 5.20% Nunjucks 12.35%

slinkity's Introduction

Slinkity - To eleventy and beyond

License: MIT Twitter: slinkitydotdev

Slinkity

๐Ÿšง This project is heavily under construction! ๐Ÿšง As excited as you may be, we don't recommend this early alpha for production use. Still, give it a try if you want to have some fun and don't mind logging bugs along the way :)

Slinkity is the simplest way to handle styles and component frameworks on your 11ty site. Once installed, this:

  • ๐Ÿš€ Unlocks component frameworks like React for writing page templates and layout templates. Turn an existing .html or .liquid file into a .jsx file, and you're off to the componentized races.
  • ๐Ÿ”– Includes powerful shortcodes to insert components into existing pages. Add a line like this to your markdown, HTML, Nunjucks, etc, and watch the magic happen: {% react 'path/to/component' %}
  • ๐Ÿ’ง Hydrates these components when and how you want. Use component frameworks as a static template to start, and opt-in to shipping JS as needed with our partial hydration helpers.
  • ๐Ÿ’… Bundles all your resources with the power of Vite. Use your favorite CSS preprocessor, JS minifier, and more with minimal config.

Technologies used

Slinkity stands on the shoulders of giants. You can think of Slinkity as the "glue" binding 2 tools together:

  1. Eleventy: a static site generator with a rich feature set for fetching data, composing layouts, and inserting content with "shortcodes."
  2. Vite: a bundler that takes the boilerplate out of your set up. It'll compile JS component frameworks, handle CSS preprocessors with little-to-no config (say, SCSS and PostCSS), and show dev changes on-the-fly using hot module replacement (HMR).

Getting started

Use our handy CLI command to spin up a Slinkity site: npm init slinkity. This demos our core functionality while staying as lean as possible, making it the perfect launchpad for new projects ๐Ÿš€

To learn more, and explore adding Slinkity to existing 11ty projects...

Feature set

This project is still in early alpha, so we have many features soon to come! This demo covers a majority of features we support today. For reference, here's our complete roadmap of current and upcoming features:

Feature Status
CLI to run 11ty and Vite simultaneously โœ…
Plugin ecosystem for your favorite component framework (React, Vue, Svelte, etc) โœ…
Component pages โœ…
Component shortcodes โœ…
SCSS and SASS โœ…
PostCSS config (ex. Tailwind) โœ…
CSS imports via ESM (including CSS modules) โœ…
Eleventy serverless compatibility โณ
Shared state between any component shortcode โŒ
Styled components & Emotion support โŒ
  • โœ… = Ready to use
  • โณ = In progress
  • โŒ = Not started, but on roadmap

Have an idea? Notice a bug?

We'd love to hear your feedback! Feel free to log an issue on our GitHub issues page. If your question is more personal, our Twitter DMs are always open as well.

slinkity's People

Contributors

arkanemoose avatar nachtfunke avatar bendmyers avatar bramsmulders avatar paulshryock avatar rodneylab avatar alexmunoz avatar bholmesdev avatar andrewleedham avatar aleksandrhovhannisyan avatar santicros avatar smithbm2316 avatar bdougie avatar jadenguitarman avatar falldowngoboone avatar andystevenson avatar gingerchew avatar kylesloper avatar

Stargazers

Roman avatar

Watchers

James Cloos 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.