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

@servicensw/builder

Package Overview
Dependencies
Maintainers
3
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@servicensw/builder

Build files to allow other packages to compile outside of the monorepository

  • 2.0.0-dev.29
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
increased by25%
Maintainers
3
Weekly downloads
 
Created
Source

@servicensw/builder

PostCSS and Rollup config to build all @servicensw GEL packages.

Installation

npm install @servicensw/builder --save-dev

How to use

This package allows other GEL packages to build by themselves so they can have a dist folder included with the NPM package version.

Add the following lines to the @servicensw packages package.json file, substituting:

  • <cssfile> with the packages CSS filename.
  • <es6file> with the packages ES6 filename.
  • <jsfile> with the output JS file name (typically the ES6 filename, without .es6).
"scripts": {
  "build:css": "NODE_ENV=production ./node_modules/.bin/postcss src/<cssfile> --dir dist/css --config ./node_modules/@servicensw/builder/postcss.config.js",
  "build:js": "NODE_ENV=production ./node_modules/.bin/rollup src/<es6file> --o dist/js/<jsfile> --f iife --config ./node_modules/@servicensw/builder/rollup.config.js",
  "build": "npm run build:css && npm run build:js"
}

If you have multiple CSS files, add additional src/<css file> files seperated by a space.

If you have multiple JS files, you'll need to duplicate the entire command and seperate it with && as rollup can only handle one file at a time.

Also ensure you have the necessary devDependencies:

"devDependencies": {
  "postcss-cli": "^5.0.0",
  "rollup": "^0.58.2",
  "@servicensw/builder": "^2.0.0-alpha"
},

FAQs

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