pts 0.12.8 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,47 +1,107 @@
1
1
  {
2
2
  "name": "pts",
3
- "version": "0.12.8",
4
- "description": "pts",
5
- "main": "./dist/index",
3
+ "version": "1.0.0",
4
+ "description": "A library for visualization and creative coding.",
5
+ "type": "commonjs",
6
+ "main": "./dist/index.js",
7
+ "module": "./dist/index.mjs",
6
8
  "types": "./dist/index.d.ts",
9
+ "exports": {
10
+ ".": {
11
+ "import": {
12
+ "types": "./dist/index.d.mts",
13
+ "default": "./dist/index.mjs"
14
+ },
15
+ "require": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ }
19
+ },
20
+ "./dist/*": "./dist/*",
21
+ "./package.json": "./package.json"
22
+ },
23
+ "files": [
24
+ "dist",
25
+ "src/*.ts"
26
+ ],
27
+ "sideEffects": [
28
+ "./dist/pts.js",
29
+ "./dist/pts.min.js"
30
+ ],
31
+ "unpkg": "./dist/pts.min.js",
32
+ "jsdelivr": "./dist/pts.min.js",
7
33
  "scripts": {
8
- "start": "tsup --config tsup.browser.js --watch",
9
- "build": "npm run build-module && npm run build-browser",
10
- "build-module": "tsup --config tsup.module.js",
11
- "build-browser": "tsup --config tsup.browser.js && tsup --config tsup.min.js",
12
- "test": "mocha --require ts-node/register --reporter dot --file src/test/*.spec.ts",
13
- "test:auto": "mocha --opts mocha.opts --watch",
14
- "docs": "typedoc --json docs/json/docs.json && python3 parse.py",
15
- "lint": "eslint --ignore-path .eslintignore --ext .js,.ts"
34
+ "start": "tsdown --watch",
35
+ "build": "tsdown",
36
+ "typecheck": "tsc --project tsconfig.json",
37
+ "test": "vitest run",
38
+ "test:watch": "vitest",
39
+ "test:coverage": "vitest run --coverage",
40
+ "test:browser": "node scripts/browser-smoke.mjs",
41
+ "test:visual": "vitest run --project visual",
42
+ "test:visual:update": "UPDATE_VISUAL=1 vitest run --project visual",
43
+ "test:docs": "node scripts/docs-smoke.mjs",
44
+ "test:site": "node scripts/check-site.mjs",
45
+ "test:integrations": "node scripts/check-integrations.mjs",
46
+ "bench": "node --expose-gc scripts/bench.mjs",
47
+ "bench:quick": "node --expose-gc scripts/bench.mjs --quick --no-build",
48
+ "bench:memory": "node scripts/bench.mjs --memory",
49
+ "bench:browser": "node scripts/bench-browser.mjs",
50
+ "bench:record": "node --expose-gc scripts/bench.mjs --record",
51
+ "bench:compare": "node --expose-gc scripts/bench.mjs --compare",
52
+ "bench:check": "node scripts/bench-dryrun.mjs",
53
+ "check:artifacts": "node scripts/check-artifacts.mjs",
54
+ "check:docs": "node scripts/build-docs-runtime.mjs --check && node scripts/generate-docs.mjs --check && node scripts/generate-guides.mjs --check && node scripts/generate-markdown-docs.mjs --check && node scripts/build-editor.mjs --check && pnpm test:docs",
55
+ "check:package": "node scripts/check-package.mjs",
56
+ "check:publishing": "publint && attw --pack .",
57
+ "lint": "eslint assets/cover.js bench demo guide/js/guide.js guide/js/examples src scripts test/integrations test/visual *.config.*",
58
+ "format": "prettier --write README.md 'plans/**/*.md' package.json tsconfig.json '*.config.*' 'bench/**/*.mjs' 'guide/js/guide.js' 'demo/edit/js/edit.js' 'demo/edit/src/*.js' 'scripts/**/*.mjs' 'src/**/*.ts' '.github/**/*.yml' '.prettierrc.json' '.vscode/*.json' 'test/integrations/**/*.{css,html,json,md,mjs,ts,tsx,vue}' 'test/visual/**/*.{ts,md}'",
59
+ "format:check": "prettier --check README.md 'plans/**/*.md' package.json tsconfig.json '*.config.*' 'bench/**/*.mjs' 'guide/js/guide.js' 'demo/edit/js/edit.js' 'demo/edit/src/*.js' 'scripts/**/*.mjs' 'src/**/*.ts' '.github/**/*.yml' '.prettierrc.json' '.vscode/*.json' 'test/integrations/**/*.{css,html,json,md,mjs,ts,tsx,vue}' 'test/visual/**/*.{ts,md}'",
60
+ "format:watch": "chokidar README.md 'plans/**/*.md' package.json tsconfig.json '*.config.*' 'bench/**/*.mjs' 'guide/js/guide.js' 'demo/edit/js/edit.js' 'demo/edit/src/*.js' 'scripts/**/*.mjs' 'src/**/*.ts' '.github/**/*.yml' '.prettierrc.json' '.vscode/*.json' 'test/integrations/**/*.{css,html,json,md,mjs,ts,tsx,vue}' 'test/visual/**/*.{ts,md}' -c \"prettier --write --ignore-unknown \\\"{path}\\\"\"",
61
+ "check": "pnpm format:check && pnpm lint && pnpm typecheck && pnpm test:coverage && pnpm check:docs && pnpm build && pnpm check:artifacts && pnpm bench:check && pnpm test:browser && pnpm test:site && pnpm check:package && pnpm test:integrations && pnpm check:publishing",
62
+ "prepack": "pnpm build",
63
+ "docs": "node scripts/build-docs-runtime.mjs && node scripts/generate-docs.mjs && node scripts/generate-guides.mjs && node scripts/generate-markdown-docs.mjs",
64
+ "build:docs-runtime": "node scripts/build-docs-runtime.mjs",
65
+ "build:editor": "node scripts/build-editor.mjs"
16
66
  },
