Exteranto

The browser extension framework

View the Project on GitHub exteranto/exteranto.github.io

Getting Started
Installation
Directory Structure
Application Configuration

Tutorials
Your First Exteranto

Concepts
Browser Extension Basics
Handling the IOC Container
Typed Message Passing
Service Providers

Directory Structure

Base directory

/config

A folder containing a single index.ts file that exports the application config. Read more about configuration in the Application Configuration article.

/src

This folder contains all your extension’s source code. All of its contents and subfolders will be covered in more detail in the next section of this article.

/static

A space dedicated to store your static assets, like images or documents. These assets can then be accessed from the codebase via the Extension APIs.

/test

The test directory contains a test scaffold based on mocha.


The /src directory

/app

The app folder contains all main application logic that needs to be split between the background script and the content script—hence the only two subfolders are app/background and app/content.

Each of these directories includes 2 files and a folder by default.

/assets

This folder contains assets that need to be compiled with the source code. Exteranto supports .sass styling by default.

/exceptions

The exceptions directory contains global definitions for exception classes.

/messages

The messages directory contains global definitions for message classes. Read more about how messages work in the Typed Message Passing article.

/providers

This folder contains service provider classes for registering custom services or events. Read more about these in the Service Providers article.

« Previous (Installation) | Next (Application Configuration) »