diff --git a/doric-demo/.gitignore b/doric-demo/.gitignore index 719c59a6..44b5f673 100644 --- a/doric-demo/.gitignore +++ b/doric-demo/.gitignore @@ -1,4 +1,4 @@ node_modules/ -build/ +.dxx/ bundle/src package-lock.json \ No newline at end of file diff --git a/doric-demo/rollup.config.js b/doric-demo/rollup.config.js index be9acbb6..b0fe5d66 100644 --- a/doric-demo/rollup.config.js +++ b/doric-demo/rollup.config.js @@ -1,6 +1,6 @@ import resolve from "@rollup/plugin-node-resolve"; import commonjs from "@rollup/plugin-commonjs"; -import bundles from "./build/index"; +import bundles from "./.dxx/index"; import fs from "fs"; import path from "path"; import buble from "@rollup/plugin-buble"; @@ -38,14 +38,14 @@ function mkdirsSync(dirname) { } allImages.forEach((value) => { - let path = __dirname + "/build/" + value; + let path = __dirname + "/.dxx/" + value; path = path.split("\\").join("/"); let index = path.lastIndexOf("/"); mkdirsSync(path.substring(0, index)); fs.copyFile( __dirname + "/" + value, - __dirname + "/build/" + value, + __dirname + "/.dxx/" + value, (error) => { if (error) console.log(error); } @@ -84,7 +84,7 @@ export default allFiles .map((e) => e.replace(/\.tsx?$/, "")) .map((bundle) => { return { - input: `build/${bundle}.js`, + input: `.dxx/${bundle}.js`, output: { format: "cjs", file: `bundle/${bundle}.js`, @@ -110,7 +110,7 @@ export default allFiles // .map((e) => e.replace(/\.tsx?$/, "")) // .map((bundle) => { // return { -// input: `build/${bundle}.js`, +// input: `.dxx/${bundle}.js`, // output: { // format: "cjs", // file: `bundle/${bundle}.es5.js`, diff --git a/doric-demo/tsconfig.json b/doric-demo/tsconfig.json index c6d98352..4c1e7ca8 100644 --- a/doric-demo/tsconfig.json +++ b/doric-demo/tsconfig.json @@ -14,7 +14,7 @@ // "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ "sourceMap": true, /* Generates corresponding '.map' file. */ // "outFile": "./", /* Concatenate and emit output to single file. */ - "outDir": "build/", /* Redirect output structure to the directory. */ + "outDir": ".dxx/", /* Redirect output structure to the directory. */ // "rootDir": "./", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ // "composite": true, /* Enable project compilation */ // "tsBuildInfoFile": "./", /* Specify file to store incremental compilation information */