futurice/metalsmith-prismic-server

Name: metalsmith-prismic-server

Owner: Futurice

Description: npm app package for running on Heroku or similar to compile and deploy content for sites built with metalsmith-prismic-template

Created: 2016-02-22 07:43:58.0

Updated: 2017-12-02 21:36:07.0

Pushed: 2016-06-15 12:16:39.0

Homepage: null

Size: 41

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

metalsmith-prismic-server

A library for defining servers which compile static sites from content hosted on prismic.io using the metalsmith static site generator.

Intended primarily for use with metalsmith-prismic-template.

Capabilities
Configuration

See src/config.js for the full list and descriptions of available options. Note that some take their default value from environment variables.

You should specify these options in a plain javascript object which should be passed to any of the top-level functions.

API

See spec.md for a more detailed explanation.

prod(config)

Runs the production server which has two endpoints:

It also serves the latest master build at /builds/master.

dev(config)

Runs the local development server.

build(config, modes [, cb])

Runs the build once only, using the given modes (which should be an array of strings which correspond to properties in config.plugins). Optionally, a callback can be passed which will be invoked when the build is complete. The callback will be passed an error object iff an error occurred during the build.

License and Credits

Metalsmith-prismic-server is licensed with MIT License. It was developed by Futurice in co-operation with our customers Finavia and Clear Funding.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.