UNPKG

@clampy-js/clampy

Version:

Clamps an HTML element by adding ellipsis to it if the content inside is too long.

124 lines (123 loc) 3.52 kB
{ "name": "@clampy-js/clampy", "version": "1.0.10", "description": "Clamps an HTML element by adding ellipsis to it if the content inside is too long.", "keywords": [ "clamp", "ellipsis", "clampy-js", "clampy" ], "main": "dist/clampy.umd.js", "module": "dist/clampy.es5.js", "typings": [ "dist/types/clampy.d.ts" ], "files": [ "dist" ], "author": "Alexandre Moore <alexandre.moore@gmail.com>", "repository": { "type": "git", "url": "https://github.com/clampy-js/clampy.git" }, "license": "MIT", "engines": { "node": ">=6.0.0" }, "scripts": { "lint": "tslint -t codeFrame 'src/**/*.ts' 'test/**/*.ts'", "prebuild": "rimraf dist", "build": "tsc --module commonjs --outDir dist/lib && rollup -c rollup.config.ts && typedoc --out dist/docs --target es6 --theme minimal --mode file src", "start": "tsc-watch --onSuccess \"rollup -c\"", "test": "jest", "test:watch": "jest --watch", "test:prod": "npm run lint && npm run test -- --coverage --no-cache", "deploy-docs": "ts-node tools/gh-pages-publish", "report-coverage": "cat ./coverage/lcov.info | coveralls", "commit": "git-cz", "semantic-release": "semantic-release", "semantic-release-prepare": "ts-node tools/semantic-release-prepare", "precommit": "lint-staged", "prepush": "npm run test:prod && npm run build", "commitmsg": "validate-commit-msg", "travis-deploy-once": "travis-deploy-once" }, "lint-staged": { "{src,test}/**/*.ts": [ "prettier --write --no-semi", "git add" ] }, "config": { "commitizen": { "path": "node_modules/cz-conventional-changelog" }, "validate-commit-msg": { "types": "conventional-commit-types", "helpMessage": "Use \"npm run commit\" instead, we use conventional-changelog format :) (https://github.com/commitizen/cz-cli)" } }, "jest": { "globals": { "__TS_CONFIG__": { "module": "commonjs" } }, "transform": { ".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js" }, "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$", "moduleFileExtensions": [ "ts", "tsx", "js" ], "coveragePathIgnorePatterns": [ "/node_modules/", "/test/" ], "coverageThreshold": { "global": { "branches": 0, "functions": 0, "lines": 0, "statements": 0 } }, "testURL": "http://localhost/" }, "devDependencies": { "@types/jest": "~22.0.0", "@types/lodash": "4.14.121", "@types/node": "~9.3.0", "colors": "~1.1.2", "commitizen": "~2.9.6", "coveralls": "~3.0.0", "cross-env": "~5.1.3", "cz-conventional-changelog": "~2.0.0", "husky": "~0.14.0", "jest": "~22.0.2", "lint-staged": "~6.0.0", "lodash.camelcase": "4.3.0", "prettier": "~1.10.2", "prompt": "~1.0.0", "replace-in-file": "~3.0.0-beta.2", "rimraf": "~2.6.1", "rollup": "~0.54.0", "rollup-plugin-commonjs": "~8.0.2", "rollup-plugin-node-resolve": "~3.0.2", "rollup-plugin-sourcemaps": "~0.4.2", "rollup-plugin-typescript2": "~0.10.0", "semantic-release": "~12.2.2", "travis-deploy-once": "~4.3.1", "ts-jest": "~22.0.0", "ts-node": "~4.1.0", "tslint": "~5.9.1", "tslint-config-prettier": "~1.1.0", "tslint-config-standard": "~7.0.0", "typedoc": "~0.9.0", "typescript": "~2.6.2", "validate-commit-msg": "~2.12.2" } }