@hattip/bundler-netlify
TypeScript icon, indicating that this package has built-in type declarations

0.0.48 • Public • Published

@hattip/bundler-netlify

Hattip bundler for Netlify Functions and Netlify Edge Functions. It uses esbuild behind the scenes.

CLI

hattip-netlify
    Bundle a Hattip app for Netlify

For more info, run any command with the `--help` flag:
  $ hattip-netlify --help

Options:
  -o, --outputDir <path>  Root directory of the app
  -c, --clearOutputDir    Clear the output directory before bundling
  -s, --staticDir <path>  Static directory to copy to output
  -e, --edge <path>       Edge function entry file
  -S, --func <path>       Regular function entry file
  -h, --help              Display this message
  -v, --version           Display version number

The edge function entry should be in the following form:

import netlifyEdgeAdapter from "@hattip/adapter-netlify-edge";
import handler from "./handler.js";

export default netlifyEdgeAdapter(handler);

The regular function entry should be in the following form:

import netlifyFunctionsAdapter from "@hattip/adapter-netlify-functions";
import hattipHandler from "./handler.js";

export const handler = netlifyFunctionsAdapter(hattipHandler);

JavaScript API

🚧 TODO 🚧

Refer to the TypeScript for the time being.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.35-canary.70canary
0.0.4892latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.4892
0.0.473
0.0.460
0.0.450
0.0.440
0.0.430
0.0.4218
0.0.410
0.0.400
0.0.390
0.0.380
0.0.370
0.0.361
0.0.3513
0.0.35-canary.70
0.0.35-canary.20
0.0.35-canary0
0.0.340
0.0.330
0.0.320
0.0.310
0.0.300
0.0.292
0.0.280
0.0.270
0.0.260
0.0.250
0.0.240
0.0.230
0.0.220
0.0.210
0.0.200
0.0.190
0.0.180
0.0.170
0.0.160
0.0.150
0.0.140
0.0.130
0.0.120
0.0.110
0.0.100
0.0.90
0.0.80
0.0.70
0.0.60

Package Sidebar

Install

npm i @hattip/bundler-netlify

Weekly Downloads

129

Version

0.0.48

License

MIT

Unpacked Size

8.1 kB

Total Files

8

Last publish

Collaborators

  • cyco130