Skip to content

uwdata/mosaic-publish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosaic-publish

A CLI tool and API for compiling and optimizing specifications. The tool processes spec files, handles dataset optimizations, and provides a configurable way to manage different compile and optimization tasks.

Until the PR on base mosaic repo merges, npm install pulls @uwdata/* straight from the mosaic-publish branch of the Mosaic repo using gitpkg.

CLI Installation

This tool is designed to be used via npx or can be installed globally.

Run with npx

npx @uwdata/publish ./path/to/spec.yaml -o most

Global Installation

To install the CLI tool globally:

npm install -g @uwdata/publish

Now you can run the tool from anywhere:

mosaic-publish ./path/to/spec.yaml -o most

API Usage

The functionality of mosaic-publish can also be accessed programmatically via its API. For example:

import { MosaicPublisher } from '@uwdata/publish';
import fs from 'fs';

const publisher = new MosaicPublisher({
  spec: fs.readFileSync('./path/to/spec.yaml', 'utf8'),
  outputPath: './path/to/output/directory'
});

publisher.publish()
  .then(() => {
    console.log('Specification compiled and optimized successfully.');
  })
  .catch(err => {
    console.error('Error during publish:', err);
  });

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published