lumeland/lume
关于
🔥🪰 快速灵活的静态网站生成器
网站与应用开发实测星标增长
- 24小时
- +2
- 7天
- +6
- 15天
- +6
- 1个月
- +12
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文🔥Lume
Lume is the Galician word for fire but also a (yet another) static site generator for Node. Previous Lume versions were available for Deno.
It's inspired by other general-purpose static site generators, such as Jekyll and Eleventy, but it's faster, simpler and easier to use and configure, besides being super flexible.
- Supports multiple file formats, like Markdown, YAML, JavaScript, TypeScript, JSX, Vento and Nunjucks, and it's easy to extend.
- You can hook any processor to transform assets, like Terser for Javascript or PostCSS for CSS.
- Read the docs to learn more
- Propose new ideas and get help at Discord
- If you like the project and want to provide some support, see our Open Collective organization
v4
🔥 Lume 4.0 has been released and ported to Node. See the migration guide.
The tags in this repo are for v3 and older versions. Previous Lume releases for Deno relied on git tags. v4 is a monorepo and it's not tagged anymore.
Lume 4 runs on Node, so make sure you have version 24 LTS or newer installed. See Node documentation for more info.
The code is published on NPM under the
@lumeland organization:
- The main package is
@lumeland/lume. - Plugins have the name format
@lumeland/plugin-*(for example @lumeland/plugin-esbuild) and must be installed independently.
For more detailed information, please refer to the migration guide and the v4 release post. If, after consulting those, you are still having trouble migrating, please reach out on Discord or open an issue.
Quick start
Lume init vs npm create lume
The way to setup Lume 3 for new projects is using the init script
deno run -A https://lume.land/init.ts. The equivalent script in Lume 4 is
npm create lume@latest (@latest ensures npm uses the newest version of Lume
to create the site, even if you have older versions in your npm
cache). You can specify the
project folder in the first argument. For example npm create lume@latest .
will create a new project (an empty site) in the current folder.
The script detects if the folder already contains a Lume project and will ask
you to migrate it to Node. If you confirm this action, it will create the files
package.json and tsconfig.json and will install all dependencies detected in
the deno.json and _config.ts files.
Note that this migration may not be complete. Depending on your site and
configuration, maybe you need additional changes in your code. The script
doesn't remove the Deno files (deno.json and company), it only creates the new
files. So once your site is completely migrated, you will need to remove these
files by yourself.
You can also start a site with one of the available themes, like Simple Blog:
npm create lume@latest -- --theme @lumeland/theme-simple-blog
Lume from scratch
For example, create your first page using the Vento file index.vto:
---
title: Welcome to my page
---
<html>
<head>
<title>{{ title }}</title>
</head>
<body>
<h1>{{ title }}</h1>
</body>
</html>
Build it:
npx @lumeland/lume@latest build
This command will compile your documents to HTML and save them into the
directory _site.
Please see the CHANGELOG for the specifics of recent changes.
Licensed under the MIT License. See LICENSE for more information.
探索相关项目
加载中…