77 lines
2.7 KiB
JSON
77 lines
2.7 KiB
JSON
|
{
|
||
|
"name": "underscore",
|
||
|
"description": "JavaScript's functional programming helper library.",
|
||
|
"homepage": "https://underscorejs.org",
|
||
|
"keywords": [
|
||
|
"util",
|
||
|
"functional",
|
||
|
"server",
|
||
|
"client",
|
||
|
"browser"
|
||
|
],
|
||
|
"author": "Jeremy Ashkenas <jeremy@documentcloud.org>",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/jashkenas/underscore.git"
|
||
|
},
|
||
|
"main": "underscore.js",
|
||
|
"module": "modules/index-all.js",
|
||
|
"version": "1.12.1",
|
||
|
"devDependencies": {
|
||
|
"coveralls": "^2.11.2",
|
||
|
"docco": "^0.8.0",
|
||
|
"eslint": "^6.8.0",
|
||
|
"eslint-plugin-import": "^2.20.1",
|
||
|
"glob": "^7.1.6",
|
||
|
"gzip-size-cli": "^1.0.0",
|
||
|
"husky": "^4.2.3",
|
||
|
"karma": "^0.13.13",
|
||
|
"karma-qunit": "~2.0.1",
|
||
|
"karma-sauce-launcher": "^1.2.0",
|
||
|
"nyc": "^2.1.3",
|
||
|
"pretty-bytes-cli": "^1.0.0",
|
||
|
"qunit": "^2.10.0",
|
||
|
"rollup": "^1.32.1",
|
||
|
"terser": "^4.6.13"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"test": "npm run lint && npm run test-node",
|
||
|
"coverage": "nyc npm run test-node && nyc report",
|
||
|
"coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
|
||
|
"lint": "eslint modules/*.js test/*.js",
|
||
|
"test-node": "npm run prepare-tests && qunit test/",
|
||
|
"test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
|
||
|
"bundle": "rollup --config && eslint underscore.js",
|
||
|
"bundle-treeshake": "cd test-treeshake && rollup --config",
|
||
|
"prepare-tests": "npm run bundle && npm run bundle-treeshake",
|
||
|
"minify-umd": "terser underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
|
||
|
"minify-esm": "terser underscore-esm.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
|
||
|
"build-umd": "npm run minify-umd -- --source-map content=underscore.js.map --source-map-url \" \" -o underscore-min.js",
|
||
|
"build-esm": "npm run minify-esm -- --source-map content=underscore-esm.js.map --source-map-url \" \" -o underscore-esm-min.js",
|
||
|
"build": "npm run bundle && npm run build-umd && npm run build-esm",
|
||
|
"doc": "docco underscore-esm.js && docco modules/*.js -c docco.css -t docs/linked-esm.jst",
|
||
|
"weight": "npm run bundle && npm run minify-umd | gzip-size | pretty-bytes",
|
||
|
"prepublishOnly": "npm run build && npm run doc"
|
||
|
},
|
||
|
"license": "MIT",
|
||
|
"files": [
|
||
|
"underscore.js",
|
||
|
"underscore.js.map",
|
||
|
"underscore-min.js",
|
||
|
"underscore-min.js.map",
|
||
|
"underscore-esm.js",
|
||
|
"underscore-esm.js.map",
|
||
|
"underscore-esm-min.js",
|
||
|
"underscore-esm-min.js.map",
|
||
|
"modules/",
|
||
|
"amd/",
|
||
|
"cjs/"
|
||
|
],
|
||
|
"husky": {
|
||
|
"hooks": {
|
||
|
"pre-commit": "npm run bundle && git add underscore.js underscore.js.map underscore-esm.js underscore-esm.js.map",
|
||
|
"post-commit": "git reset underscore.js underscore.js.map underscore-esm.js underscore-esm.js.map"
|
||
|
}
|
||
|
}
|
||
|
}
|