-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Document how to generate the dist file #9
Comments
Hello @Mogztter Here is small tutorial done by @yyyc514: Or the quick snippet: git clone https://github.com/highlightjs/highlight.js
git checkout squash_build_pipeline
npm install
mkdir extra
cd extra
git clone https://github.com/highlightjs/highlightjs-cypher
cd ..
node ./tools/build.js -t browser :common cypher
// or
node --stack-size=65500 ./tools/build.js -t cdn |
Alright, so if I understand correctly, we should rely on the main repository ( We should probably add the procedure to the README (once the branch |
@Mogztter Actually I wanted to minify the Cypher files. But you did. |
Yes, though eventually perhaps we need a nicer way of doing it. :-) |
I think |
It builds a FULL CDN build of all languages (including all 3rd party ones in |
Ah, I got. @Mogztter, please make a PR and add the minified files from the folder |
@yyyc514 I think it would be useful if we could generate the
const builder = require('highlightjs-tools-build')
builder.build('/path/to/repository') Or we could provide a binary:
Wdyt? |
Long-term, yes. Though there is no great way to run the FULL test suite (auto-detect tests) that way... I don't think I'd want to release a WHOLE other npm package... that means it's probably be the existing npm package that expanded, but I'm not sure we want ALL the test bits in there. Haven't given it a lot of thought. |
The
package.json
does not contain adist
task. How the filedist/cypher.min.js
is generated?The text was updated successfully, but these errors were encountered: