Giter VIP home page Giter VIP logo

gulp-linker's People

Contributors

fidian avatar filso avatar freeman42x avatar kenjiqq avatar kennethlynne avatar mikermcneil avatar scamden avatar scott-laursen avatar sgress454 avatar zolmeister avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gulp-linker's Issues

Time to publish?

When you feel it is useful, could you run npm publish and get this package registered with npm? It looks like 0.1.4 was published a month ago so the package.json file will need to get updated before you send up a version to npm's registry.

Linking to a generated file

I have a javascript task that concats all my js files to one file, "app.dev". That task runs parallel to my html task. Sometimes I "bundle" them to that single file and sometimes I link to all the files. Just depends on what I need.

I was able to get it working by making javascript a dependency of my html task. It seems kind of weird to me though especially being that it runs the javascript task even if I just want to run my html task. Any idea how this could be made better?

gulp.task('html', ['javascript'], function() {
  return gulp.src(buildConfig.dev.globs.html)
    .pipe(linker({
      scripts: ['build/app.js'],
      startTag: '<!--SCRIPTS-->',
      endTag: '<!--SCRIPTS END-->',
      fileTmpl: '<script src="%s"></script>',
      appRoot: 'build',
      relative: true
    }))
    .pipe(gulp.dest(buildConfig.dev.buildDir));
});

if you.. what??

If you, it will update your index automatically on every change,
so you won't have to run task ever again.

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.