claw

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 15, 2025 License: MIT Imports: 7 Imported by: 0

README

claw

Bundle up your web components into a single js file.

Installation

go get github.com/Phillip-England/claw

Usage Rules

Claw expects all the .js files in a specific directory to each contain a single class. Also, all web components may only have a two-part name like NiceButton or CoolNav.

Following these rules enables claw to automatically include all web components on your behalf.

Do not include other Javascript, only web components. Claw is intended only for web components.

Usage

With the Usage Rule in mind, run:

err := claw.BundleWebComponents("./components", "./static/index.js")
if err != nil {
  fmt.Println(err.Error())
}

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BundleWebComponents

func BundleWebComponents(dir string, out string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL