A command line interface for fast es6 development
$ npm install --global backed-cli
- Create a 'backed.json' file in your projects root example
Bundle your app/component
backed --build
Copy resources
backed --copy
Serve a localhost for your app/component
backed --serve
Watch for file changes, rebuilds & reloads the app/component on change
backed --watch
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"}
}]
}
Type: array
Default: iife
Options: iife, es, cjs, amd
The format to build.
*** TODO: deprecate ***
{
"format": "es"
}
// multiple
{
"format": ["iife", "es"]
}
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
- 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
- Backed - Small web framework for quick app & component development
MIT © Glenn Vandeuren