@shopify/klint 0.0.4

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 ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@shopify/klint",
3
+ "author": "arthurcloche",
4
+ "license": "MIT",
5
+ "version": "0.0.4",
6
+ "description": "A modern creative coding library",
7
+ "type": "module",
8
+ "main": "dist/index.cjs",
9
+ "module": "dist/index.js",
10
+ "types": "dist/index.d.ts",
11
+ "exports": {
12
+ ".": {
13
+ "import": "./dist/index.js",
14
+ "require": "./dist/index.cjs",
15
+ "types": "./dist/index.d.ts"
16
+ },
17
+ "./plugins": "./dist/plugins/index.js"
18
+ },
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "https://github.com/Shopify/Klint"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "keywords": [
27
+ "creative-coding",
28
+ "klint",
29
+ "javascript",
30
+ "2d",
31
+ "canvas",
32
+ "generative-art",
33
+ "processing",
34
+ "html5"
35
+ ],
36
+ "directories": {
37
+ "plugin": "dist/plugins"
38
+ },
39
+ "homepage": "https://github.com/Shopify/Klint",
40
+ "browserslist": [
41
+ "> 1%, not dead, not ie 11, not op_mini all"
42
+ ],
43
+ "bugs": {
44
+ "url": "https://github.com/Shopify/Klint/issues"
45
+ },
46
+ "scripts": {
47
+ "build": "npm run build:main && npm run build:plugins",
48
+ "build:main": "tsup src/index.tsx --format esm,cjs --dts --external=react --external=react-dom",
49
+ "build:plugins": "tsup src/plugins/index.tsx --format esm,cjs --dts --outDir dist/plugins",
50
+ "build:minified": "npm run build:main:min && npm run build:plugins:min",
51
+ "build:main:min": "tsup src/index.tsx --format esm,cjs --dts --minify --external=react --external=react-dom",
52
+ "build:plugins:min": "tsup src/plugins/index.tsx --format esm,cjs --dts --minify --outDir dist/plugins",
53
+ "dev": "concurrently \"npm run dev:main\" \"npm run dev:plugins\"",
54
+ "dev:main": "tsup src/index.tsx --format esm,cjs --dts --watch --external=react --external=react-dom",
55
+ "dev:plugins": "tsup src/plugins/index.tsx --format esm,cjs --dts --watch --outDir dist/plugins",
56
+ "test": "vitest run --environment jsdom",
57
+ "test:watch": "vitest --environment jsdom",
58
+ "lint": "eslint src --ext .ts,.tsx",
59
+ "clean": "rimraf dist",
60
+ "version": "yarn version",
61
+ "release": "npm run clean && npm run build && npm publish"
62
+ },
63
+ "peerDependencies": {
64
+ "react": ">=16.8.0",
65
+ "react-dom": ">=16.8.0"
66
+ },
67
+ "devDependencies": {
68
+ "@types/react": "^19.1.1",
69
+ "@types/react-dom": "^19.1.2",
70
+ "concurrently": "^8.2.0",
71
+ "jsdom": "^26.0.0",
72
+ "rimraf": "^5.0.0",
73
+ "tsup": "^6.7.0",
74
+ "typescript": "^5.0.0",
75
+ "vite": "^6.2.5",
76
+ "vite-tsconfig-paths": "^5.1.4",
77
+ "vitest": "^0.32.0",
78
+ "vitest-canvas-mock": "^0.3.3"
79
+ }
80
+ }