Transpile module output for package.json · hyperform/hyperform@80fc0de · GitHub
Skip to content

Commit 80fc0de

Browse files
committed
Transpile module output for package.json
1 parent 112f29c commit 80fc0de

3 files changed

Lines changed: 30 additions & 7 deletions

File tree

‎.gitignore‎

Lines changed: 1 addition & 0 deletions

‎Makefile‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ JSHINT_ARGS :=
99

1010
BANNER := /*! hyperform.js.org */
1111

12-
all: js
12+
all: js es
1313
.PHONY: all
1414

1515
js: dist/hyperform.js dist/hyperform.min.js \
@@ -44,6 +44,11 @@ dist/hyperform.js: src/hyperform.js src/*.js src/*/*.js
4444
@$(JSPM) build "$<" "$@" $(JSPM_ARGS)
4545
@sed -i '1s#^#$(BANNER)\n#' "$@"
4646

47+
es:
48+
@echo "* transpile to ES5"
49+
@mkdir -p es
50+
@node_modules/.bin/cross-env BABEL_ENV=es node_modules/.bin/babel src --out-dir es
51+
4752
test: test-syntax test-unit test-functional
4853
.PHONY: test
4954

‎package.json‎

Lines changed: 23 additions & 6 deletions

0 commit comments

Comments
 (0)