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

codekit-scanner

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

codekit-scanner

Codekit @append and @prepend scanner for Gulp integration

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

codekit-scanner

$ npm install codekit-scanner

Scans Codekit dependencies of a core JS file like

// @codekit-prepend 'js/framework.utilities.js'
// @codekit-prepend 'js/framework.file.js'
// @codekit-prepend 'core.config.js'
(function(){
  console.log("Hello World, I am core.js");
})()
// @codekit-append 'modules/module.js'

// @codekit-append 'views/view.js'

Resolves dependencies by local JS directory and framework directory just like Codekit does.

Gulp Integration

var codekit = require('codekit-scanner');

gulp.task('default', function () {
    codekit({file: 'js/core.js', fw: 'external/UIFramework', jsDir : 'js'}, function(files){
        console.log('files',files);
        gulp.src(files)
            .pipe(sourcemaps.init())
            .pipe(uglify())
            .pipe(concat('core-min.js'))
            .pipe(sourcemaps.write('.'))
            .pipe(gulp.dest('dist/js'));
    });
});

FAQs

Package last updated on 27 Apr 2018

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