@vertexvis/build-tools
TypeScript icon, indicating that this package has built-in type declarations

0.10.1 • Public • Published

Vertex Web Common Build Tools

This project contains our common build tooling for web projects. It contains a build script to compile a web project as well as a library to generate Rollup configuration files.

Usage

Add @vertexvis/build-tools as an NPM dev dependency to your project, and include a build NPM script.

// package.json
{
  "scripts": {
    "build": "./node_modules/@vertexvis/build-tools/bin/build-web.sh"
  },
  "devDependencies": {
    "@vertexvis/build-tools": "0.1.4"
  }
}

Add a rollup.config.js file at the root of your project, and use the included helpers to programmatically generate a Rollup configuration. A basic Rollup configuration for a TypeScript project will look like the following:

// rollup.config.js
import {
  config,
  typescript,
  output,
  minify,
  input,
} from '@vertexvis/build-tools';

export default config(input('src/index.ts'), typescript(), output(), minify());

By default, the returned Rollup configuration will include any packages marked as an NPM dependency into the bundle. Any packages labeled as a peer dependency will be marked as external and will not be included in the bundle. Consuming projects are expected to include packages marked as peer dependencies.

Configuration API

Readme

Keywords

none

Package Sidebar

Install

npm i @vertexvis/build-tools

Weekly Downloads

21

Version

0.10.1

License

MIT

Unpacked Size

29.2 kB

Total Files

18

Last publish

Collaborators

  • danschultz-vertex
  • jdm717
  • joshskinner-vertex
  • ci-vertex