app-decorators-cli (Beta)
Start building a app-decorators
webcomponent
Installation "with npm"
npm install appdec-cli-osx --global
npm install appdec-cli-win --global
npm install appdec-cli-linux --global
appdec create --name mymodule
appdec run --name mymodule --watch --server
Installation "with github clone"
git clone https://github.com/SerkanSipahi/app-decorators-cli.git
cd app-decorators-cli
mv ./bin/osx/appdec /usr/local/bin/appdec
mv ./bin/linux/appdec /usr/local/bin/appdec
Installation "with self compiling"
git clone https://github.com/SerkanSipahi/app-decorators-cli.git
cd app-decorators-cli
go build *.go
mv appdec /usr/local/bin/appdec
Quickstart
appdec create --name=mymodule
appdec run --name=mymodule --watch --server
Commands
appdec create yourapp
: create a new app
appdec run
: start or build an app
appdec delete
: start a dev server
appdec help
: help
CLI Options
$ appdec create
--name Directory and package name for the webcomponent.
$ appdec delete
--name Delete directory or package for the webcomponent.
$ appdec run
--help show all options (see below)
--name set name of component
--watch watch file [default: false]
--server start server [default: false]
--production set production environment [default: false]
--format define component format (amd|cjs|umd|esm) [default: "default"]
--minify will minify code [default: false]
--debug will show debug messages [default: false]
--no-mangle no mangle [default: false]
--test (under construction) [default: false]
Advanced usage
This is just a recommendation, you can use the options in any combination:
======================
======================
appdec create --name=mymodule
===================
===================
appdec run --name=mymodule
appdec run --name=mymodule --watch
appdec run --name=mymodule --server
appdec run --name=mymodule --production
appdec run --name=mymodule --production --format=cjs
appdec run --name=mymodule --minify --production --format=cjs
appdec run --name=mymodule --no-mangle=true --production --format=cjs --minify
appdec run --name=mymodule --debug
======================
======================
appdec delete --name=mymodule
Babel
To customize Babel:
You override .babelrc
file in your project's root directory.
Systemjs
To customize Systemjs, override jspm.config.js
file which set settings that will change Systemjs config.