All Projects → JamesHemery → gulp-append-prepend

JamesHemery / gulp-append-prepend

Licence: MIT license
➕ Simple Gulp plugin to append/prepend.

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to gulp-append-prepend

gulp-webdriver
gulp-webdriver is a gulp plugin to run selenium tests with the WebdriverIO testrunner
Stars: ✭ 77 (+413.33%)
Mutual labels:  gulp, gulp-plugins
gulp-version-append
Gulp plugin to append version from package.json to static file url to avoid caching
Stars: ✭ 18 (+20%)
Mutual labels:  gulp, gulp-plugins
beginner-windows-npm-gulp-webdev-tutorial
Beginner guide for users on web development with node.js/npm + gulp terminal commands. You'll learn how to use other terminal commands like git, gulp, bower, yarn, and more!
Stars: ✭ 40 (+166.67%)
Mutual labels:  gulp, gulp-plugins
gulp-iife
A Gulp plugin for wrapping JavaScript code in IIFEs.
Stars: ✭ 39 (+160%)
Mutual labels:  gulp, gulp-plugins
gulp-spsync
Gulp plugin for synchronizing local files with a SharePoint library
Stars: ✭ 57 (+280%)
Mutual labels:  gulp, gulp-plugins
gulp-esbuild
gulp plugin for esbuild bundler
Stars: ✭ 39 (+160%)
Mutual labels:  gulp
jekyll-gulpified
Jekyll Gulpified. Optimize assets, fire up Browser Sync, deploy, and more.
Stars: ✭ 20 (+33.33%)
Mutual labels:  gulp
kibe
A simple Yeoman Generator to start projects with the most common tasks of my workflow using Gulp.
Stars: ✭ 33 (+120%)
Mutual labels:  gulp
choerodon-front-boot
Choerodon front boot is a toolkit about front end package management, startup, compilation. It is mainly used to provide custom some configurations file to create a project of React that can be modified to some extent.
Stars: ✭ 27 (+80%)
Mutual labels:  gulp
gulp-pug-inheritance
Only build affected files when modify a Pug file.
Stars: ✭ 16 (+6.67%)
Mutual labels:  gulp
bymattlee-11ty-starter
A starter boilerplate powered by 11ty, Sanity, Gulp, Tailwind CSS, rollup.js, Alpine.js and Highway.
Stars: ✭ 27 (+80%)
Mutual labels:  gulp
blog
blog posts & source code.
Stars: ✭ 44 (+193.33%)
Mutual labels:  gulp
gulp-typograf
Prepare texts with Typograf using Gulp
Stars: ✭ 26 (+73.33%)
Mutual labels:  gulp
UpGulp
A Gulp Starter for your WordPress project
Stars: ✭ 29 (+93.33%)
Mutual labels:  gulp
gulp-sass-bootstrap-boilerplate
⏰📌 Boilerplate with gulp.js, Sass, Babel, and Browsersync.
Stars: ✭ 24 (+60%)
Mutual labels:  gulp
tomanistor.com
Personal portfolio website and blog created with Hugo
Stars: ✭ 14 (-6.67%)
Mutual labels:  gulp
jscrambler
Monorepo of Jscrambler's Javascript Client and Integrations
Stars: ✭ 118 (+686.67%)
Mutual labels:  gulp
vue-loopback
A Vue project template with Loopback framework optionally with Vuex, Vue-router, and Auth boilerplaite
Stars: ✭ 52 (+246.67%)
Mutual labels:  gulp
gulp-px2rem
This is a gulp plugin for node-px2rem.
Stars: ✭ 19 (+26.67%)
Mutual labels:  gulp
gupack
基于gulp的前端构建工具
Stars: ✭ 13 (-13.33%)
Mutual labels:  gulp

gulp-append-prepend

Simple Gulp plugin.

License:MIT npm Build

Usage

First, install gulp-append-prepend as a development dependency:

npm install gulp-append-prepend --save-dev

Then, add it to your gulpfile.js:

const gap = require('gulp-append-prepend');

gulp.task('myawesometask', function(){
    gulp.src('index.html')
        .pipe(gap.prependFile('header.html'))
        .pipe(gap.prependText('<!-- HEADER -->'))
        .pipe(gap.appendText('<!-- FOOTER -->'))
        .pipe(gap.appendFile('footer.html'))
        .pipe(gulp.dest('www/'));
});

This example works with html but you can use any type of file.

Methods

  • appendFile(filepath, separator) The filepath can be an array. The separator is optional by default is "\n".
  • prependFile(filepath, separator) The filepath can be an array. The separator is optional by default is "\n".
  • appendText(text, separator) The text can be an array. The separator is optional by default is "\n".
  • prependText(text, separator) The text can be an array. The separator is optional by default is "\n".

Licence

This plugin is released under the MIT licence.

Disclaimer

Feel free to make changes in this README.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].