Skip to content

Latest commit

 

History

History
executable file
·
52 lines (35 loc) · 751 Bytes

README.md

File metadata and controls

executable file
·
52 lines (35 loc) · 751 Bytes

Swiftlet

Web dev build tool

Usage

Install the package:

npm install --save-dev swiftlet

yarn add --dev swiftlet

pnpm add --save-dev swiftlet

Create a swiftlet.config.js file in your project root:

const path = require('path')
const { defineConfig } = require('swiftlet')

const input = path.resolve('./src/', 'index.js')

module.exports = {
  input,
  target: ['esm', 'cjs', 'umd'],
  outDir: './dist'
}

CLI

Start building an app

swiftlet build
Usage: swiftlet [options] [command]

Web dev build tool

Options:
  -v, --version   output the version number
  -h, --help      display help for command

Commands:
  build           build an app
  help [command]  display help for command