Skip to content

Commit

Permalink
build: update deps & imports
Browse files Browse the repository at this point in the history
  • Loading branch information
postspectacular committed Aug 20, 2024
1 parent 87f70df commit 489e622
Show file tree
Hide file tree
Showing 16 changed files with 2,003 additions and 1,664 deletions.
18 changes: 9 additions & 9 deletions 01-hello/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@
"license": "MIT",
"scripts": {
"start": "vite --open",
"build": "tsc && vite build --base='./'",
"build": "vite build --base='./'",
"preview": "vite preview --host --open"
},
"devDependencies": {
"typescript": "^4.8.4",
"vite": "^3.2.2"
"typescript": "^5.5.4",
"vite": "^5.4.2"
},
"dependencies": {
"@thi.ng/color": "^5.2.9",
"@thi.ng/geom": "^3.4.20",
"@thi.ng/random": "^3.3.14",
"@thi.ng/rdom": "^0.9.18",
"@thi.ng/transducers": "^8.3.22",
"@thi.ng/vectors": "^7.5.23"
"@thi.ng/color": "^5.7.1",
"@thi.ng/geom": "^8.1.4",
"@thi.ng/random": "^4.0.3",
"@thi.ng/rdom": "^1.6.4",
"@thi.ng/transducers": "^9.2.0",
"@thi.ng/vectors": "^7.11.10"
},
"browser": {
"process": false
Expand Down
6 changes: 3 additions & 3 deletions 01-hello/src/confetti.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { Color, colorFromRange } from "@thi.ng/color";
import { type Color, colorFromRange } from "@thi.ng/color";
import { asSvg, circle, group } from "@thi.ng/geom";
import { SYSTEM } from "@thi.ng/random";
import { Component, NumOrElement } from "@thi.ng/rdom";
import { Component, type NumOrElement } from "@thi.ng/rdom";
import { repeatedly } from "@thi.ng/transducers";
import { add2, rotate, Vec } from "@thi.ng/vectors";
import { add2, rotate, type Vec } from "@thi.ng/vectors";

interface Particle {
/**
Expand Down
34 changes: 17 additions & 17 deletions 01-hello/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"include": ["src/**/*"],
"exclude": ["./**/node_modules"],
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"useDefineForClassFields": true,
"experimentalDecorators": true
}
"include": ["src/**/*"],
"exclude": ["./**/node_modules"],
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"useDefineForClassFields": true,
"experimentalDecorators": true
}
}
1,453 changes: 801 additions & 652 deletions 01-hello/yarn.lock

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions 02-cellular-automata/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@
"preview": "vite preview --host --open"
},
"devDependencies": {
"typescript": "^4.8.4",
"vite": "^3.2.2"
"typescript": "^5.5.4",
"vite": "^5.4.2"
},
"dependencies": {
"@thi.ng/color": "^5.2.9",
"@thi.ng/date": "^2.3.14",
"@thi.ng/dl-asset": "^2.3.16",
"@thi.ng/math": "^5.3.12",
"@thi.ng/pixel": "^4.0.7",
"@thi.ng/random": "^3.3.14",
"@thi.ng/transducers": "^8.3.22"
"@thi.ng/canvas": "0.5.2",
"@thi.ng/color": "^5.7.1",
"@thi.ng/date": "^2.7.27",
"@thi.ng/dl-asset": "^2.3.88",
"@thi.ng/math": "^5.11.8",
"@thi.ng/pixel": "^7.3.2",
"@thi.ng/random": "^4.0.3",
"@thi.ng/transducers": "^9.2.0"
},
"browser": {
"process": false
Expand Down
7 changes: 3 additions & 4 deletions 02-cellular-automata/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { cosineGradient, COSINE_GRADIENTS, srgbIntArgb32 } from "@thi.ng/color";
import { canvas2d } from "@thi.ng/canvas";
import { COSINE_GRADIENTS, cosineGradient, srgbIntArgb32 } from "@thi.ng/color";
import { FMT_yyyyMMdd_HHmmss } from "@thi.ng/date";
import { downloadCanvas } from "@thi.ng/dl-asset";
import { wrapOnce } from "@thi.ng/math";
import { canvas2d, defIndexed, intBuffer } from "@thi.ng/pixel";
import { defIndexed, intBuffer } from "@thi.ng/pixel";
import { Smush32 } from "@thi.ng/random";
import { Z4 } from "@thi.ng/strings";
import { range2d } from "@thi.ng/transducers";

const WIDTH = 256;
Expand Down
34 changes: 17 additions & 17 deletions 02-cellular-automata/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"include": ["src/**/*"],
"exclude": ["./**/node_modules"],
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"importsNotUsedAsValues": "error",
"isolatedModules": true,
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"useDefineForClassFields": true,
"experimentalDecorators": true
}
"include": ["src/**/*"],
"exclude": ["./**/node_modules"],
"compilerOptions": {
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"allowSyntheticDefaultImports": true,
"verbatimModuleSyntax": true,
"isolatedModules": true,
"noEmit": true,
"strict": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"useDefineForClassFields": true,
"experimentalDecorators": true
}
}
Loading

0 comments on commit 489e622

Please sign in to comment.