Skip to content

Commit

Permalink
modify dist to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
s956142 committed Apr 19, 2024
1 parent 9ec43d2 commit c366936
Show file tree
Hide file tree
Showing 4 changed files with 52 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
node_modules/
dist/
docs/
50 changes: 50 additions & 0 deletions src/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
type CellEntity = {
x: number;
y: number;
groupId: number;
groupX: number;
groupY: number;
color: string;
cellId: string;
cubeType: CUBE_TYPE;
rotation: ROTATION_TYPE;
};
type CellPosition = {
x: number;
y: number;
};
type CubeBody = {
name: string;
bodyArray: (type: ROTATION_TYPE) => CellPosition[];
startY: number;
color: string;
previewSize: number;
};
type CubeDescription = {
[key in CUBE_TYPE]: CubeBody;
};
declare enum CUBE_TYPE {
CUBE1 = "S",
CUBE2 = "T",
CUBE3 = "I",
CUBE4 = "L",
CUBE5 = "Z",
CUBE6 = "O",
CUBE7 = "J"
}
declare enum ROTATION_TYPE {
TYPE1 = "type1",
TYPE2 = "type2",
TYPE3 = "type3",
TYPE4 = "type4"
}
declare enum MOVE_DIRECTION {
LEFT = "left",
DOWN = "down",
RIGHT = "right",
UP = "up"
}
type CubeAndType = {
cubeItem?: CubeBody;
cubeType?: CUBE_TYPE;
};
1 change: 0 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
"strict": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"outDir": "dist",
"rootDir": "src",
"declaration": true,
"sourceMap": true
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
const config = {
entry: "./src/index.ts",
output: {
path: path.resolve(__dirname, "dist"),
path: path.resolve(__dirname, "docs"),
filename: "index.js"
},
plugins: [],
Expand Down

0 comments on commit c366936

Please sign in to comment.