generated from nichoth/template-ts-browser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
104 lines (104 loc) · 3.5 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
{
"name": "@bicycle-codes/image",
"description": "An image component",
"version": "0.0.17",
"type": "module",
"main": "dist/index.ts",
"bin": {
"image.stringify": "./bin/to-string.js",
"image.resize": "./bin/resize.js"
},
"scripts": {
"start": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && npm start",
"build-example": "npm run build && ./bin/resize.js ./example/100.jpg -o ./example && cd example && rm -rf ./node_modules && npm i && VITE_DEBUG_MODE=staging vite build --mode staging --base=\"/image\" && mkdir -p ./public && cp ./100* ./public",
"lint": "eslint \"./**/*.{ts,js}\"",
"test": "npm run lint && node test/cli.js | tap-spec && npm run test-html",
"test-html": "npm run lint && node test/index.js | tap-spec",
"build-cjs": "esbuild src/**/*.ts --tsconfig=tsconfig.build.json --format=cjs --keep-names --outdir=./dist --out-extension:.js=.cjs",
"build-bin": "mkdir -p ./dist/bin && rm -rf ./dist/bin/* && cp ./bin/to-string.js ./bin/resize.js ./dist/bin",
"build": "mkdir -p ./dist && rm -rf ./dist/* && npm run build-cjs && tsc --project tsconfig.build.json && npm run cp-css && npm run build-tonic && npm run build-bin",
"build-tonic": "cp ./src/cloudinary/tonic.js ./dist/cloudinary && cp ./src/tonic.js ./dist",
"cp-css": "cp ./src/*.css ./dist",
"toc": "markdown-toc --maxdepth 3 -i README.md",
"preversion": "npm run lint",
"version": "npm run toc && auto-changelog -p --template keepachangelog --breaking-pattern 'BREAKING CHANGE:' && git add CHANGELOG.md README.md",
"postversion": "git push && git push --tags && npm publish",
"prepublishOnly": "npm run build"
},
"directories": {
"doc": "docs",
"example": "example",
"test": "test"
},
"dependencies": {
"@bicycle-codes/tonic": "^16.0.2",
"@cloudinary/url-gen": "^1.14.0",
"file-type": "^19.0.0",
"preact": "^10.19.3",
"sharp": "^0.33.3",
"yargs": "^17.7.2"
},
"devDependencies": {
"@bicycle-codes/tapzero": "^0.10.0",
"@types/yargs": "^17.0.24",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"auto-changelog": "^2.4.0",
"esbuild": "^0.24.0",
"eslint": "^8.57.0",
"eslint-config-standard": "^17.1.0",
"htm": "^3.1.1",
"markdown-toc": "^1.2.0",
"postcss-import": "^16.1.0",
"postcss-nesting": "^13.0.0",
"tap-spec": "^5.0.0",
"tape-run": "^11.0.0",
"typescript": "^5.4.4",
"vite": "^6.0.1"
},
"exports": {
".": {
"import": "./dist/index.js",
"require": "./dist/index.cjs"
},
"./*": {
"import": [
"./dist/*.js",
"./dist/*"
],
"require": [
"./dist/*.cjs"
]
},
"./bin/*": {
"import": "./dist/bin/*.js",
"require": "./dist/bin/*.cjs"
},
"./cloudinary": {
"import": "./dist/cloudinary/index.js",
"require": "./dist/cloudinary/index.cjs"
},
"./cloudinary/*": {
"import": "./dist/cloudinary/*.js",
"require": "./dist/cloudinary/*.cjs"
}
},
"keywords": [
"image",
"base64",
"cloudinary",
"picture",
"tonic",
"preact"
],
"author": "nichoth <[email protected]> (https://nichoth.com)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/bicycle-codes/image.git"
},
"bugs": {
"url": "https://github.com/bicycle-codes/image/issues"
},
"homepage": "https://github.com/bicycle-codes/image#readme"
}