Socket
Socket
Sign inDemoInstall

github.com/SerkanSipahi/app-decorators-cli

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/SerkanSipahi/app-decorators-cli


Version published

Readme

Source

app-decorators-cli (Beta)

Start building a app-decorators webcomponent

Installation "with npm"

# For Mac
npm install appdec-cli-osx --global

# For Windows
npm install appdec-cli-win --global

# For Linux
npm install appdec-cli-linux --global

# then
appdec create --name mymodule
appdec run --name mymodule --watch --server

Installation "with github clone"

# get app-decorators via github
git clone https://github.com/SerkanSipahi/app-decorators-cli.git

cd app-decorators-cli

# for osx
mv ./bin/osx/appdec /usr/local/bin/appdec

# for linux
mv ./bin/linux/appdec /usr/local/bin/appdec

# windows bin is in ./bin/win/appdec.exe located

Installation "with self compiling"

# get app-decorators via github
git clone https://github.com/SerkanSipahi/app-decorators-cli.git

# make sure you have "go" installed!
# If not please visit following page https://golang.org/dl/

cd app-decorators-cli
go build *.go
mv appdec /usr/local/bin/appdec

Quickstart

appdec create --name=mymodule
appdec run --name=mymodule --watch --server

# then open localhost:3000

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:


======================
### create command ###
======================

# create a new app
appdec create --name=mymodule

===================
### run command ###
===================

# compile all file in project src directory
appdec run --name=mymodule

# --watch: compile file on any file change
appdec run --name=mymodule --watch

# --server: start server on port 3000
appdec run --name=mymodule --server

# --production: build a bundle file
appdec run --name=mymodule --production

# --format: set module format (work only with --production)
# available formats: default|amd|cjs|umd|esm
appdec run --name=mymodule --production --format=cjs

# --minify: miniy,reduce the file
appdec run --name=mymodule --minify --production --format=cjs

# --no-mangle: mangle
appdec run --name=mymodule --no-mangle=true --production --format=cjs --minify

# --debug: mangle
appdec run --name=mymodule --debug

======================
### delete command ###
======================

# delete existing app
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.

FAQs

Last updated on 02 Oct 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc