Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

main-bower-min-checked

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

main-bower-min-checked

Get bower main files in both normal and in minimized formats (if available in package)

  • 1.0.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

main-bower-min-checked

Made to be used with Gulp. Get bower main files as default (defined in 'main') or minified file names array. If no minified version is found for some files, they will be created.

It uses main-bower-files to list bower dependencies, gulp-rename and gulp-uglify to create missing minified files.

Installation

  npm install --save-dev main-bower-min-checked

Example

var bower_files = require('main-bower-min-checked');
var inject = require('gulp-inject');

var main_bower_files_options = {
    includeDev: false,
    paths: {
        bowerDirectory: './lib',
        bowerJson: 'bower.json'
    }
};

var uglify_options = {
	preserveComments: 'all'
};
gulp.src('./index.html')
	.pipe(
		inject(
			gulp.src(
				bower_files(main_bower_files_options).getDefault(), 
				{read: false}
			)
		)
	)
	.pipe(gulp.dest('./'));
gulp.src('./index.html')
	.pipe(
		inject(
			gulp.src(
				bower_files(main_bower_files_options).getMinified(uglify_options), 
				{read: false}
			)
		)
	)
	.pipe(gulp.dest('./'));

Keywords

FAQs

Package last updated on 31 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