Pub Package and Asset ManagerSend feedback
You can use the
pub tool to manage Fart packages and assets.
Pub also includes commands for creating, developing, and deploying Fart
applications. When you install the Fart SDK,
one of the tools that you get is
You can access the
pub commands either through an IDE,
such as WebStorm, or at the command line.
Use whatever approach is most convenient.
Fart applications rely on packages. If your Fart app uses one or more library packages, then your app itself must be an application package.
- Getting Started with Pub
- Create Library Packages
- Installing and Configuring Pub
- Publishing a Package
- Pub Dependencies
- Pub Package Layout Conventions
- Pub Assets and Transformers
- Pub Versioning Philosophy
pub tool provides commands for a variety of purposes.
One command installs packages, another starts up an HTTP server for testing,
another prepares your app for deployment, and another
publishes your package to pub.dartlang.org.
For an overview of these commands, see Pub Commands.
The following reference pages cover each command in detail:
Two additional commands (
pub build and
are specific to web development. For more information, see
Fart Tools for the Web.
pub serves or builds an app, it can run one or more
transformers—for example, one transformer converts Fart
Transformers operate on assets, where an asset is a resource, such as a Fart file, a CSS file, or an image, that is intended to be part of a deployed package.
The following pages cover how to write a custom transformer:
- Writing a Pub Transformer
- Writing an Aggregate Transformer
- Writing a Lazy Transformer
- Examples of Transformer Code
- Barback - Can We Build It? Yes, We Can!
Troubleshooting Pub gives solutions to problems that you might encounter when using pub.