From e0db0d1d8c875acab0afa6bcf67c8b3d28b03839 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=B8=85?= Date: Thu, 12 Jul 2018 23:31:38 +0800 Subject: [PATCH] =?UTF-8?q?Optimization=EF=BC=9Achange=20firebase=20to=20s?= =?UTF-8?q?cript?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/all_mock.js | 17 +++++++++++++++++ rollup.config.js => scripts/rollup.config.js | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 scripts/all_mock.js rename rollup.config.js => scripts/rollup.config.js (89%) diff --git a/scripts/all_mock.js b/scripts/all_mock.js new file mode 100644 index 00000000..095d4c67 --- /dev/null +++ b/scripts/all_mock.js @@ -0,0 +1,17 @@ +import api from 'mock/api'; +import chart from 'mock/chart'; +import geographic from 'mock/geographic'; +import notices from 'mock/notices'; +import profile from 'mock/profile'; +import rule from 'mock/rule'; +import user from 'mock/user'; + +export default { + ...api, + ...chart, + ...geographic, + ...notices, + ...profile, + ...rule, + ...user, +}; diff --git a/rollup.config.js b/scripts/rollup.config.js similarity index 89% rename from rollup.config.js rename to scripts/rollup.config.js index 17a1d904..dad0073d 100644 --- a/rollup.config.js +++ b/scripts/rollup.config.js @@ -1,7 +1,7 @@ import json from 'rollup-plugin-json'; // rollup.config.js export default { - input: './.roadhogrc.mock.js', + input: './all_mock.js', output: { file: './functions/mock/index.js', format: 'umd', -- GitLab