https://github.com/gavinbirkhoff/swiftlet
Web dev build tool
https://github.com/gavinbirkhoff/swiftlet
Last synced: about 1 year ago
JSON representation
Web dev build tool
- Host: GitHub
- URL: https://github.com/gavinbirkhoff/swiftlet
- Owner: GavinBirkhoff
- License: mit
- Created: 2023-11-18T16:16:58.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-09T04:08:05.000Z (about 2 years ago)
- Last Synced: 2025-01-25T05:14:19.727Z (over 1 year ago)
- Language: TypeScript
- Size: 137 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Swiftlet
Web dev build tool
## Usage
Install the package:
```shell
npm install --save-dev swiftlet
yarn add --dev swiftlet
pnpm add --save-dev swiftlet
```
Create a `swiftlet.config.js` file in your project root:
```js
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
```shell
swiftlet build
```
```text
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
```