From 47130007048e75d1bc512862290df4e368962f31 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 22 May 2015 11:44:20 -0400 Subject: [PATCH] SELF HOSTING!!!! --- gobblefile.js | 24 +++++++++++++++++------- package.json | 1 + 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/gobblefile.js b/gobblefile.js index d5bac91..cda2c18 100644 --- a/gobblefile.js +++ b/gobblefile.js @@ -1,9 +1,19 @@ var gobble = require( 'gobble' ); -module.exports = gobble( 'src' ) - .transform( 'babel' ) - .transform( 'esperanto-bundle', { - entry: 'rollup', - type: 'cjs', - strict: true - }); \ No newline at end of file +var selfhost = 1; + +module.exports = selfhost ? + gobble( 'src' ) + .transform( 'babel' ) + .transform( 'rollup', { + entry: 'rollup', + format: 'cjs' + }) : + + gobble( 'src' ) + .transform( 'babel' ) + .transform( 'esperanto-bundle', { + entry: 'rollup', + type: 'cjs', + strict: true + }); diff --git a/package.json b/package.json index a207c32..bdda9c5 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,7 @@ "gobble-babel": "^5.1.0", "gobble-cli": "^0.4.2", "gobble-esperanto-bundle": "^0.2.0", + "gobble-rollup": "^0.1.1", "mocha": "^2.2.4", "source-map-support": "^0.2.10" },