Created
April 7, 2016 10:09
-
-
Save kamilziajka/8ebdf08c557b4642ff29f2067f30efa9 to your computer and use it in GitHub Desktop.
cli config + babel
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
'use strict'; | |
const path = require('path'); | |
const temp = process.cwd(); | |
process.chdir(path.resolve(__dirname, '../')); | |
require('config'); | |
process.chdir(temp); | |
require('babel-register')({ | |
presets: ['es2015', 'stage-0'], | |
only: 'my-cli-tool/@(src|bin)/*.js' | |
}); | |
require('babel-polyfill'); | |
require('./cli'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment