Skip to content

lasso-js-samples/lasso-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lasso.js Samples - Lasso.js CLI

This sample demonstrates how to use the command line interface (CLI) for the lasso module. The CLI for the lasso module is distributed as part of the lasso-cli module. The CLI can be used produced optimized JavaScript and CSS bundles from the terminal or from shell scripts.

This sample uses the Lasso.js CLI to bundle up an application that uses the ./main module (Node.js-style) as its entry point. The ./main module depends on the ./add module, as well as the jquery module.

Installation

git clone https://github.com/lasso-js-samples/lasso-cli.git
cd lasso-cli
npm install

This sample app uses a local installation of the lasso-cli module, but you can also install it globally using the following command:

npm install lasso-cli --global

Running

To run the sample app in development mode (minification disabled, concatenation disabled, etc.), use the following command:

npm run dev

Running the above command will result in JavaScript and CSS bundles being written out to the build/static/ directory. In addition, the index.html file will be copied to the build/ directory and updated with the required <script> and <link> tags to include the required external resources. To test your program, open http://localhost:8080/ in your web browser.

To run the sample app in production mode (minification enabled, concatenation enabled, etc.), use the following command:

./run-prod.sh

To test your program, open http://localhost:8080/ in your web browser.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published