Skip to content

Commit

Permalink
added `make publish' target to publish all jison modules to NPM at once.
Browse files Browse the repository at this point in the history
  • Loading branch information
GerHobbelt committed Aug 27, 2017
1 parent 7d7ff60 commit ce9f386
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 9 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,17 @@ git:
-git pull --all; git push --all


submodules-publish:
cd modules/ebnf-parser && make publish
cd modules/jison-lex && make publish
cd modules/jison2json && make publish
cd modules/json2jison && make publish
cd modules/lex-parser && make publish

publish: submodules-publish
npm run pub


clean: clean-site
cd examples/ && make clean
cd modules/ebnf-parser && make clean
Expand Down Expand Up @@ -516,5 +527,5 @@ superclean: clean clean-site



.PHONY: all prep site preview deploy test web-examples examples examples-test error-handling-tests basic-tests github-issue-tests misc-tests build npm-install build_bnf build_lex submodules submodules-npm-install clean superclean git prep_util_dir bump submodules-bump git-tag submodules-git-tag compile-site clean-site
.PHONY: all prep site preview deploy test web-examples examples examples-test error-handling-tests basic-tests github-issue-tests misc-tests build npm-install build_bnf build_lex submodules submodules-npm-install clean superclean git prep_util_dir bump submodules-bump git-tag submodules-git-tag compile-site clean-site publish submodules-publish

7 changes: 5 additions & 2 deletions git-tag-and-bump-and-rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,10 @@ if ! make git-tag ; then break; fi; # GOTO END o

if ! are_we_okay ; then break; fi; # GOTO END on failure

if ! npm publish ; then break; fi; # GOTO END on failure
if ! make publish ; then break; fi; # GOTO END on failure

if ! are_we_okay ; then break; fi; # GOTO END on failure




Expand All @@ -147,7 +150,7 @@ if ! npm publish ; then break; fi; # GOTO END o
# ---------------------------------------------------------------------------


if ! make bump ; then break; fi; # GOTO END on failure
if ! make bump ; then break; fi; # GOTO END on failure


if ! are_we_okay ; then break; fi; # GOTO END on failure
Expand Down
2 changes: 1 addition & 1 deletion modules/ebnf-parser
Submodule ebnf-parser updated 1 files
+5 −1 Makefile
2 changes: 1 addition & 1 deletion modules/jison-lex
Submodule jison-lex updated 1 files
+5 −1 Makefile
2 changes: 1 addition & 1 deletion modules/jison2json
Submodule jison2json updated 1 files
+5 −1 Makefile
2 changes: 1 addition & 1 deletion modules/json2jison
Submodule json2jison updated 1 files
+5 −1 Makefile
2 changes: 1 addition & 1 deletion modules/lex-parser
Submodule lex-parser updated 1 files
+5 −1 Makefile
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
"uglify-js": "3.0.28"
},
"scripts": {
"test": "make test"
"test": "make test",
"pub": "npm publish --access public"
},
"homepage": "http://jison.org"
}

0 comments on commit ce9f386

Please sign in to comment.