Git Product home page Git Product logo

gulp-include-source's People

Contributors

gil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gulp-include-source's Issues

Ignore empty lines in source list files

I suggest that empty lines should be ignored when <!-- include:js(list:vendorList) --> syntax is used.
At least the last empty line should since in many cases people set their IDEs/editors to add an empty line at the end of each saved file.

Full regex support

Support for full RegEx patterns would be extremely helpful, and expected (works for the grunt counterpart)

<!-- include:js(system/**/!(*.module).js) -->

includeSources error

Hi im new in gulp, how should write includeSources functions for selecting my js file?

Minifed vendor

bower_components/jquery/dist/jquery.min.js
bower_components/angular/angular.min.js

?

Add support for streams

this does not work:

gulp.task 'index', ->
  gulp.src dir.src + '/index.jade'
    .pipe $.jade({pretty: true})
    .pipe $.includeSource()
    .pipe gulp.dest(dir.tmp)

Allow full glob filtering in the include

Currently the matching regular expression does not allow any inner parenthesis. By changing line 19 from return contents.match(/<!--\s+include:([a-z]+)\(([^)]+)\)\s+-->/); to 'return contents.match(//);' users can now add full glob filters.

Ex.
Currently this include will fail and be passed over because it has inner parenthesis.
<!-- include:js(app/*/**/+(*.module|module).js) -->

Nothing output

There is a problem which can result in nothing being added to the output html file.

I dug around a bit and the solution seems to be to include an option to specify the location of the javascript files that are to be included.

The current code assumes that the js/css files are located relative to the input file but that doesn't work once you start to do thing like build it with jade e.g.

gulp.src('./src/jade/*.jade')
.pipe(jade())
.pipe(includeSource())
.pipe(gulp.dest('./app'));

It is looking in ./src/jade for my scripts and I need a way to tell it to look in ./app or maybe ./src/js

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.