From 283a74f6574fc8dec604c6c964f8204802ea7575 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Tue, 16 Oct 2018 14:06:10 -0400 Subject: [PATCH] add babel build step --- .gitignore | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 57a9aee..f093ab6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ node_modules/ - +out/* package-lock.json diff --git a/package.json b/package.json index 0254fc4..e4b45b5 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,8 @@ "nodemon": "^1.18.4" }, "scripts": { - "start": "nodemon --exec babel-node --presets env,stage-2 src/index.js" + "start": "nodemon --exec babel-node --presets env,stage-2 src/index.js", + "build": "node_modules/.bin/babel src/index.js -o out/counter.js" }, "keywords": [], "author": "",