ソースを参照

`npm run build` builds via babel

Herbert Vojčík 8 年 前
コミット
07aec53207
1 ファイル変更7 行追加1 行削除
  1. 7 1
      package.json

+ 7 - 1
package.json

@@ -4,6 +4,7 @@
   "description": "Slice and compose redux-type reducers.",
   "main": "lib/node.js",
   "scripts": {
+    "build": "babel src --presets es2015,stage-2 --out-dir lib",
     "test": "echo \"Error: no test specified\" && exit 1"
   },
   "repository": {
@@ -16,5 +17,10 @@
     "compose"
   ],
   "author": "Herby Vojčík <herby@mailbox.sk>",
-  "license": "MIT"
+  "license": "MIT",
+  "devDependencies": {
+    "babel-cli": "^6.18.0",
+    "babel-preset-es2015": "^6.18.0",
+    "babel-preset-stage-2": "^6.18.0"
+  }
 }