Skip to content

Commit

Permalink
add ES Modules #254
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Jan 14, 2024
1 parent 841dcdd commit de168e4
Show file tree
Hide file tree
Showing 8 changed files with 18,028 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ www
/_*
*/_*
.nyc_output
dist/version.js
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ rollup.config.js
\#*#
.*
src/banner.js
dist/version.js
tests
assets
examples
Expand Down
19 changes: 11 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,20 +31,23 @@ UGLIFY=./node_modules/.bin/uglifyjs
ROLLUP=./node_modules/.bin/rollup
LIPS=./bin/lips.js

ALL: Makefile package.json .$(VERSION) assets/classDiagram.svg dist/lips.js dist/lips.min.js README.md dist/std.min.scm dist/std.xcb
ALL: Makefile package.json .$(VERSION) assets/classDiagram.svg dist/version.js dist/lips.js dist/lips.esm.js dist/lips.min.js dist/lips.esm.min.js README.md dist/std.min.scm dist/std.xcb

dist/lips.js: src/lips.js .$(VERSION) rollup.config.js
$(ROLLUP) -c
$(CAT) src/banner.js dist/lips.js > dist/tmp.js
$(CP) dist/tmp.js dist/lips.js
$(RM) dist/tmp.js
dist/version.js: src/lips.js
$(CAT) src/banner.js src/lips.js > dist/version.js
$(GIT) branch | grep '* devel' > /dev/null && $(SED) -i -e "s/{{VER}}/DEV/g" -e "s/{{DATE}}/$(DATE)/g" \
dist/lips.js || $(SED) -i -e "s/{{VER}}/$(VERSION)/g" -e "s/{{DATE}}/$(DATE)/g" -e "s/{{YEAR}}/${YEAR}/" \
dist/lips.js
dist/version.js || $(SED) -i -e "s/{{VER}}/$(VERSION)/g" -e "s/{{DATE}}/$(DATE)/g" -e "s/{{YEAR}}/${YEAR}/" \
dist/version.js

dist/lips.js dist/lips.esm.js: dist/version.js .$(VERSION) rollup.config.js
$(ROLLUP) -c

dist/lips.min.js: dist/lips.js .$(VERSION)
$(UGLIFY) -o dist/lips.min.js --comments --mangle -- dist/lips.js

dist/lips.esm.min.js: dist/lips.esm.js .$(VERSION)
$(UGLIFY) -o dist/lips.ems.min.js --comments --mangle -- dist/lips.esm.js

dist/std.scm: lib/bootstrap.scm lib/R5RS.scm lib/byte-vectors.scm lib/R7RS.scm lib/init.scm
$(CAT) lib/bootstrap.scm lib/R5RS.scm lib/byte-vectors.scm lib/R7RS.scm lib/init.scm > dist/std.scm

Expand Down
51 changes: 51 additions & 0 deletions dist/lips.ems.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit de168e4

Please sign in to comment.