Socket
Socket
Sign inDemoInstall

codekit-scanner

Package Overview
Dependencies
1
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    codekit-scanner

Codekit @append and @prepend scanner for Gulp integration


Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Install size
141 kB
Created
Weekly downloads
 

Readme

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

Last updated on 27 Apr 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc