From 13c5719af1c4d1a6b9b7cd2fddda822ca84356b5 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Thu, 18 Jul 2019 16:31:50 +0800 Subject: [PATCH] split bundle and demo dir --- Android/app/build.gradle | 2 +- js-framework/.gitignore | 3 ++- js-framework/{index.test.ts => demo.ts} | 0 js-framework/rollup.config.js | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) rename js-framework/{index.test.ts => demo.ts} (100%) diff --git a/Android/app/build.gradle b/Android/app/build.gradle index 54d1e334..f67521cd 100644 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -18,7 +18,7 @@ android { } sourceSets { main { - assets.srcDirs = [project.rootDir.getParent() + "/js-framework/bundle"] + assets.srcDirs = [project.rootDir.getParent() + "/js-framework/demo"] } } } diff --git a/js-framework/.gitignore b/js-framework/.gitignore index 692a327e..99672424 100644 --- a/js-framework/.gitignore +++ b/js-framework/.gitignore @@ -1,3 +1,4 @@ node_modules/ build/ -bundle/ \ No newline at end of file +bundle/ +demo/ \ No newline at end of file diff --git a/js-framework/index.test.ts b/js-framework/demo.ts similarity index 100% rename from js-framework/index.test.ts rename to js-framework/demo.ts diff --git a/js-framework/rollup.config.js b/js-framework/rollup.config.js index d0cf5757..4b42334c 100644 --- a/js-framework/rollup.config.js +++ b/js-framework/rollup.config.js @@ -30,10 +30,10 @@ export default [ ] }, { - input: "build/index.test.js", + input: "build/demo.js", output: { format: "cjs", - file: "bundle/test.js", + file: "demo/demo.js", }, sourceMap: true, plugins: [