forked from highlightjs/highlight.js
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Test building a "use strict" safe package
- Adds a test to the CI pipeline that builds a "typical" consolidated Highlight.js package from the full NPM source and then checks that that build actually executes without errors Related to highlightjs#2247.
- Loading branch information
1 parent
41794bb
commit f7009ad
Showing
5 changed files
with
113 additions
and
2 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
/* | ||
This file is used by import_via_commonjs.js to build a single "package" | ||
and acts as a sanity check that all our code is "use strict" safe | ||
See .travis.yml | ||
*/ | ||
|
||
import hljs from '../../build/lib/index.js'; | ||
|
||
hljs.highlight("cpp","/* test */") | ||
console.log("Rollup built package works.") |