UNPKG

@phun-ky/speccer

Version:

A script to annotate, show spacing specs and to display typography information in documentation/website on HTML elements

138 lines (137 loc) 4.5 kB
{ "name": "@phun-ky/speccer", "version": "11.2.29", "description": "A script to annotate, show spacing specs and to display typography information in documentation/website on HTML elements", "keywords": [ "a11y", "accessibility", "anatomy", "annotate", "annotation", "css", "design", "design system", "dissect", "dissection", "documentation", "grid", "grid-layout", "html", "html-elements", "information", "inspect", "javascript", "pin", "spacing", "spec", "speccer", "specification", "specifications", "specs", "typescript", "typography", "storybook", "stories", "react", "hooks" ], "homepage": "https://phun-ky.net/projects/speccer", "bugs": { "url": "https://github.com/phun-ky/speccer/issues" }, "repository": { "type": "git", "url": "git+https://github.com/phun-ky/speccer.git" }, "funding": "https://github.com/phun-ky/speccer?sponsor=1", "license": "MIT", "author": "Alexander Vassbotn Røyne-Helgesen <alexander@phun-ky.net>", "type": "module", "main": "dist/speccer.js", "module": "dist/speccer.esm.js", "types": "dist/speccer.d.ts", "files": [ "/dist/speccer.css", "/dist/speccer.d.ts", "/dist/speccer.esm.js", "/dist/speccer.js", "/dist/speccer.min.css" ], "scripts": { "build": "npm run clean && npm run rollup && npm run styles", "clean": "rm -rf dist dts", "commit": "npx git-cz", "dev": "npx browser-sync start --server 'dev' --files 'dist' --ss 'dist'", "docs:gen": "node ./node_modules/.bin/typedoc", "postcss": "rm -rf ./dist/speccer.min.css && postcss ./dist/speccer.css -o ./dist/speccer.min.css", "release": "release-it", "prerollup:dev": "npm run clean && npm run styles", "rollup": "rollup -c", "rollup:dev": "rollup -c -w", "style:code": "npx putout src", "style:format": "./node_modules/.bin/eslint -c ./eslint.config.mjs src --fix && ./node_modules/.bin/prettier --write ./eslint.config.mjs src", "style:lint": "./node_modules/.bin/eslint -c ./eslint.config.mjs src && ./node_modules/.bin/prettier --check src", "styles": "npm run stylus && npm run postcss", "stylus": "rm -rf ./dist/speccer.css && stylus ./src/styles/index.styl -o ./dist/speccer.css", "pretest:ci": "rm -rf coverage && mkdir -p coverage", "pretest:e2e": "rm -rf test-results && npm run build", "test": "npm run test:unit", "test:ci": "glob -c \"node --import tsx --import global-jsdom/register --test --no-warnings --experimental-test-coverage --test-reporter=cobertura --test-reporter-destination=coverage/cobertura-coverage.xml --test-reporter=spec --test-reporter-destination=stdout\" \"./src/**/__tests__/**/*.spec.[jt]s\"", "test:e2e": "npx playwright test", "test:unit": "glob -c \"node --import tsx --import global-jsdom/register --test --no-warnings\" \"./src/**/__tests__/**/*.spec.[jt]s\"" }, "config": { "commitizen": { "path": "./node_modules/git-cz" } }, "devDependencies": { "@playwright/test": "^1.50.1", "@release-it/conventional-changelog": "^10.0.0", "@rollup/plugin-node-resolve": "^16.0.0", "@rollup/plugin-terser": "^0.4.4", "@testing-library/dom": "^10.4.0", "@testing-library/jest-dom": "^6.4.2", "@types/node": "^24.0.3", "cobertura": "^1.0.1", "cssnano": "^7.0.6", "eslint": "^9.20.0", "eslint-config-phun-ky": "^1.0.0", "git-cz": "^4.9.0", "glob": "^11.0.1", "global-jsdom": "^26.0.0", "globals": "^16.0.0", "jsdom": "^26.0.0", "postcss": "^8.5.2", "postcss-cli": "^11.0.0", "prettier": "3.5.3", "putout": "^40.0.10", "quibble": "^0.9.1", "release-it": "^19.0.1", "remark-github": "^12.0.0", "remark-toc": "^9.0.0", "rollup": "^4.12.0", "rollup-plugin-dts": "^6.1.0", "rollup-plugin-typescript2": "^0.36.0", "stylus": "^0.64.0", "ts-node": "^10.9.1", "tslib": "^2.3.1", "tsx": "^4.19.2", "typedoc": "^0.28.2", "typedoc-plugin-frontmatter": "^1.0.0", "typedoc-plugin-markdown": "^4.2.3", "typedoc-plugin-mdn-links": "^5.0.1", "typedoc-plugin-no-inherit": "^1.4.0", "typedoc-plugin-remark": "^2.0.0", "typedoc-plugin-rename-defaults": "^0.7.1", "typescript": "^5.7.3", "unified-prettier": "^2.0.1" }, "engines": { "node": ">=22.9.0", "npm": ">=11.0.0" }, "publishConfig": { "access": "public" } }