0.10.1 • Published 8 months ago

@vertexvis/build-tools v0.10.1

Weekly downloads
90
License
MIT
Repository
github
Last release
8 months ago

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

0.10.1

8 months ago

0.10.0

2 years ago

0.9.1

3 years ago

0.9.0

3 years ago

0.8.4

3 years ago

0.8.3

3 years ago

0.8.2

3 years ago

0.8.1

3 years ago

0.8.0

4 years ago

0.7.5

4 years ago

0.7.4

4 years ago

0.7.3

4 years ago

0.7.2

4 years ago

0.7.1

4 years ago