https://github.com/lasso-js/lasso-cli
Command line interface for Lasso.js
https://github.com/lasso-js/lasso-cli
Last synced: 4 months ago
JSON representation
Command line interface for Lasso.js
- Host: GitHub
- URL: https://github.com/lasso-js/lasso-cli
- Owner: lasso-js
- Created: 2014-08-18T21:03:44.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2017-10-20T02:19:26.000Z (about 8 years ago)
- Last Synced: 2025-07-09T07:03:42.984Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 3
- Watchers: 5
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Lasso.js CLI
========================================
This utility provides support for running the [Lasso.js](https://github.com/lasso-js/lasso) from the command-line.
# Installation
```bash
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:
```bash
lasso foo.js style.css --main main.js --name "my-page"
```
With additional options:
```bash
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:
```bash
lasso --config lasso-config.json
```
For additional help from the command line, you can run the following command:
```bash
lasso --help
```