@daucus/cli
TypeScript icon, indicating that this package has built-in type declarations

0.4.1 • Public • Published

@daucus/cli

Build and manage Daucus workspaces.

📖 Documentation

$ npm i --save-dev @daucus/cli
$ ./node_modules/.bin/daucus help

Daucus

  Universal static stuff generator

Synopsis

  $ daucus command [<args>]

Commands

  build   generate static assets
  help    display help information about Daucus
  watch   Compile a source file when it changes

See 'daucus help <command>' to read about a specific subcommand

Programmatic API

WorkSpace

A Daucus WorkSpace represents the configuration associated to a directory and its subfolders.

You can create a WorkSpace object with a configuration object:

import { WorkSpace } from "@daucus/cli";

const workspace = new WorkSpace({
  // configuration object (see DaucusJSConfig)
});

or a configuration file, using the path to the root directory of your workspace:

import { WorkSpace } from "@daucus/cli";

const workspace = new WorkSpace("./my-project/");

build

Use the BuildCommand to build configured projects (same as $ daucus build):

import { BuildCommand } from "@daucus/cli";

const cmd = new BuildCommand(wp);

// build all configured projects: await cmd.run();
await cmd.run("my-project");

Readme

Keywords

none

Package Sidebar

Install

npm i @daucus/cli

Weekly Downloads

0

Version

0.4.1

License

MIT

Unpacked Size

178 kB

Total Files

150

Last publish

Collaborators

  • noelmace