|
|
|
|
|
by hzoo
3739 days ago
|
|
Yeah I think we can try adding something like that to the homepage. npm install --save-dev babel-cli babel-preset-es2015 echo '{ "presets": ["es2015"] }' > .babelrc echo "console.log(`1 + 1 = ${1 + 1}`);" > index.js ./node_modules/.bin/babel-node index.js. I would link to http://babeljs.io/docs/usage/cli/ since users wouldn't get what babel-node vs babel is. The init cli is certainly something we should do; I mentioned this in a comment below.(issue is https://phabricator.babeljs.io/T6956) |
|