Skip to content

Commit

Permalink
Merge deploy to main (#2)
Browse files Browse the repository at this point in the history
* Add user/email

* Update imports

* Prettify

* Remove log statement

---------

Co-authored-by: --global <--global>
  • Loading branch information
aglgit authored Jan 17, 2025
1 parent 53e84ba commit 0b024c4
Show file tree
Hide file tree
Showing 9 changed files with 22 additions and 21 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,7 @@ jobs:

- name: Deploy
run: |
git remote set-url origin https://aglgit:${{ secrets.ACCESS_TOKEN }}@github.com/aglgit/voltorb-flip.git
npm run deploy
git config user.name "Andreas L"
git config user.email "[email protected]"
git remote set-url origin https://aglgit:${{ secrets.ACCESS_TOKEN }}@github.com/aglgit/voltorb-flip.git
npm run deploy
3 changes: 1 addition & 2 deletions src/board/boardCalculator.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Tile, TileSum } from "../types/tiles";
import { Tile, TileSum } from "@src/types/tiles";

class BoardCalculator {
public calculateRowSums(grid: Tile[][]): [TileSum[], TileSum[]] {
Expand All @@ -22,7 +22,6 @@ class BoardCalculator {
}
}
}
console.log(rowSums, colSums);
return [rowSums, colSums];
}

Expand Down
6 changes: 3 additions & 3 deletions src/board/boardContainer.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import BoardCalculator from "./boardCalculator";
import BoardGenerator from "./boardGenerator";
import { LEVELS } from "../types/levels";
import { Tile, TileSum } from "../types/tiles";
import { BOARD_SIZE } from "../types/constants";
import { BOARD_SIZE } from "@src/types/constants";
import { LEVELS } from "@src/types/levels";
import { Tile, TileSum } from "@src/types/tiles";

class BoardContainer {
boardGenerator: BoardGenerator;
Expand Down
4 changes: 2 additions & 2 deletions src/board/boardGenerator.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { LevelData } from "../types/levels";
import { Tile } from "../types/tiles";
import { LevelData } from "@src/types/levels";
import { Tile } from "@src/types/tiles";

class BoardGenerator {
public generateBoard(levelData: LevelData, boardSize: number): Tile[][] {
Expand Down
4 changes: 2 additions & 2 deletions tests/boardCalculator.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { expect, test } from "vitest";
import BoardCalculator from "@/board/boardCalculator";
import { TileSum } from "@/types/tiles";
import BoardCalculator from "@src/board/boardCalculator";
import { TileSum } from "@src/types/tiles";

const boardCalculator: BoardCalculator = new BoardCalculator();

Expand Down
6 changes: 3 additions & 3 deletions tests/boardGenerator.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect, test } from "vitest";
import BoardGenerator from "@/board/boardGenerator";
import { BOARD_SIZE } from "@/types/constants";
import { LEVELS } from "@/types/levels";
import BoardGenerator from "@src/board/boardGenerator";
import { BOARD_SIZE } from "@src/types/constants";
import { LEVELS } from "@src/types/levels";

const boardGenerator: BoardGenerator = new BoardGenerator();

Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
"baseUrl": "." /* Specify the base directory to resolve non-relative module names. */,
"paths": {
"@/*": ["src/*"]
}, /* Specify a set of entries that re-map imports to additional lookup locations. */
"@src/*": ["src/*"]
} /* Specify a set of entries that re-map imports to additional lookup locations. */,
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
Expand Down
4 changes: 2 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default defineConfig({
base: "/voltorb-flip/",
resolve: {
alias: {
"@": "/src"
}
"@src": "/src",
},
},
});
6 changes: 3 additions & 3 deletions vitest.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import path from 'path';
import path from "path";
import { configDefaults, defineConfig } from "vitest/config";

export default defineConfig({
Expand All @@ -8,7 +8,7 @@ export default defineConfig({
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src')
"@src": path.resolve(__dirname, "./src"),
},
},
},
});

0 comments on commit 0b024c4

Please sign in to comment.