0.7.4 • Published 4 years ago
aria-build v0.7.4
aria-build
Zero configuration CLI bundler or packager for typescript and javascript
Installation
npm install --save-dev aria-build aria-fs typescript tslib@1.13.0
Usage
aria-build -d -f es --compress
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
--swc Enabled swc plugin to transform ts,js,jsx,tsx
--esbuild Enabled esbuild plugin to use transform ts,js,jsx,tsx
--external Specify external dependencies
--dts-only Generate Declation types only (default false)
--resolve Resolve 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 config: TSRollupConfig = {
input: './src/index.ts',
external,
output: [
{
file: './dist/aria-build.es.js',
format: 'es'
},
{
file: './dist/aria-build.js',
format: 'cjs'
}
],
tsconfig: {
compilerOptions: {
declaration: true
}
}
}
await clean('dist')
await bundle({ config, esbuild: true, write: true })
})()
0.7.4
4 years ago
0.7.3
4 years ago
0.7.2
4 years ago
0.7.1
4 years ago
0.7.0
4 years ago
0.6.2
4 years ago
0.6.1
5 years ago
0.6.0
5 years ago
0.5.2
5 years ago
0.5.1
5 years ago
0.5.0
5 years ago
0.4.5
5 years ago
0.4.3
5 years ago
0.4.1
5 years ago
0.4.0
5 years ago
0.3.0
5 years ago
0.2.2
5 years ago
0.2.1
5 years ago
0.2.0
5 years ago
0.1.0
5 years ago
0.0.24
5 years ago
0.0.23
5 years ago
0.0.22
5 years ago
0.0.21
5 years ago
0.0.20
6 years ago
0.0.19
6 years ago
0.0.18
6 years ago
0.0.17
6 years ago
0.0.15
6 years ago
0.0.16
6 years ago
0.0.14
6 years ago
0.0.13
6 years ago
0.0.11
6 years ago
0.0.10
6 years ago
0.0.9
6 years ago
0.0.8
6 years ago
0.0.7
6 years ago
0.0.6
6 years ago
0.0.5
6 years ago
0.0.4
6 years ago
0.0.3
6 years ago
0.0.2
6 years ago
0.0.1
6 years ago