67
+ "keywords": [
68
+ "canvas",
69
+ "creative-coding",
70
+ "graphics",
71
+ "svg",
72
+ "visualization"
73
+ ],
17
74
  "repository": {
18
75
  "type": "git",
19
- "url": "https://github.com/williamngan/pts.git"
76
+ "url": "git+https://github.com/williamngan/pts.git"
20
77
  },
21
78
  "author": "William Ngan",
22
79
  "license": "Apache-2.0",
80
+ "packageManager": "pnpm@11.21.0",
23
81
  "devDependencies": {
24
- "@stylistic/eslint-plugin": "^1.6.3",
25
- "@testdeck/mocha": "^0.2.1",
26
- "@types/dom-mediacapture-record": "^1.0.7",
27
- "@types/mocha": "^9.1.1",
28
- "@types/node": "^14.14.28",
29
- "@typescript-eslint/eslint-plugin": "^7.1.0",
30
- "@typescript-eslint/parser": "^7.1.0",
31
- "chai": "^4.3.0",
32
- "eslint": "^8.57.0",
33
- "mocha": "^8.4.0",
34
- "source-map": "^0.7.2",
35
- "ts-node": "^10.9.2",
36
- "tsup": "^8.0.2",
37
- "typedoc": "^0.17.8",
38
- "typescript": "^5.3.3"
39
- },
40
- "optionalDependencies": {
41
- "@nrwl/cli": "13.7.1"
82
+ "@arethetypeswrong/cli": "0.18.5",
83
+ "@eslint/js": "10.0.1",
84
+ "@vitest/browser-playwright": "4.1.11",
85
+ "@vitest/coverage-v8": "4.1.11",
86
+ "chokidar-cli": "3.0.0",
87
+ "eslint": "10.8.1",
88
+ "globals": "17.9.0",
89
+ "markdown-it": "14.3.0",
90
+ "monaco-editor": "0.56.0",
91
+ "playwright": "1.62.1",
92
+ "prettier": "3.9.6",
93
+ "publint": "0.3.23",
94
+ "tinybench": "2.9.0",
95
+ "tsdown": "0.22.14",
96
+ "typedoc": "0.28.20",
97
+ "typescript": "6.0.3",
98
+ "typescript-eslint": "8.67.0",
99
+ "vite": "8.2.1",
100
+ "vitest": "4.1.11",
101
+ "vue": "3.5.41"
42
102
  },
43
103
  "bugs": {
44
104
  "url": "https://github.com/williamngan/pts/issues"
45
105
  },
46
- "homepage": "https://github.com/williamngan/pts"
106
+ "homepage": "https://ptsjs.org"
47
107
  }