Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@fleek-platform/svelte-adapter

Package Overview
Dependencies
Maintainers
0
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fleek-platform/svelte-adapter

SvelteKit adapter that builds your app to run on Fleek Functions. This adapter automatically handles building and preparing your SvelteKit app for deployment on Fleek's infrastructure.

latest
npmnpm
Version
0.0.2
Version published
Maintainers
0
Created
Source

⚡️ SvelteKit Adapter for Fleek

SvelteKit adapter that builds your app to run on Fleek Functions. This adapter automatically handles building and preparing your SvelteKit app for deployment on Fleek's infrastructure.

Installation

npm install -D @fleek-platform/svelte-adapter

Usage

Add the adapter to your svelte.config.js:

import adapter from '@fleek-platform/svelte-adapter';

export default {
  kit: {
    adapter: adapter({
      // optional configuration
      outDir: '.fleek', // Defaults to '.fleek'
    }),
  },
};

Configuration Options

  • outDir: File path to output the production build. Defaults to .fleek if not specified.

Build Output

When you run npm run build, this adapter will:

  • Create a production build of your SvelteKit app
  • Generate static assets in .fleek/static
  • Bundle your server-side functions into .fleek/dist

Deployment

Once built, deploy to Fleek Functions with:

fleek functions deploy --bundle=false --path .fleek/dist/index.js --assets .fleek/static

Notes

  • Make sure you have the Fleek CLI installed and configured
  • This adapter automatically handles:
    • Static asset serving through IPFS
    • Pre-rendered pages
    • Server-side rendering
    • Client/server routing
    • TypeScript support
    • Base path configuration

Support

  • Node.js 18.x and later
  • SvelteKit 2.0 and later

Release Process

This project follows SemVer for versioning. Here's how to release a new version:

  • Update Version Number: Bump the version number in package.json using npm version (patch/minor/major). This will update the version number in package.json and create a new Git tag.
pnpm version patch
  • Push Changes and Tags
git push origin main --follow-tags
  • GitHub Actions Automation: A GitHub Actions workflow automatically publishes the package to npm when a new tag is pushed.

Contributing

Thanks for considering contributing to our project!

How to Contribute

  • Fork the repository.
  • Create a new branch: git checkout -b feature-branch-name.
  • Make your changes.
  • Commit your changes using conventional commits.
  • Push to your fork and submit a pull request.

Commit Guidelines

We use Conventional Commits for our commit messages:

  • test: 💍 Adding missing tests
  • feat: 🎸 A new feature
  • fix: 🐛 A bug fix
  • chore: 🤖 Build process or auxiliary tool changes
  • docs: ✏️ Documentation only changes
  • refactor: 💡 A code change that neither fixes a bug or adds a feature
  • style: 💄 Markup, white-space, formatting, missing semi-colons...

Keywords

sveltekit

FAQs

Package last updated on 12 Dec 2024

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