Socket
Socket
Sign inDemoInstall

@packmule/javascript-pack

Package Overview
Dependencies
5
Maintainers
2
Versions
188
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @packmule/javascript-pack

Packmule pack to process JavaScript files.


Version published
Weekly downloads
33
decreased by-2.94%
Maintainers
2
Install size
10.8 MB
Created
Weekly downloads
 

Readme

Source

JavaScript Pack

Transpile JavaScript using Babel.

Internally the JavaScript Pack uses Babel to transpile the code if needed. To configure Babel settings in your project, a .babelrc.json file can be used. Linting code via ESLint can be utilized by creating an .eslintrc file.

Setup

npm install --save-dev @packmule/javascript-pack @babel/core eslint

API

JavaScriptPack()
    .include(glob: string)

Hints

  • cache - Controls cache utilization of the babel-loader.
  • lint - Controls source-code linting via eslint-loader.
  • fix - Controls source-code fixing via eslint-loader.

Usage

Example

Process JavaScript code.

import Packmule from '@packmule/core';
import JavascriptPack from '@packmule/javascript-pack';

const packmule = new Packmule();
packmule.register(new JavaScriptPack());
return packmule.generate();

License

MIT


Keywords

FAQs

Last updated on 23 Sep 2019

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