Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

create-slinkity

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-slinkity

The splendid starter to scaffold your Slinkity site.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
17
increased by1600%
Maintainers
1
Weekly downloads
 
Created
Source

Slinkity starter project banner

Welcome to your splendid Slinkity starter 👋

This demos Slinkity's core functionality while staying as lean as possible, making it the perfect launchpad for new projects 🚀

It includes:

  • component(s) embedded into a static .md template → more on component shortcodes here
  • route(s) built using a component framework as a templating language → more on component pages here
  • a netlify.toml configured to deploy in a flash → more on deployment here
  • an eleventy config with a few recommended defaults → more on config here

Install dependencies and start the dev server

npm i
npm run dev

npm run dev runs slinkity --serve --incremental to start a Vite server pointed at your 11ty build. The --incremental flag prevents flashes of unstyled content during development.

Open localhost:8080 to view your site. Vite's development server enables processing a range of resources including SCSS and your favorite component framework.

Build for production

npm run build

This runs the slinkity command to kick off a 2 step build process:

  • Use 11ty to build your routes and copy over static assets
  • Use Vite to bundle, minify, and optimize your styles and JS resources

Your new site will appear in the _site folder, or wherever you tell 11ty to build your site.

Config

Our .eleventy.js file includes a few niceties we'd recommend for any Slinkity project, including:

  • Setting an input directory
  • Copying static assets to the build from a /public directory
  • Using Nunjucks for shortcode processing in markdown

To see the full "what" and "why," head to the .eleventy.js file.

How does the slinkity command differ from eleventy?

You can view slinkity as the "glue" between 11ty and Vite. When using the slinkity command, all arguments are passed directly to the eleventy CLI, except serve and port:

  • serve starts the 11ty dev server in --watch mode to listen for file changes.
  • port is passed to Slinkity's independent server instead of 11ty's Browsersync server.

The CLI checks for Eleventy configs and will look for any custom directories returned, such as input or output. If found, those are passed off to the Vite server so it can look in the right place.

Here's a the full step-by-step for those curious!

01-slinkity-architecture

🤝 Contributing

Slinkity contributions, issues and feature requests are welcome! Feel free to check the issues page.


This README was generated with ❤️ by Ben with readme-md-generator (and then heavily edited by Anthony).

Keywords

FAQs

Package last updated on 09 Jan 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc