aria-build
Build any web components
Last updated a day ago by aelbore .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install aria-build 
SYNC missed versions from official npm registry.

Coverage Status Build Status npm version License: MIT

aria-build

Build

Installation

  npm install --save-dev aria-build

CLI Options

  Usage
    $ aria-build [options]

  For more info, run any command with the `--help` flag
    $ aria-build --help

  Options
    -d, --declaration    Generates corresponding .d.ts file  (default false)
    -f, --format         build specified formats  (default es,cjs)
    -i, --entry          Entry module(s)
    -o, --output         Directory to place build files into  (default dist)
    -c, --config         config file of aria-build. i.e aria.config.ts
    --external           Specify external dependencies
    --clean              Clean the dist folder default  (default dist)
    --globals            Specify globals dependencies
    --sourcemap          Generate source map  (default false)
    --name               Specify name exposed in UMD builds
    --compress           Compress or minify the output  (default false)
    -v, --version        Displays current version
    -h, --help           Displays this message

API Setup

import { bundle, TSRollupConfig, clean } from 'aria-build'

(async function() {
  const pkg = require('./package.json')

  const external = [
    ...Object.keys(pkg.dependencies)
  ]

  const options: TSRollupConfig = {
    input: './src/index.ts',
    external,
    output: {
      file: './dist/aria-build.es.js',
      format: 'es'
    },
    tsconfig: {
      compilerOptions: {
        declaration: true
      }
    }
  }
  
  await clean('dist')
  await bundle(options)
})()

Current Tags

  • 0.1.0                                ...           latest (a day ago)

23 Versions

  • 0.1.0                                ...           a day ago
  • 0.0.24                                ...           15 days ago
  • 0.0.23                                ...           24 days ago
  • 0.0.22                                ...           a month ago
  • 0.0.21                                ...           a month ago
  • 0.0.20                                ...           2 months ago
  • 0.0.19                                ...           2 months ago
  • 0.0.18                                ...           2 months ago
  • 0.0.17                                ...           2 months ago
  • 0.0.16                                ...           2 months ago
  • 0.0.15                                ...           2 months ago
  • 0.0.14                                ...           2 months ago
  • 0.0.13                                ...           2 months ago
  • 0.0.11                                ...           4 months ago
  • 0.0.9                                ...           6 months ago
  • 0.0.8                                ...           6 months ago
  • 0.0.7                                ...           7 months ago
  • 0.0.6                                ...           7 months ago
  • 0.0.5                                ...           8 months ago
  • 0.0.4                                ...           8 months ago
  • 0.0.3                                ...           8 months ago
  • 0.0.2                                ...           8 months ago
  • 0.0.1                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 14
This Month 78
Last Day 2
Last Week 22
Last Month 166
Dev Dependencies (0)
None
Dependents (2)

Copyright 2014 - 2016 © taobao.org |