Skip to content

Command line interface for Tevatron's builder script

License

Notifications You must be signed in to change notification settings

Zacqary/tevatron-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tevatron CLI

Smashes web component HTML imports into a single Javascript file

Installation

npm install tevatron-cli

Syntax

tevatron --src /your_source_directory --target /your_target_path

Arguments

--src (-s) [directory]

This directory, and its subdirectories, will be scanned for any HTML and JS files. Any HTML files containing <script> tags, or JS files containing /* tevatron comments, will be included in the smash.

--target (-t) [directory/filename]

This is the path to where your smashed file(s) will be written. Without the --concat flag, --target will be treated as a folder. With --concat, it will be treated as a filename and appended a .js extension.

Flags

--concat (-c)

With this flag, all smashed scripts will be concatenated into a single file, with the name of --target

--minify (-m)

With this flag, all smashed scripts, or the concatenated script, will be minified with Uglify.js

--verbose (-v)

With this flag, the builder script will output extra information.

About

Command line interface for Tevatron's builder script

Resources

License

Stars

Watchers

Forks

Packages

No packages published