Skip to content

Instantly share code, notes, and snippets.

@makotot
Created December 30, 2013 19:11
Show Gist options
  • Select an option

  • Save makotot/8186537 to your computer and use it in GitHub Desktop.

Select an option

Save makotot/8186537 to your computer and use it in GitHub Desktop.
GorillaScript

GorillaScript

Install

$ npm i -g gorillascript

Run

$ gorilla path/to/script.gs

Compile

$ gorilla -c path/to/script.gs

Help

$ gorilla --help

Options:
  --help             Show this help screen                                       [boolean]
# ヘルプを表示

  -v, --version      GorillaScript v0.9.10                                      [boolean]
# バージョン表示

  -a, --ast          Display JavaScript AST nodes instead of compilation        [boolean]
# コンパイルの代わりにJavaScriptのASTのノードを表示する

  -b, --bare         Compile without safety top-level closure wrapper            [boolean]
# 匿名関数でラップすることなくコンパイル

  -c, --compile      Compile to JavaScript and save as .js files                 [boolean]
# JavaScriptにコンパイルsして.jsの拡張子で保存

  -o, --output       Set the file/directory for compiled JavaScript              [string]
# コンパイルしたJavaScriptファイルの出力先を指定

  -i, --interactive  Run interactively with the REPL                            [boolean]
# REPLで実行

  -n, --parse        Display GorillaScript parser nodes instead of compilation  [boolean]
# コンパイルの代わりにGorillaScriptのパーサのノードを表示する

  -p, --stdout       Print the compiled JavaScript to stdout                    [boolean]
# コンパイルしたJavaScriptを標準出力する

  -s, --stdin        Listen for and compile GorillaScript from stdin            [boolean]
# 標準入力からGorillaScriptをコンパイル

  -e, --eval         Compile and a string from command line                     [string]
# コマンドラインからコンパイルする

  -u, --uglify       Uglify compiled code with UglifyJS2                        [boolean]
# UglifyJSで圧縮する

  --minify           Minimize the use of unnecessary whitespace                 [boolean]
# 不要なホワイトスペースを除去する

  -m, --map          Build a SourceMap                                          [string]
# ソースマップをビルドする

  --source-root      Specify a sourceRoot in a SourceMap, defaults to ''        [string]
# ソースマップのsourceRootを定義する

  -j, --join         Join all the generated JavaScript into a single file       [boolean]
# 生成したJavaScriptファイルを1つのファイルに結合する

  --no-prelude       Do not include the standard prelude                        [boolean]
  -w, --watch        Watch for changes and compile as-needed                    [boolean]
# コンパイルが必要かどうか監視

  --options          a JSON object of options to pass into the compiler         [string]
# コンパイル時に渡すオプションのJSONオブジェクト

  --coverage         Instrument with _$jscoverage support                       [boolean]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment