@etcher/core

2.3.0 • Public • Published

EtcherJS Discord Size Latest Next License

Etcher

A blazingly fast frontend 'framework' to create reusable web components without touching a single line of javascript.

Why?

Etcher allows you to take advantage of custom elements, a feature natively supported in all major browsers.

Ethcer's custom web elements have

  • CSS Scoping through the Shadow DOM
  • Event handling
  • Reusability
  • Reactivity

and much more.

VS Code Extension

Etcher comes with a VS Code extension that allows you to access syntax highlighting, code completion, and more.

GitHub Visual Studio Marketplace

Installation

npm i @etcher/core -g

Usage

To use etcher, you need to follow this directory structure:

├── src
│   ├── components
│   |   └── ...component xtml files
│   ├── pages
│   |   └── ...page xtml files

(You can configure these directories in the etcher.config.js file.)

To generate your pages, run:

etcher -b # build
etcher -w # watch
etcher <> -s # serve

This will move all your pages into your public directory and add the necessary scripts to them.

Configuration

You can configure etcher by creating a etcher.config.js file in the root directory of your project. Here's an example:

export default {
    input: 'src',
    output: 'dist',
    plugins: [
        // ...
    ],
};

Example

<!-- src/pages/index.xtml -->
<html>
    <body>
        <!-- our `label` attribute will be passed to the button file -->
        <etcher-Button label="Click Me!"></etcher-Button>
    </body>
</html>
<!-- src/components/Button.xtml -->
<button>{{props.label}}</button>

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
2.3.013latest
2.3.0-alpha-rc.90next

Version History

VersionDownloads (Last 7 Days)Published
2.3.013
2.3.0-alpha-rc.90
2.3.0-alpha-rc.80
2.3.0-alpha-rc.71
2.3.0-alpha-rc.60
2.3.0-alpha-rc.50
2.3.0-alpha-rc.40
2.3.0-alpha-rc.30
2.3.0-alpha-rc.20
2.3.0-alpha-rc.10
2.3.0-alpha-rc.00
2.2.71
2.2.61
2.2.50
2.2.40
2.2.30
2.2.20
2.2.10
2.2.00
2.1.10
2.1.00
2.0.500
2.1.0-alpha.50
2.1.0-alpha.40
2.0.50
2.1.0-alpha.30
2.1.0-alpha.20
2.1.0-alpha.10
2.1.0-alpha0
2.0.40
2.0.30
2.0.20
2.0.00
1.0.10
1.0.00

Package Sidebar

Install

npm i @etcher/core

Weekly Downloads

16

Version

2.3.0

License

MIT

Unpacked Size

567 kB

Total Files

41

Last publish

Collaborators

  • thecommieaxolotl