# mkdir babel_test # cd babel_test && npm init
package name: (babel_test) version: (1.0.0) description: entry point: (index.js) test command: echo "Error: no test specified" && exit 1 git repository: keywords: author: license: (ISC) About to write to D:\JS\nodejs\babel_test\package.json: { "name": "babel_test", "version": "1.0.0", "description": "", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", "license": "ISC" } Is this ok? (yes)
Instalacja babel
# npm install --save-dev babel-cli
Podmienić w package.json właściwość scripts:
"scripts": { "build": "babel src -d lib" }