<li><p><aclass="github-button"href="https://github.com/SoftInstigate/lektor-gulp"data-icon="octicon-star"data-size="large"data-show-count="true"aria-label="Star lektor-gulp on GitHub"target="_blank">Star</a></p></li>
lektor-gulp<br>===========<br><br>This plugin for `Lektor CMS`_ adds `gulp`_ support to projects. When<br>enabled with the ``-f gulp`` flag it runs ``npm install`` and then the<br>gulp ``default`` or ``watch`` tasks as they are defined into your own<br>``gulpfile.js``.<br><br>The general documentation about Lektor plugins is `here`_.<br><br>lektor build<br>------------<br><br>The command ``lektor build -f gulp`` runs the **``default``** gulp task,<br>for example defined as something like:<br><br>.. code::<br><br> gulp.task('build', ['clean', 'copy', 'js', 'css', 'imagemin'], () => { });<br> gulp.task('default', ['build'], () => { });<br><br>In the above example the ``default`` task points to a ``build`` task,<br>which is usually composed by several other gulp tasks, etc.<br><br>lektor server<br>-------------<br><br>The command ``lektor server -f gulp`` runs the Lektor embedded server on<br>http://localhost:5000, starting a gulp **``watch``** task in background.<br>For example, you can define something such as:<br><br>.. code::<br><br> gulp.task('watch', () => {<br> gulp.watch('lib/js/**/*.js', ['js']);<br> gulp.watch('lib/css/**/*.css', ['css']);<br> });<br><br>In the above example, each time one touches Javascript or CSS files in<br>the ``lib/`` folder then assets could be minified, concatenated and<br>copied into the standard ``assets/static/`` lektor folder, or whatever<br>is defined into your own ``gulpfile.js``.<br><br>Credits<br>-------<br><br>This plugin is based on the official `Webpack plugin`_ with very little<br>differences.<br><br>.. _Lektor CMS: https://www.getlektor.com<br>.. _gulp: http://gulpjs.com<br>.. _here: https://www.getlektor.com/docs/plugins/<br>.. _Webpack plugin: https://github.com/lektor/lektor-webpack-support
Please enable JavaScript to view the <ahref="https://disqus.com/?ref_noscript"
rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="bottomsummary">
<divclass="container">
</div>
</div>
<footer>
<divclass="container">
<divclass="row">
<divclass="col-sm-4 icon-bar">
<ahref="https://github.com/lektor/lektor/"title="Lektor on GitHub"
><iclass="fa fa-github"></i></a>
<ahref="https://github.com/lektor/lektor/issues/"title="Report Issues for Lektor"
><iclass="fa fa-bug"></i></a>
<ahref="https://twitter.com/getlektor"title="Find Lektor on Twitter"
><iclass="fa fa-twitter"></i></a>
<ahref="https://gitter.im/lektor/lektor"title="Chat on Gitter"
><iclass="fa fa-comment"></i></a>
<ahref="https://github.com/lektor/lektor-website/tree/master/content/plugins/lektor-gulp/contents.lr"title="View source for this page"><iclass="fa fa-code"></i></a>
</div>
<divclass="col-sm-8">
<ahref="../../license/">License & Copyright</a> •
<ahref="../../contact/">Contact</a> •
Made with <iclass="fa fa-fw fa-heart"title="Heart"><spanhidden>Heart</span></i> in Carinthia