搜索插件、代码仓与 APP 分类

插件详情v0.0.14

static_shock

Dart 的静态网站生成器。

Windows
近 30 天下载
1780
喜欢数
40
Pub 分数
130

安装插件

flutter pub add static_shock

插件介绍

基于插件公开信息、社区数据与项目使用情况整理的选型参考。

Static_Shock 是一个为 Dart 构建的静态网站生成器,可帮助开发者高效地创建和部署静态网站。它利用 Dart 的性能和类型安全性,简化内容编译、模板处理和资源管理。设计简洁且快速,可无缝集成到 Dart 工作流中,并支持 Windows 平台。适用于博客、文档站点和个人作品集,Static_Shock 将内容编译为优化后的 HTML、CSS 和 JavaScript 文件,可直接托管在任何静态网页服务器上。

适合场景

  • 构建博客
  • 创建文档网站
  • 生成个人作品集
  • 部署营销落地页
  • 自动化网站构建

主要特点

  • Dart 原生静态网站生成
  • 基于模板的内容渲染
  • 内置资源优化
  • 对 Windows 的支持
  • 简单的 CLI 集成

适合对象

  • Dart 开发人员
  • Bloggers
  • 技术作家
  • 面向前端的团队
  • CI/CD 流水线集成

使用建议

  • 仅限 Windows 平台
  • 需要熟悉 Dart
  • 无内置托管支持
  • 不适用于动态应用
  • 最小的社区支持

原始 README

以下为关联源码仓库的 README 原文快照,最新内容请访问源码仓库。

Static Shock - A static site generator, written in Dart

Built by the Flutter Bounty Hunters


For documentation, visit staticshock.io

Quickstart

Generate a new Static Shock project with static_shock_cli:

# Activate the CLI tool.
dart pub global activate static_shock_cli

# Generate a new project.
shock create

Once you've created a project, you can (re)build your static site as needed:

# Build directly
dart bin/main.dart

# Or, build with the CLI tool
shock build

To demo your static site, run a local server from your project directory, using the CLI tool:

shock serve

The local server automatically rebuilds and reloads your pages as you work.

Packages

Packages in this repository:

  • /packages/static_shock_cli: project that implements the Static Shock CLI tool.
  • /packages/static_shock: the core of Static Shock, which builds static websites.
  • /packages/static_shock_docs: the website for Static Shock documentation.

Development

This repository is a mono-repo. To work with it, you need Melos available on your path:

dart pub global activate melos

When you first open the root of the project for development, bootstrap Melos:

melos bootstrap

所属分类

依赖

依赖清单 15 项

源码仓库

使用此插件的项目

暂无相关数据。