Skip to content

Commit

Permalink
add npm target
Browse files Browse the repository at this point in the history
  • Loading branch information
dfober committed Feb 26, 2019
1 parent dd409a8 commit 72d5b9f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lang/javascript/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,17 @@ $(library).js : $(objects)
clean:
rm -f $(objects) $(target)

##############################################################
# publishing to npm
##############################################################
npmdir := npm
npm: $(npmdir)/$(library).js
npm publish $(npmdir) --access public

$(npmdir)/$(library).js : $(library).js
cp $(library).js $(npmdir)/$(library).js


##############################################################
# building the library as web assembly
##############################################################
Expand Down

0 comments on commit 72d5b9f

Please sign in to comment.