diff --git a/components/babelrc b/components/babelrc new file mode 100644 --- /dev/null +++ b/components/babelrc @@ -0,0 +1,6 @@ +{ + "presets": [ + "@babel/preset-env" + ], + "compact": false +} diff --git a/template/Makefile b/template/Makefile --- a/template/Makefile +++ b/template/Makefile @@ -6,7 +6,7 @@ # Main targets # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -ALL_TARGETS=package.json .browserslistrc gulpfile.babel.js node_modules +ALL_TARGETS=package.json .babelrc .browserslistrc gulpfile.babel.js node_modules CLEAN_TARGETS=dist/ ${ALL_TARGETS} all: ${ALL_TARGETS} @@ -31,5 +31,8 @@ node_modules: package.json npm install +.babelrc: + ${CP} ${SOURCE}/babelrc .babelrc + gulpfile.babel.js: ${CP} ${SOURCE}/gulpfile.js gulpfile.babel.js