@nichoth/image
Version:
An image component
99 lines (98 loc) • 3.12 kB
JSON
{
"name": "@nichoth/image",
"description": "An image component",
"version": "0.0.14",
"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 && npx vite build && cp ./100* ./dist",
"lint": "standardx -v \"./**/*.ts\"",
"test": "npm run lint && node test/cli.js | tap-arc && npm run test-html",
"test-html": "npm run lint && node test/index.js | tap-arc",
"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",
"preversion": "npm run lint",
"postversion": "git push && git push --tags && npm publish",
"prepublishOnly": "npm run build"
},
"directories": {
"doc": "docs",
"example": "example",
"test": "test"
},
"dependencies": {
"@cloudinary/url-gen": "^1.14.0",
"@nichoth/tonic": "^15.1.7",
"file-type": "^18.3.0",
"preact": "^10.19.3",
"sharp": "^0.32.1",
"yargs": "^17.7.2"
},
"devDependencies": {
"@nichoth/tapzero": "^0.8.4",
"@types/yargs": "^17.0.24",
"@typescript-eslint/parser": "^5.55.0",
"esbuild": "^0.19.9",
"htm": "^3.1.1",
"postcss-import": "^15.1.0",
"postcss-nesting": "^11.2.2",
"standardx": "^7.0.0",
"tap-arc": "^1.2.2",
"tape-run": "^11.0.0",
"typescript": "^5.3.3",
"vite": "^5.0.7"
},
"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 <nichoth@gmail.com> (https://nichoth.com)",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/nichoth/image.git"
},
"bugs": {
"url": "https://github.com/nichoth/image/issues"
},
"homepage": "https://github.com/nichoth/image#readme"
}