1 | {
|
2 | "name": "underscore",
|
3 | "description": "JavaScript's functional programming helper library.",
|
4 | "homepage": "https://underscorejs.org",
|
5 | "keywords": [
|
6 | "util",
|
7 | "functional",
|
8 | "server",
|
9 | "client",
|
10 | "browser"
|
11 | ],
|
12 | "author": "Jeremy Ashkenas <jeremy@documentcloud.org>",
|
13 | "repository": {
|
14 | "type": "git",
|
15 | "url": "git://github.com/jashkenas/underscore.git"
|
16 | },
|
17 | "main": "underscore.js",
|
18 | "module": "modules/index-all.js",
|
19 | "version": "1.10.2",
|
20 | "devDependencies": {
|
21 | "coveralls": "^2.11.2",
|
22 | "docco": "*",
|
23 | "eslint": "^6.8.0",
|
24 | "eslint-plugin-import": "^2.20.1",
|
25 | "gzip-size-cli": "^1.0.0",
|
26 | "husky": "^4.2.3",
|
27 | "karma": "^0.13.13",
|
28 | "karma-qunit": "~2.0.1",
|
29 | "karma-sauce-launcher": "^1.2.0",
|
30 | "nyc": "^2.1.3",
|
31 | "pretty-bytes-cli": "^1.0.0",
|
32 | "qunit": "^2.6.0",
|
33 | "qunit-cli": "~0.2.0",
|
34 | "rollup": "^0.59.4",
|
35 | "uglify-js": "3.3.21"
|
36 | },
|
37 | "scripts": {
|
38 | "test": "npm run lint && npm run test-node",
|
39 | "coverage": "nyc npm run test-node && nyc report",
|
40 | "coveralls": "nyc npm run test-node && nyc report --reporter=text-lcov | coveralls",
|
41 | "lint": "eslint modules/*.js test/*.js",
|
42 | "test-node": "npm run prepare-tests && qunit-cli test/*.js",
|
43 | "test-browser": "npm run prepare-tests && npm i karma-phantomjs-launcher && karma start",
|
44 | "bundle": "rollup --config && eslint underscore.js",
|
45 | "bundle-treeshake": "cd test-treeshake && npx rollup@latest --config",
|
46 | "prepare-tests": "npm run bundle && npm run bundle-treeshake",
|
47 | "minify": "uglifyjs underscore.js -c \"evaluate=false\" --comments \"/ .*/\" -m",
|
48 | "build": "npm run bundle && npm run minify -- --source-map content=underscore.js.map --source-map-url \" \" -o underscore-min.js",
|
49 | "doc": "cd docs && rollup -c && docco -o . underscore.js",
|
50 | "weight": "npm run bundle && npm run minify | gzip-size | pretty-bytes",
|
51 | "prepublishOnly": "npm run build && npm run doc"
|
52 | },
|
53 | "license": "MIT",
|
54 | "files": [
|
55 | "underscore.js",
|
56 | "underscore.js.map",
|
57 | "underscore-min.js",
|
58 | "underscore-min.js.map",
|
59 | "modules/"
|
60 | ],
|
61 | "husky": {
|
62 | "hooks": {
|
63 | "pre-commit": "npm run bundle && git add underscore.js underscore.js.map",
|
64 | "post-commit": "git reset underscore.js underscore.js.map"
|
65 | }
|
66 | }
|
67 | }
|