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 // minimal with multiple bundles // all options
format
Type: array
Default: iife
Options: iife, es, cjs, amd
The format to build.
*** TODO: deprecate ***
// multiple
watch[{options}]
Type: array
Default: ./src
Options: src, options
options can be any chokidar option.
backed.json or when using next next-backed.json)
server (documentation not finished checkType: 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
- ...
- backed-plugin-todo
- Add support for presets
example:
- backed-preset-element
- backed-preset-app
- backed-preset-atom
- ...
- backed-preset-element
- 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