gulp-pipe-metalprismic v5.0.1
gulp-pipe-metalprismic

Gulp pipeline for processing templates content managed by Prismic.io. This pipeline generates a single task, views, which does two things:
- Fetches and processes documents from the Prismic repo so the resulting data can be made useful to the templates
- Generates static views using Metalsmith.
Usage
import gulp from 'gulp';
import metalprismic from 'gulp-pipe-metalprismic';
metalprismic.init(gulp, {
src: 'app/views',
dest: 'dest',
apiEndpoint: process.env.PRISMIC_API_ENDPOINT,
accessToken: process.env.PRISMIC_ACCESS_TOKEN
});$ gulp viewsAPI
init(gulp, options[, extendsDefaults])
gulp
Type: Object
Gulp instance.
options
Type: Object
Options that define the behavior of this task. This object is parsed by config() in gulp-task-helpers, so you can target specific NODE_ENV environments.
This object extends that of the configurables in gulp-task-metalsmith. The following are the extended properties of the object.
options.apiEndpoint
Type: string
Default: undefined
The API endpoint of the Prismic repo.
options.accessToken
Type: string
Default: undefined
The access token of the Prismic repo.
extendsDefaults
Type: boolean
Default: true
Maps to useConcat param in config() of gulp-task-helpers.
Disclaimer
This is an experimental project driven by internal requirements.
License
This software is released under the MIT License.
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago