Skip to content

Commit

Permalink
Commands refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
Smoren committed May 12, 2024
1 parent 37d2278 commit 9618001
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"build-only": "vite build",
"type-check": "vue-tsc --noEmit",
"test": "jest",
"tool": "tsx --require=@nextools/suppress-experimental-warnings src/scripts/tool.ts"
"tool": "tsx --no-warnings src/scripts/tool.ts"
},
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^6.5.1",
Expand All @@ -29,7 +29,6 @@
"vue": "^3.4.15"
},
"devDependencies": {
"@nextools/suppress-experimental-warnings": "^0.1.0",
"@types/jest": "^29.5.12",
"@types/node": "^18.19.33",
"@vitejs/plugin-vue": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/actions/test-parallel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ function task(x: number) {
export const actionTestParallel = async (...args: string[]) => {
console.log('[START] test parallel action', args);

const pool = new Pool(20); // spawns 4 child processes to complete your jobs
const result = await pool.map([1, 2, 3, 4, 5, 6, 7, 8, 9], task);
const pool = new Pool(20);
const result = await pool.map([10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150], task);
console.log(result);

pool.close();
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/actions/test-simulation.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { createBaseWorldConfig } from '@/lib/config/world';
import { createBaseTypesConfig } from '@/lib/config/types';
import { create2dBaseInitialConfig } from '@/lib/config/initial';
import { Simulation } from '@/lib/simulation';
import { createPhysicModel } from '@/lib/utils/functions';
import { create2dRandomDistribution } from '@/lib/config/atoms';
import { createDummyDrawer } from '@/lib/drawer/dummy';
import { Simulation } from '@/lib/simulation';
import { Runner } from '@/lib/runner';
import { CompoundsAnalyzer } from '@/lib/analysis/compounds';

Expand Down

0 comments on commit 9618001

Please sign in to comment.