neotoc
Version:
Neotoc is a smoothly animated, foldable table of contents generator.
84 lines • 2.62 kB
JSON
{
"name": "neotoc",
"version": "0.2.3",
"description": "Neotoc is a smoothly animated, foldable table of contents generator.",
"type": "module",
"types": "./dist/index.d.ts",
"exports": {
".": {
"import": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.umd.js"
}
},
"./base-plain.css": "./dist/base-plain.css",
"./base-modern.css": "./dist/base-modern.css",
"./colors-monochrome.css": "./dist/colors-monochrome.css",
"./colors-zinc.css": "./dist/colors-zinc.css",
"./colors-slate.css": "./dist/colors-slate.css"
},
"main": "./dist/index.umd.js",
"module": "./dist/index.js",
"unpkg": "./dist/index.umd.js",
"jsdelivr": "./dist/index.umd.js",
"style": "./dist/base-modern.css",
"files": [
"dist"
],
"keywords": [
"toc",
"table of contents",
"outline",
"on this page",
"generator",
"smooth",
"intuitive",
"DOM"
],
"author": "Ashutosh Biswas",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/ashutoshbw/neotoc.git",
"directory": "packages/neotoc"
},
"bugs": "https://github.com/ashutoshbw/neotoc/issues",
"homepage": "https://neotoc.vercel.app",
"devDependencies": {
"@eslint/js": "^9.15.0",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.2",
"@types/eslint__js": "^8.42.3",
"@types/node": "^22.9.0",
"chalk": "^5.4.1",
"chokidar": "^4.0.3",
"concurrently": "^9.1.2",
"eslint": "^9.14.0",
"globals": "^15.12.0",
"happy-dom": "^15.11.6",
"lightningcss-cli": "^1.29.1",
"prettier": "3.3.3",
"rollup": "^4.34.4",
"rollup-plugin-dts": "^6.1.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"vitest": "^3.0.5"
},
"scripts": {
"build": "rm -rf dist && rollup -c && pnpm run dts-work && pnpm run build-css",
"dev": "concurrently \"pnpm run dev-ts\" \"pnpm run dev-css\"",
"dev-ts": "mkdir -p dist && rollup -c -w && pnpm run dts-work",
"dev-css": "mkdir -p dist && node watch-css.js",
"dts-work": "rm -rf dist/dts && cp dist/index.d.ts dist/index.d.cts",
"build-css": "mkdir -p dist && lightningcss --minify --sourcemap --targets \">= 0.25%\" src/styles/*.css -d dist && node fix-css-sourcemaps.js",
"test": "vitest run --reporter=verbose",
"lint": "eslint src/",
"lint-fix": "eslint src/ --fix",
"check-format": "prettier src/ --check",
"format": "prettier src/ --write"
}
}