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

@common-web/rollup

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@common-web/rollup

Spend less time worrying about setting up plugins just to use latest ES6 or typescript features.

  • 1.0.15
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
12
Maintainers
1
Weekly downloads
 
Created
Source

Why ?

Spend less time worrying about setting up plugins just to use latest ES6 or typescript features.

Just install and use.

Getting started

  1. Install the pkg:

yarn:

yarn add @common-web/rollup -D

npm:

npm install @common-web/rollup --save-dev
  1. Add scripts to your package.json
scripts: {
    "ts-check": "tsc --noEmit",
    "build": "ts-check && rollup -c"
}
  1. Run the build
yarn run build

Base plugin support:

  • eslint (see rollup-plugin-eslint for options)
  • babel (see @common-web/babel pkg for a list default ready to use config)
  • typescript (see @rollup/plugin-typescript for options)
  • Small packages, backend using latest ESnext / Typescript

Setting up

// rollup.config.js

import { getBaseRollupPlugins } from '@common-web/rollup';

const plugins = getBaseRollupPlugins({
    // eslint: { baseConfig: require('./eslintrc.js') } if you are using `eslintrc.js`
}).conat([
    // Include your own plugins to support other features 
]);

export default {
    input,
    output,
    plugins
}

for more configuration options visit rollup.

Custom Options

Ability to opt-out of default plugins:

// rollup.config.js

import { getBaseRollupPlugins } from '@common-web/rollup';

const plugins = getBaseRollupPlugins({
    eslint: {
        disabled: true
    },
    json: {
        disabled: true
    }
}).conat([
    // Include your own plugins to support other features 
]);

Examples

FAQs

Package last updated on 30 Dec 2019

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