Skip to content

Commit

Permalink
tweak build process
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed May 12, 2015
1 parent 884e810 commit 4a952fd
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 14 deletions.
17 changes: 17 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"whitelist": [
"es6.arrowFunctions",
"es6.blockScoping",
"es6.classes",
"es6.constants",
"es6.destructuring",
"es6.parameters.default",
"es6.parameters.rest",
"es6.properties.shorthand",
"es6.templateLiterals"
],
"loose": [
"es6.classes",
"es6.destructuring"
]
}
14 changes: 0 additions & 14 deletions gobblefile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,8 @@ var gobble = require( 'gobble' );

gobble.cwd( __dirname );

var babelWhitelist = [
'es6.arrowFunctions',
'es6.blockScoping',
'es6.classes',
'es6.constants',
'es6.destructuring',
'es6.parameters.default',
'es6.parameters.rest',
'es6.properties.shorthand',
'es6.templateLiterals'
];

var lib = gobble( 'src' )
.transform( 'babel', {
whitelist: babelWhitelist,
sourceMap: false
})
.transform( 'esperanto-bundle', {
Expand All @@ -32,7 +19,6 @@ var demo = gobble([
type: 'es6'
})
.transform( 'babel', {
whitelist: babelWhitelist,
inputSourceMap: false
})
.transform( 'esperanto-bundle', {
Expand Down

0 comments on commit 4a952fd

Please sign in to comment.