2.0.11 • Published 7 years ago

lasso-cli v2.0.11

Weekly downloads
19
License
Apache-2.0
Repository
github
Last release
7 years ago

Lasso.js CLI

This utility provides support for running the Lasso.js from the command-line.

Installation

npm install lasso-cli --global

Usage

A simple usage that writes out a JavaScript bundle and a CSS bundle to the static/ directory that includes all of the required dependencies is shown below:

lasso foo.js style.css --main main.js --name "my-page"

With additional options:

lasso jquery.js style.less \
    --main "main.js"                      `# Entry point JavaScript module for the browser` \
    --name "my-page"                      `# Give the page bundle files a name` \
    --out static                          `# Output directory` \
    --url-prefix "http://mycdn/static/"   `# URL prefix` \
    --fingerprint                         `# Include fingerprints` \
    --html                                `# Head and body HTML` \
    --minify                              `# Minify JavaScript and CSS` \
    --inject-into index.html              `# Inject HTML markup into a static HTML file` \
    --plugins "lasso-less" "lasso-marko"  `# Install plugins`

Alternatively, you can create a JSON configuration file and use that instead:

lasso --config lasso-config.json

For additional help from the command line, you can run the following command:

lasso --help
2.0.11

7 years ago

2.0.10

7 years ago

2.0.9

7 years ago

2.0.8

7 years ago

2.0.7

7 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.0

8 years ago

1.1.17

8 years ago

1.1.16

9 years ago

1.1.15

9 years ago

1.1.14

9 years ago

1.1.13

9 years ago

1.1.12

9 years ago

1.1.11

9 years ago

1.1.10

9 years ago

1.1.9

9 years ago