5.0.1 • Published 7 years ago

gulp-pipe-metalprismic v5.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

gulp-pipe-metalprismic Circle CI npm version

Gulp pipeline for processing templates content managed by Prismic.io. This pipeline generates a single task, views, which does two things:

  1. Fetches and processes documents from the Prismic repo so the resulting data can be made useful to the templates
  2. 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 views

API

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.

5.0.1

7 years ago

5.0.0

7 years ago

4.5.0

7 years ago

4.4.0

7 years ago

4.3.0

7 years ago

4.2.4

7 years ago

4.2.3

8 years ago

4.2.2

8 years ago

4.2.1

8 years ago

4.2.0

8 years ago

4.1.0

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.6.2

8 years ago

1.6.1

8 years ago

1.6.0

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.2

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago