@vertexvis/build-tools
Build tools for web development
Last updated a month ago by ci-vertex .
MIT · Original npm · Tarball · package.json
$ cnpm install @vertexvis/build-tools 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.7.3                                ...           latest (a month ago)

3 Versions

  • 0.7.3                                ...           a month ago
  • 0.7.2                                ...           2 months ago
  • 0.7.1                                ...           2 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |