cli: rename build dir to .dxx dir,avoid ambiguity

This commit is contained in:
pengfei.zhou 2022-07-13 19:16:59 +08:00 committed by osborn
parent b4391cb0d6
commit a2de505395
10 changed files with 18 additions and 18 deletions

View File

@ -1,5 +1,5 @@
node_modules/
build/
.dxx/
bundle/
xcuserdata
.gradle

View File

@ -1,5 +1,5 @@
node_modules/
build/
.dxx/
bundle/
xcuserdata
.gradle

View File

@ -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,13 +38,13 @@ function mkdirsSync(dirname) {
}
allImages.forEach((value) => {
let path = __dirname + "/build/" + value;
let path = __dirname + "/.dxx/" + value;
let index = path.lastIndexOf("/");
mkdirsSync(path.substring(0, index));
fs.copyFile(
__dirname + "/" + value,
__dirname + "/build/" + value,
__dirname + "/.dxx/" + value,
(error) => {
console.log(error);
}
@ -83,7 +83,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`,

View File

@ -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 */

View File

@ -3,7 +3,7 @@ import commonjs from "@rollup/plugin-commonjs";
import json from "@rollup/plugin-json";
export default [
{
input: `build/index.js`,
input: `.dxx/index.js`,
output: {
format: "cjs",
file: `dist/bundle___$__.js`,

View File

@ -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 */

View File

@ -1,5 +1,5 @@
node_modules/
build/
.dxx/
bundle/
xcuserdata
.gradle

View File

@ -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,13 +38,13 @@ function mkdirsSync(dirname) {
}
allImages.forEach((value) => {
let path = __dirname + "/build/" + value;
let path = __dirname + "/.dxx/" + value;
let index = path.lastIndexOf("/");
mkdirsSync(path.substring(0, index));
fs.copyFile(
__dirname + "/" + value,
__dirname + "/build/" + value,
__dirname + "/.dxx/" + value,
(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`,
@ -111,7 +111,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`,

View File

@ -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 */

View File

@ -1 +1 @@
0.7.1
0.10.20