{"id":13659591,"url":"https://github.com/urish/gulp-add-src","last_synced_at":"2025-04-24T15:30:27.670Z","repository":{"id":16992932,"uuid":"19755992","full_name":"urish/gulp-add-src","owner":"urish","description":"Add more 'src' files at any point in the pipeline (gulp plugin)","archived":true,"fork":false,"pushed_at":"2018-12-17T09:37:53.000Z","size":14,"stargazers_count":86,"open_issues_count":6,"forks_count":8,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-08-02T05:10:52.993Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urish.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-13T21:08:41.000Z","updated_at":"2023-10-01T10:37:29.000Z","dependencies_parsed_at":"2022-09-26T21:12:12.676Z","dependency_job_id":null,"html_url":"https://github.com/urish/gulp-add-src","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urish%2Fgulp-add-src","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urish%2Fgulp-add-src/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urish%2Fgulp-add-src/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urish%2Fgulp-add-src/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urish","download_url":"https://codeload.github.com/urish/gulp-add-src/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223958133,"owners_count":17231741,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:10.373Z","updated_at":"2024-11-10T13:30:42.088Z","avatar_url":"https://github.com/urish.png","language":"JavaScript","readme":"gulp-add-src\n============\n\nAdd more 'src' files at any point in the pipeline\n\nCopyright (C) 2014, Uri Shaked \u003curi@urish.org\u003e and contributors\n\n[![Build Status](https://travis-ci.org/urish/gulp-add-src.png?branch=master)](https://travis-ci.org/urish/gulp-add-src)\n\nInstallation\n------------\n\n`npm install gulp-add-src --save-dev`\n\nUsage\n-----\nWorks like `gulp.src`, but you can put it anywhere in your pipeline and it will append the given files\nto the pipeline.\n\nExample:\n```js\nvar gulp = require('gulp');\nvar addsrc = require('gulp-add-src');\nvar coffee = require('gulp-coffee');\nvar uglify = require('gulp-uglify');\n\ngulp.task('build', function () {\n  return gulp.src('files/coffee/*.coffee')   // start with the .coffee files in the project\n\t.pipe(coffee())                          // compiles coffee script\n\t.pipe(addsrc('files/js/*.js'))           // we use addsrc to add our .js files to the mix\n\t.pipe(uglify())                          // we minify everything\n\t.pipe(gulp.dest('dist'));                // and write to dist\n});\n```\n\nIf you want add SRC to begining of the SRC array, you can use `addsrc.prepend`.\nOr if you want to add SRC to end of the SRC array, you can use `addsrc.append`.\nRespectively instead of addsrc.\n\nExample use addsrc.append and addsrc.prepend:\n```js\nvar gulp = require('gulp');\nvar addsrc = require('gulp-add-src');\nvar coffee = require('gulp-coffee');\nvar uglify = require('gulp-uglify');\n\ngulp.task('build.angular', function () {\n  return gulp.src('files/coffee/*.coffee')          // start with the .coffee files in the project\n\t.pipe(coffee())                                 // compiles coffee script\n\t.pipe(addsrc.prepend('files/js/constants.js'))  // we use `addsrc.prepend` to add our .js files to begining of the SRC array\n\t.pipe(addsrc.append('files/js/conflict.js'))    // we use `addsrc.append` to add our .js files to end of the SRC array\n\t.pipe(uglify())                                 // we minify everything\n\t.pipe(gulp.dest('dist'));                       // and write to dist\n});\n```\n\nAs an example, this would be useful if you wanted to merge your `bower` scripts with your app scripts. You'd need your `bower` scripts to maintain their order (the `bower` scripts themselves) and make sure they come before your app scripts. In this case, you'd use `addsrc.prepend`.\n\nBecause of the unpredicabilty of `addsrc` alone, it's recommended to use one of the append/prepend variants. The original is only left in place for legacy reasons.\n\nLicense\n----\n\nReleased under the terms of MIT License:\n\nPermission is hereby granted, free of charge, to any person obtaining\na copy of this software and associated documentation files (the\n'Software'), to deal in the Software without restriction, including\nwithout limitation the rights to use, copy, modify, merge, publish,\ndistribute, sublicense, and/or sell copies of the Software, and to\npermit persons to whom the Software is furnished to do so, subject to\nthe following conditions:\n\nThe above copyright notice and this permission notice shall be\nincluded in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,\nEXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF\nMERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\nIN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY\nCLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,\nTORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE\nSOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furish%2Fgulp-add-src","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furish%2Fgulp-add-src","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furish%2Fgulp-add-src/lists"}