-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow hljs to be run from command line
This allows the ability for hljs's build script to be run from the command line. This is useful for sofware that requires hljs as part of a build chain. It disables generation of docs and demo by default. The patch adds the following options to "tools/build.js": * `--output`: path to write build files to. Defaults to "build". * `--docs`: tells builder to include the docs and demo. Build just for Web, don't include docs: ```Bash hljs --output "some/path xml" javascript ``` Build for Web, include docs: ```Bash hljs --docs --output "some/path" xml javascript ``` Build for NodeJS: ```Bash hljs -t node --output "some/path" xml javascript ``` Build for everything: ```Bash hljs -t all --output "some/path" xml javascript ```
- Loading branch information
1 parent
5b5e907
commit db1924f
Showing
3 changed files
with
25 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters