From 043cb8ec143bda10d83ee3d74d96e8b9bb7c142a Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Sat, 18 May 2019 21:58:33 -0700 Subject: [PATCH] Remove functions Rollup config --- rollup.config.js | 65 ------------------------------------------------ 1 file changed, 65 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 7f3f42c..d19ab6a 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -96,70 +96,5 @@ const server = { }) ] }; -// const fnsPkg = require('./functions/package.json'); -// const fnsDeps = (dev -// ? Object.keys(fnsPkg.dependencies).concat( -// Object.keys(fnsPkg.devDependencies || {}) -// ) -// : Object.keys(fnsPkg.dependencies) -// ).concat('react-dom/server'); - -// const functions = [ -// { -// external: id => true, -// input: path.resolve(__dirname, 'modules/functions/index.js'), -// output: { file: 'functions/index.js', format: 'cjs' }, -// plugins: [ -// babel(), -// json(), -// replace({ -// 'process.env.NODE_ENV': JSON.stringify(env) -// }) -// ] -// } -// ].concat( -// [ -// // 'serveAuth', -// 'serveMainPage', -// 'serveNpmPackageFile', -// 'servePublicKey', -// 'serveStats' -// ].map(functionName => { -// return { -// external: builtinModules.concat(fnsDeps), -// input: path.resolve(__dirname, `modules/functions/${functionName}.js`), -// output: { file: `functions/${functionName}.js`, format: 'cjs' }, -// plugins: [ -// manifest.inject({ virtualId: 'entry-manifest' }), -// babel({ exclude: /node_modules/ }), -// json(), -// resolve(), -// commonjs(), -// url({ -// limit: 5 * 1024, -// publicPath: '/_client/', -// emitFiles: false -// }), -// replace({ -// 'process.env.CLOUDFLARE_EMAIL': JSON.stringify( -// process.env.CLOUDFLARE_EMAIL -// ), -// 'process.env.CLOUDFLARE_KEY': JSON.stringify( -// process.env.CLOUDFLARE_KEY -// ), -// 'process.env.DEBUG': JSON.stringify(process.env.DEBUG), -// 'process.env.NODE_ENV': JSON.stringify(env), -// 'process.env.NPM_REGISTRY_URL': JSON.stringify( -// process.env.NPM_REGISTRY_URL -// ), -// 'process.env.ORIGIN': JSON.stringify(process.env.ORIGIN), -// 'process.env.SECRET_KEY': JSON.stringify(secretKey) -// }) -// ] -// }; -// }) -// ); - -// module.exports = client.concat(functions); module.exports = client.concat(server);