Skip to main content

lektor-gulp

This plugin for Lektor CMS adds gulp support to projects. When enabled with the -f gulp flag it runs npm install and then the gulp default or watch tasks as they are defined into your own gulpfile.js.

The general documentation about Lektor plugins is here.

lektor build

The command lektor build -f gulp runs the ``default`` gulp task, for example defined as something like:

gulp.task('build', ['clean', 'copy', 'js', 'css', 'imagemin'], () => { });
gulp.task('default', ['build'], () => { });

In the above example the default task points to a build task, which is usually composed by several other gulp tasks, etc.

lektor server

The command lektor server -f gulp runs the Lektor embedded server on http://localhost:5000, starting a gulp ``watch`` task in background. For example, you can define something such as:

gulp.task('watch', () => {
    gulp.watch('lib/js/**/*.js', ['js']);
    gulp.watch('lib/css/**/*.css', ['css']);
});

In the above example, each time one touches Javascript or CSS files in the lib/ folder then assets could be minified, concatenated and copied into the standard assets/static/ lektor folder, or whatever is defined into your own gulpfile.js.

Credits

This plugin is based on the official Webpack plugin with very little differences.

Release files for lektor-gulp 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lektor-gulp 0.3.2
File Size Uploaded
lektor-gulp-0.3.2.tar.gz 4.1 kB Details

Release files / lektor-gulp-0.3.2.tar.gz

Download URL lektor-gulp-0.3.2.tar.gz
Size 4.1 kB
Tags Source
SHA-256 checksum
How to use checksums
99208ffd186c82a11b258d24f551e238a52505f350df6dd15eebfd163e80c2ff
BLAKE2b-256 checksum
How to use checksums
f44acc2ffe763c4b7753929fc14948fa9a343eb69b92483751d108f032429b91
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.3.2 This release

1 release file

0.3.1

1 release file

0.3

2 release files

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page