Skip to content

Commit

Permalink
release 0.9.1 (and now also include the CSS files and the fonts)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-brade committed Feb 6, 2018
1 parent a542008 commit ec910a2
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 16 deletions.
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "latex.js",
"description": "JavaScript LaTeX to HTML5 translator",
"version": "0.9.0",
"version": "0.9.1",
"author": {
"name": "Michael Brade",
"email": "[email protected]"
Expand All @@ -22,12 +22,14 @@
"dist/macros.js",
"dist/symbols.js",
"dist/html-generator.js",
"dist/documentclasses/"
"dist/documentclasses/",
"dist/css/",
"dist/fonts/"
],
"scripts": {
"clean": "rimraf dist bin;",
"build": "mkdirp dist/documentclasses;lsc -cp src/plugin-pegjs.ls | uglifyjs -cm -o dist/plugin-pegjs.js;pegjs --plugin ./dist/plugin-pegjs -o - src/latex-parser.pegjs | uglifyjs -cm -o dist/latex-parser.js;lsc -cp src/macros.ls | uglifyjs -cm -o dist/macros.js;lsc -cp src/symbols.ls | uglifyjs -cm -o dist/symbols.js;lsc -cp src/html-generator.ls | uglifyjs -cm -o dist/html-generator.js;lsc -cp src/documentclasses/base.ls | uglifyjs -cm -o dist/documentclasses/base.js;lsc -cp src/documentclasses/article.ls | uglifyjs -cm -o dist/documentclasses/article.js;lsc -cp src/documentclasses/book.ls | uglifyjs -cm -o dist/documentclasses/book.js;lsc -cp src/documentclasses/report.ls | uglifyjs -cm -o dist/documentclasses/report.js;mkdirp bin;lsc -bc --no-header -o bin src/latex.js.ls;",
"devbuild": "mkdirp dist/documentclasses;lsc -c -o dist src/plugin-pegjs.ls src/symbols.ls src/macros.ls src/html-generator.ls;lsc -c -o dist/documentclasses src/documentclasses/;pegjs -o dist/latex-parser.js --plugin ./dist/plugin-pegjs src/latex-parser.pegjs;",
"build": "npm run devbuild;uglifyjs dist/plugin-pegjs.js -cm -o dist/plugin-pegjs.js;uglifyjs dist/latex-parser.js -cm -o dist/latex-parser.js;uglifyjs dist/macros.js -cm -o dist/macros.js;uglifyjs dist/symbols.js -cm -o dist/symbols.js;uglifyjs dist/html-generator.js -cm -o dist/html-generator.js;uglifyjs dist/documentclasses/base.js -cm -o dist/documentclasses/base.js;uglifyjs dist/documentclasses/article.js -cm -o dist/documentclasses/article.js;uglifyjs dist/documentclasses/book.js -cm -o dist/documentclasses/book.js;uglifyjs dist/documentclasses/report.js -cm -o dist/documentclasses/report.js;mkdirp bin;lsc -bc --no-header -o bin src/latex.js.ls;",
"devbuild": "mkdirp dist/documentclasses;mkdirp dist/css;mkdirp dist/fonts;rsync -a src/css/ dist/css/;rsync -a src/fonts/ dist/fonts/;lsc -c -o dist src/plugin-pegjs.ls src/symbols.ls src/macros.ls src/html-generator.ls;lsc -c -o dist/documentclasses src/documentclasses/;pegjs -o dist/latex-parser.js --plugin ./dist/plugin-pegjs src/latex-parser.pegjs;",
"docs": "npm run devbuild && webpack && uglifyjs -cm -o docs/js/playground.bundle.pack.js docs/js/playground.bundle.js;",
"pgcc": "google-closure-compiler --compilation_level SIMPLE --externs src/externs.js --js_output_file docs/js/playground.bundle.pack.js docs/js/playground.bundle.js;",
"test": "mocha test/tests.ls;",
Expand Down
29 changes: 17 additions & 12 deletions package.json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

name: 'latex.js'
description: 'JavaScript LaTeX to HTML5 translator'
version: '0.9.0'
version: '0.9.1'

author:
'name': 'Michael Brade'
Expand All @@ -28,28 +28,33 @@ files:
'dist/symbols.js'
'dist/html-generator.js'
'dist/documentclasses/'
'dist/css/'
'dist/fonts/'


scripts:
clean: 'rimraf dist bin;'
build: "
mkdirp dist/documentclasses;
lsc -cp src/plugin-pegjs.ls | uglifyjs -cm -o dist/plugin-pegjs.js;
pegjs --plugin ./dist/plugin-pegjs -o - \
src/latex-parser.pegjs | uglifyjs -cm -o dist/latex-parser.js;
lsc -cp src/macros.ls | uglifyjs -cm -o dist/macros.js;
lsc -cp src/symbols.ls | uglifyjs -cm -o dist/symbols.js;
lsc -cp src/html-generator.ls | uglifyjs -cm -o dist/html-generator.js;
lsc -cp src/documentclasses/base.ls | uglifyjs -cm -o dist/documentclasses/base.js;
lsc -cp src/documentclasses/article.ls | uglifyjs -cm -o dist/documentclasses/article.js;
lsc -cp src/documentclasses/book.ls | uglifyjs -cm -o dist/documentclasses/book.js;
lsc -cp src/documentclasses/report.ls | uglifyjs -cm -o dist/documentclasses/report.js;
npm run devbuild;
uglifyjs dist/plugin-pegjs.js -cm -o dist/plugin-pegjs.js;
uglifyjs dist/latex-parser.js -cm -o dist/latex-parser.js;
uglifyjs dist/macros.js -cm -o dist/macros.js;
uglifyjs dist/symbols.js -cm -o dist/symbols.js;
uglifyjs dist/html-generator.js -cm -o dist/html-generator.js;
uglifyjs dist/documentclasses/base.js -cm -o dist/documentclasses/base.js;
uglifyjs dist/documentclasses/article.js -cm -o dist/documentclasses/article.js;
uglifyjs dist/documentclasses/book.js -cm -o dist/documentclasses/book.js;
uglifyjs dist/documentclasses/report.js -cm -o dist/documentclasses/report.js;
mkdirp bin;
lsc -bc --no-header -o bin src/latex.js.ls;
"
devbuild: "
mkdirp dist/documentclasses;
mkdirp dist/css;
mkdirp dist/fonts;
rsync -a src/css/ dist/css/;
rsync -a src/fonts/ dist/fonts/;
lsc -c -o dist src/plugin-pegjs.ls src/symbols.ls src/macros.ls src/html-generator.ls;
lsc -c -o dist/documentclasses src/documentclasses/;
pegjs -o dist/latex-parser.js --plugin ./dist/plugin-pegjs src/latex-parser.pegjs;
Expand Down

0 comments on commit ec910a2

Please sign in to comment.