1.4.11 • Published 2 years ago

@cran/bin.reduce v1.4.11

Weekly downloads
1
License
CC-BY-ND-4.0
Repository
gitlab
Last release
2 years ago

Cranberry Build System

CC BY-ND 4.0

Usage

[DEBUG] reduce

Configuration

interface PackageJson {
  title?: string; // falls back to name
  pm?: string; // usually npm, pnpm, yarn
  scripts?: {
    config?: string;
  };
  build?: {
    out?: string;
    src?: string;
    test?: string;
    target?:
      | "async-node" | "node" | "node-webkit"
      | "web" | "webworker";
  };
  // https://developer.mozilla.org/en-US/docs/Web/Manifest
  manifest?: Manifest;
  gtm?: {
    id: string;
    development: {
      auth: string;
      preview: string;
    },
    production: {
      auth: string;
      preview: string;
    }
  }
}

const defaults: PackageJson = {
  pm: "npm",
  build: {
    target: "web",
    out: "out",
    src: "src",
  },
  manifest: {
    background_color: "white",
    dir: "ltr",
    display: "fullscreen",
    lang: "en-US",
    orientation: "portrait-primary"
  },
}