backed-cli
The official command line interface for Backed
Last updated 2 years ago by vandeurenglenn .
CC-BY-NC-ND-4.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install backed-cli -g
SYNC missed versions from official npm registry.

backed-cli NPM version Build Status Dependency Status Coverage percentage

A command line interface for fast es6 development

Installation

$ npm install --global backed-cli

Usage

  • Create a 'backed.json' file in your projects root example

Commands

Build[--build, -b]

Bundle your app/component

  backed --build

Copy[--copy, -c]

Copy resources

  backed --copy

Serve[--serve, -s]

Serve a localhost for your app/component

  backed --serve

Watch[--watch, -w]

Watch for file changes, rebuilds & reloads the app/component on change

  backed --watch

API

backed[{options}]

options

bundles

Type: array
Default: undefined
Options: src, dest, format, babel

An array of objects with each object containing a src & dest property

// minimal
{
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index"
  }]
}

// minimal with multiple bundles
{
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index"
  }, {
    "src": "some/other/path/to/element",
    "dest": "some/other/path/to/element"
  }]
}

// all options
{
  "bundles": [{
    "src": "some/path/to/index",
    "dest": "some/path/to/index",
    "format": "iife"
  }, {
    "src": "some/other/path/to/element",
    "dest": "some/other/path/to/element",
    "format": ["iife", "es"],
    "babel": {"babel-config"}
  }]
}

format

Type: array
Default: iife
Options: iife, es, cjs, amd

The format to build.

*** TODO: deprecate ***

{
  "format": "es"
}

// multiple

{
  "format": ["iife", "es"]
}

watch[{options}]

Type: array
Default: ./src
Options: src, options

options can be any chokidar option.

{
  "watch": {
    "src": ["./src"],
    "options": {}
  }
}

server (documentation not finished check backed.json or when using next next-backed.json)

Type: object
Default: undefined
Options: demo, use, docs

Serve your component/app documentation & demo

TODO

  • [ ] Add more documentation & examples
  • [ ] Add support for plugins example:
    • backed-plugin-todo
    • backed-plugin-atom
    • ...
  • [ ] Add support for presets example:
    • backed-preset-element
    • backed-preset-app
    • backed-preset-atom
    • ...
  • [ ] Serve app after build & copy
  • [ ] Handle errors
  • [ ] Run tests with Travis CI & SAUCELABS

Projects using Backed CLI

components

frameworks

  • Backed - Small web framework for quick app & component development

Organizations using Backed CLI

License

MIT © Glenn Vandeuren

Current Tags

  • 0.1.6-alpha.5                                ...           alpha (3 years ago)
  • 0.1.8-beta.1                                ...           beta (3 years ago)
  • 0.5.7-alpha                                ...           iife (3 years ago)
  • 0.12.1                                ...           latest (2 years ago)

63 Versions

  • 0.12.1                                ...           2 years ago
  • 0.12.0                                ...           2 years ago
  • 0.11.3                                ...           2 years ago
  • 0.11.2                                ...           2 years ago
  • 0.11.1                                ...           2 years ago
  • 0.11.0                                ...           2 years ago
  • 0.10.0                                ...           2 years ago
  • 0.9.1                                ...           2 years ago
  • 0.9.0                                ...           2 years ago
  • 0.8.1                                ...           2 years ago
  • 0.8.0                                ...           2 years ago
  • 0.7.0                                ...           2 years ago
  • 0.6.0                                ...           3 years ago
  • 0.5.7-alpha                                ...           3 years ago
  • 0.5.7                                ...           3 years ago
  • 0.5.6                                ...           3 years ago
  • 0.5.5                                ...           3 years ago
  • 0.5.4                                ...           3 years ago
  • 0.5.3                                ...           3 years ago
  • 0.5.2                                ...           3 years ago
  • 0.5.1                                ...           3 years ago
  • 0.5.0                                ...           3 years ago
  • 0.4.0                                ...           3 years ago
  • 0.3.1                                ...           3 years ago
  • 0.2.4                                ...           3 years ago
  • 0.2.3                                ...           3 years ago
  • 0.2.2                                ...           3 years ago
  • 0.2.1                                ...           3 years ago
  • 0.2.0                                ...           3 years ago
  • 0.2.0-alpha2                                ...           3 years ago
  • 0.2.0-alpha1                                ...           3 years ago
  • 0.1.15                                ...           3 years ago
  • 0.1.14                                ...           3 years ago
  • 0.1.13                                ...           3 years ago
  • 0.1.12                                ...           3 years ago
  • 0.1.11                                ...           3 years ago
  • 0.1.10                                ...           3 years ago
  • 0.1.9                                ...           3 years ago
  • 0.1.8-beta.1                                ...           3 years ago
  • 0.1.8                                ...           3 years ago
  • 0.1.6-beta                                ...           3 years ago
  • 0.1.6-alpha.7                                ...           3 years ago
  • 0.1.6-alpha.6                                ...           3 years ago
  • 0.1.6-alpha.5                                ...           3 years ago
  • 0.1.6-alpha.4                                ...           3 years ago
  • 0.1.6-alpha.3                                ...           3 years ago
  • 0.1.6-alpha.2                                ...           3 years ago
  • 0.1.6-alpha.1                                ...           3 years ago
  • 0.1.6-alpha                                ...           3 years ago
  • 0.1.5                                ...           3 years ago
  • 0.1.3                                ...           3 years ago
  • 0.1.2                                ...           3 years ago
  • 0.1.1                                ...           3 years ago
  • 0.1.0                                ...           3 years ago
  • 0.0.1                                ...           3 years ago
  • 0.0.0-alpha.9                                ...           3 years ago
  • 0.0.0-alpha.8                                ...           3 years ago
  • 0.0.0-alpha.7                                ...           3 years ago
  • 0.0.0-alpha.6                                ...           3 years ago
  • 0.0.0-alpha.5                                ...           3 years ago
  • 0.0.0-alpha.4                                ...           3 years ago
  • 0.0.0-alpha.3                                ...           3 years ago
  • 0.0.0-alpha [deprecated]           ...           3 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 63
Last Day 0
Last Week 63
Last Month 1
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |