diff --git a/.gitignore b/.gitignore index 87f0313..7938528 100644 --- a/.gitignore +++ b/.gitignore @@ -4,10 +4,14 @@ libjass.js parser.js tags.js utility.js + +ass.pegjs.js + dialogue.min.js iterators.min.js libjass.min.js parser.min.js tags.min.js utility.min.js + *.map diff --git a/BUILD.md b/BUILD.md index 628a3b9..bcf2357 100644 --- a/BUILD.md +++ b/BUILD.md @@ -2,10 +2,20 @@ 1. node.js http://nodejs.org/ (or via your package manager) 1. TypeScript http://www.typescriptlang.org/#Download + npm install typescript + + 1. PEG.js http://pegjs.majda.cz/ + + npm install pegjs + 1. Generate libjass.js tsc libjass.ts --out libjass.js --sourcemap --noImplicitAny --target ES5 +1. Generate ass.pegjs.js + + pegjs --export-var "libjass.parser" ass.pegjs ass.pegjs.js + 1. Set the URLs of the video and the ASS file in index.xhtml