New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-aspnet-deps

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-aspnet-deps

An opinionated library that manages client side resources in AspNet5 (js, css, scss, ...)

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-60%
Maintainers
1
Weekly downloads
 
Created
Source

gulp-aspnet-deps

Travis npm npm License

A gulp plugin that helps with processing client side resources when working with MR.AspNet.Deps.

Usage

var deps = require('gulp-aspnet-deps').init(require('./deps.json'));

// An example with minification of js.
gulp.task('min:js', function () {
    return deps.process('js', function (bundle) {
        return gulp.src(bundle.src)
            .pipe(concat(path.join(bundle.dest, bundle.name + '.js')))
            .pipe(uglify())
            .pipe(gulp.dest('.'));
    });
});

deps.process takes a section from the deps.json file and a function that will be called with a bundle object and the files with their full paths so you can directly call gulp.src on them.

The bundle object you get in the callback of the process function will have the dest and the src properties resolved and normalized relative to config.base in deps.json so you can use them in your gulpfile.

Utils you can use

  • deps.makeAbsolutePath: takes a path and returns the absolute path relative to config.base.
  • deps.makeAbsoluteFiles: takes a bundle and returns the absolute files relative to config.base.

Keywords

FAQs

Package last updated on 20 May 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc