Socket
Socket
Sign inDemoInstall

flores

Package Overview
Dependencies
461
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    flores

Minimalist static site generator.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Flores

Build Status Test Covarage Greenkeeper Latest Version

Minimalist static site generator.

Installation

$ npm install flores

Usage

const flores = require("flores");

(async () => {
  await flores.build();
})();

API

flores.build

Generate the website.

flores.build([options])
Parameters

flores.serve

Generate the website and start the development server.

flores.serve([options])
Parameters

flores.watch

Start the development server and watch for the file changes. It will automatically refresh the browser on file changes.

flores.watch([options])
Parameters

Configuration Options

Configuration options is an optional Object that you can pass to build, serve, or watch methods.

  • env (String): The environment name, default to process.env.NODE_ENV. If the NODE_ENV environment variable is not set, production will be set. Note that for serve and watch methods, the env value will always be set to development.
  • url (String): The website URL, default to http://localhost:4000.
  • basePath (String): The base path of your website project directory, default to process.cwd().
  • sourceDir (String): The directory for the website source relative to the basePath, default to src.
  • outputDir (String): The directory where the generated website will be stored relative to the basePath, default to public,
  • templatesDir (String): The templates directory relative to the sourceDir, default to templates.
  • assetsDir (String): The CSS assets directory relative to the sourceDir, default to assets.
  • defaultTemplate (String): The default template name for the markdown post, default to post.njk. You can override the template for individual post by providing the template field on the post's front matter.
  • defaultCollectionTemplate (String): The default template name for the markdown post collection page, default to collection.njk. You can override the template for individual post collection page by providing the template field on the page's front matter.
  • copyFiles (Array): List of files or file patterns to copy, default to:
["images/**", "robot.txt", "**/*.html"]`
{
  stage: 3,
  preserve: false
}

License

MIT © Risan Bagja Pradana

Keywords

FAQs

Last updated on 04 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc